# NBN® API | Order, Diagnose & Automate NBN® | Crazytel

> Canonical URL: https://crazytel.com.au/crazynbn/api/
> Sales and support: 1800 272 998 | Email: help@crazytel.com.au | ABN: 66 629 066 771

The Crazytel NBN® API is a REST/JSON API with 82 endpoints that covers the whole life of a Crazytel NBN® connection: address checks, price quotes, new orders and transfers, NBN® box delivery and technician appointments, live session checks, Service Health Summaries, technology-specific line tests, network-side session restarts, fault lodgement, plan changes, Static IP, full fibre upgrades, house moves, usage, billing and signed webhooks. Everything you can do in MyAccount (https://myaccount.crazytel.com.au/nbn/) you can do over the API.

- **Base URL**: `https://api.crazytel.io/api/v1/nbn`
- **Authentication**: send your Crazytel API key in the `X-Crazytel-Api-Key` header. It is the same key and base URL as the rest of the Crazytel API.
- **API reference**: https://crazytel.io/docs#/NBN%20%E2%80%93%20Start%20here (request fields, response shapes, error codes and a curl example for every endpoint)
- **Prices**: returned in AUD including GST. There is no charge to call the API; actions that cost money are charged exactly as in MyAccount.
- **Technologies**: FTTP (including 2.5 Gbps NBN® boxes), HFC, FTTC, FTTN, FTTB and Fixed Wireless. Satellite addresses return `serviceable: false`.

For plans and pricing, see [CrazyNBN plans](https://crazytel.com.au/crazynbn/index.md). For the diagnostics and webhook features themselves, see [NBN® for Nerds](https://crazytel.com.au/crazynbn/for-nerds/index.md).

## Example

```bash
curl -s "https://api.crazytel.io/api/v1/nbn/connections?status=active" \
  -H "X-Crazytel-Api-Key: $CRAZYTEL_API_KEY"
```

```json
{
  "summary": { "total": 1 },
  "connections": [
    { "connection_id": "d415fcee-1bfe-4695-afa4-5b9099c2a0ec", "status": "active", "avc_id": "AVC000012345678" }
  ]
}
```

## Safety rails

Every endpoint carries one of five safety badges:

| Badge | Endpoints | Meaning |
| --- | --- | --- |
| Read | 44 | Reads stored records or asks the network a question. Nothing changes. |
| Safe action | 22 | Changes something with no outage and no charge, such as a connection name or site contact. |
| Costs money | 10 | Places an order or changes a plan or add-on. Quote it first with `GET /nbn/price-check`. |
| Interrupts your connection | 4 | Restarts a session or resets a port. Internet and phone calls drop for a few minutes. |
| Cannot be undone | 2 | Disconnects or removes a connection. Needs a fresh `quote_id` and the AVC ID to confirm. |

- **`confirm: true`**: anything that interrupts the connection, costs money or changes a service is refused with `confirmation_required` and a plain-English `will_happen` until it is resent with `confirm: true`.
- **`order_reference`**: a client-supplied unique reference on orders, retries, moves and plan or status changes. A duplicate request replays the first outcome instead of ordering twice; reusing a reference with a different body returns `reference_reused`.
- **`price-check` and `cis_version`**: the price check returns `charge_today`, `new_monthly_charge`, `enough_balance`, `quote_id` and `cis_version`. Orders and plan changes pass `cis_version` to record acceptance of the Critical Information Summary.
- **`actions.allowed`**: `GET /nbn/connections/{connection_id}` lists which actions are allowed right now, and why not.
- **One error envelope**: `error`, `message`, `fields`, `choices`, `retry_after_seconds`.

## Rate limits on live checks

| Call | Limit |
| --- | --- |
| Live online status | 20 per hour per connection |
| Service Health Summary | 6 per hour per connection, 30 per account |
| Health check result polls | 120 per hour per connection |
| NBN® box check | 2 per hour per connection, 10 per account (not FTTN/FTTB) |
| Restart session | Once every 5 minutes, 4 per hour per connection |
| Technician appointment slots | 30 per hour per connection |
| Fresh upgrade options | 20 per hour |
| Create a webhook | 20 per hour |
| Rename a connection | 60 per hour |

Every `429` response includes `retry_after_seconds` and a `Retry-After` header.

## Real-time events

- **Push**: up to 10 HMAC-SHA256 signed webhooks, 26 NBN® event types plus a ping, in JSON, Slack, Microsoft Teams, Discord or Google Chat, managed with the `/nbn/webhooks` endpoints.
- **Pull**: `GET /nbn/updates` with a numeric `cursor`, polled every 15 to 30 seconds; fetch again immediately when `has_more` is true and de-duplicate by event `id`.

## Endpoints

Paths are relative to `https://api.crazytel.io/api/v1`.

### Plans and addresses

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| GET | `/nbn/plans` | List NBN plans | Read |
| GET | `/nbn/plans/{plan_code}` | Get one NBN plan | Read |
| GET | `/nbn/service-levels` | List fault service levels | Read |
| POST | `/nbn/address-check` | Check an address for NBN | Read |
| POST | `/nbn/delivery-address-check` | Register NBN box delivery address | Safe action |

### Your connections

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| GET | `/nbn/overview` | Get NBN overview | Read |
| GET | `/nbn/connections` | List NBN connections | Read |
| GET | `/nbn/connections/{connection_id}` | Get one NBN connection | Read |
| GET | `/nbn/connections/{connection_id}/timeline` | Get connection timeline | Read |
| GET | `/nbn/connections/{connection_id}/documents` | Get connection CIS documents | Read |
| GET | `/nbn/outages` | List NBN outages | Read |
| GET | `/nbn/open-requests` | List open NBN requests | Read |
| GET | `/nbn/boxes` | List NBN boxes | Read |
| GET | `/nbn/updates` | Poll NBN updates feed | Read |

### Settings

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| PUT | `/nbn/connections/{connection_id}/name` | Name an NBN connection | Safe action |
| DELETE | `/nbn/connections/{connection_id}/name` | Remove connection nickname | Safe action |
| PUT | `/nbn/connections/{connection_id}/site-contact` | Set site contact | Safe action |
| DELETE | `/nbn/connections/{connection_id}/site-contact` | Clear site contact | Safe action |
| GET | `/nbn/notification-preferences` | Get NBN SMS hours | Read |
| PUT | `/nbn/notification-preferences` | Set NBN SMS hours | Safe action |

### Health and tests

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| GET | `/nbn/connections/{connection_id}/health` | Get stored connection health | Read |
| GET | `/nbn/connections/{connection_id}/online-status` | Check live online status | Read |
| POST | `/nbn/connections/{connection_id}/health-checks` | Start a health check | Safe action |
| GET | `/nbn/connections/{connection_id}/health-checks/{check_id}` | Get health check result | Read |
| GET | `/nbn/connections/{connection_id}/tests` | List available line tests | Read |
| POST | `/nbn/connections/{connection_id}/tests` | Run an NBN line test | Interrupts connection |
| GET | `/nbn/connections/{connection_id}/tests/{test_id}` | Get line test result | Read |
| POST | `/nbn/connections/{connection_id}/box-check` | Start NBN box check | Safe action |
| GET | `/nbn/connections/{connection_id}/box-check` | Get latest NBN box check | Read |
| GET | `/nbn/connections/{connection_id}/box-check/{box_check_id}` | Get NBN box check result | Read |
| POST | `/nbn/connections/{connection_id}/box-check/{box_check_id}/cancel` | Cancel NBN box check | Safe action |
| POST | `/nbn/connections/{connection_id}/restart-session` | Restart internet session | Interrupts connection |
| GET | `/nbn/connections/{connection_id}/diagnostics-history` | List diagnostics history | Read |

### Faults

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| GET | `/nbn/connections/{connection_id}/fault-checklist` | Get fault troubleshooting checklist | Read |
| POST | `/nbn/connections/{connection_id}/faults` | Report an NBN fault | Costs money |
| GET | `/nbn/connections/{connection_id}/faults` | List connection faults | Read |
| GET | `/nbn/connections/{connection_id}/faults/{fault_id}` | Get fault progress | Read |
| POST | `/nbn/connections/{connection_id}/faults/{fault_id}/notes` | Add update to fault | Safe action |

### Appointments

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| GET | `/nbn/connections/{connection_id}/appointments` | Get technician appointment slots | Read |
| PUT | `/nbn/connections/{connection_id}/appointment` | Move technician appointment | Costs money |
| PUT | `/nbn/connections/{connection_id}/appointment-contact` | Update appointment contact | Safe action |

### Usage and billing

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| GET | `/nbn/usage/export.csv` | Export account usage CSV | Read |
| GET | `/nbn/usage` | Get NBN data usage | Read |
| GET | `/nbn/connections/{connection_id}/usage/export.csv` | Export connection usage CSV | Read |
| GET | `/nbn/connections/{connection_id}/usage` | Get connection data usage | Read |
| GET | `/nbn/billing` | List NBN billing entries | Read |
| GET | `/nbn/connections/{connection_id}/billing` | Get connection billing | Read |
| GET | `/nbn/price-check` | Calculate NBN action cost | Read |

### New orders

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| GET | `/nbn/order-readiness` | Check NBN order readiness | Read |
| POST | `/nbn/id-check/send` | Send NBN ID check link | Safe action |
| POST | `/nbn/orders` | Place an NBN order | Costs money |
| POST | `/nbn/connections/{connection_id}/retry` | Retry a failed NBN order | Costs money |
| POST | `/nbn/connections/{connection_id}/withdraw` | Withdraw a pending order | Safe action |
| GET | `/nbn/connections/{connection_id}/box-delivery` | Track NBN box delivery | Read |
| POST | `/nbn/connections/{connection_id}/activate-self-install` | Activate self-install NBN box | Safe action |
| POST | `/nbn/connections/{connection_id}/box-problem` | Resolve NBN box problem | Costs money |

### Changes

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| DELETE | `/nbn/connections/{connection_id}` | Remove disconnected connection | Cannot be undone |
| GET | `/nbn/connections/{connection_id}/upgrade-options` | List plan and box upgrades | Read |
| PUT | `/nbn/connections/{connection_id}/plan` | Change NBN speed plan | Costs money |
| PUT | `/nbn/connections/{connection_id}/static-ip` | Change Static IP add-on | Interrupts connection |
| PUT | `/nbn/connections/{connection_id}/line-stability` | Set copper line stability | Interrupts connection |
| PUT | `/nbn/connections/{connection_id}/status` | Pause or resume connection | Costs money |
| POST | `/nbn/connections/{connection_id}/fibre-upgrade` | Order full fibre upgrade | Costs money |
| POST | `/nbn/connections/{connection_id}/move` | Move NBN connection | Costs money |
| GET | `/nbn/connections/{connection_id}/scheduled-changes` | List scheduled connection changes | Read |
| POST | `/nbn/connections/{connection_id}/scheduled-changes` | Schedule a future NBN change | Costs money |
| DELETE | `/nbn/connections/{connection_id}/scheduled-changes/{change_id}` | Cancel scheduled NBN change | Safe action |
| POST | `/nbn/connections/{connection_id}/disconnect` | Disconnect NBN connection now | Cannot be undone |

### Webhooks

| Method | Path | What it does | Badge |
| --- | --- | --- | --- |
| GET | `/nbn/webhooks/events` | List webhook event types | Read |
| GET | `/nbn/webhooks/example` | Preview webhook request payload | Read |
| GET | `/nbn/webhooks/deliveries` | List webhook deliveries | Read |
| GET | `/nbn/webhooks/deliveries/{delivery_id}` | Get one webhook delivery | Read |
| POST | `/nbn/webhooks/deliveries/{delivery_id}/resend` | Resend one webhook event | Safe action |
| GET | `/nbn/webhooks` | List NBN webhooks | Read |
| POST | `/nbn/webhooks` | Create an NBN webhook | Safe action |
| GET | `/nbn/webhooks/{webhook_id}` | Get one NBN webhook | Read |
| PUT | `/nbn/webhooks/{webhook_id}` | Update an NBN webhook | Safe action |
| DELETE | `/nbn/webhooks/{webhook_id}` | Delete an NBN webhook | Safe action |
| POST | `/nbn/webhooks/{webhook_id}/new-secret` | Rotate webhook signing secret | Safe action |
| POST | `/nbn/webhooks/{webhook_id}/test` | Send test webhook event | Safe action |
| GET | `/nbn/webhooks/{webhook_id}/deliveries` | List deliveries for one webhook | Read |
| POST | `/nbn/webhooks/{webhook_id}/resend-failed` | Resend failed webhook events | Safe action |

## Frequently asked questions

### Does the NBN® API cost extra?

No. There is no charge to call the NBN® API. Actions that cost money, such as new orders, plan changes and the Static IP add-on, are charged exactly as they are in MyAccount, and `GET /nbn/price-check` gives the exact GST-inclusive amount first. New orders charge nothing on submission and bill the first month when the connection activates.

### How do I get an API key?

Create one in MyAccount (https://myaccount.crazytel.com.au/) and send it in the `X-Crazytel-Api-Key` header. It is the same key as the rest of the Crazytel API.

### Can a script accidentally take a connection offline?

No. Session restarts, port and box resets, plan changes and disconnections are refused with `confirmation_required` until resent with `confirm: true`. Disconnection also needs a fresh `quote_id` and the AVC ID, and disruptive line tests such as SELT need `modem_unplugged: true`.

### Webhooks or polling?

Either, or both. Webhooks push events as they happen; `GET /nbn/updates` works behind a firewall or CGNAT with no inbound port.

## Related

- [NBN® for Nerds](https://crazytel.com.au/crazynbn/for-nerds/index.md)
- [CrazyNBN plans](https://crazytel.com.au/crazynbn/index.md)
- [CrazyAI Voice API](https://crazytel.com.au/crazyai-voice-api/index.md)

nbn®, nbn® co and other nbn® logos and brands are registered trademarks of NBN Co Limited.
