API reference
Base URL: https://api.account.telebroad.com/api/public/v1 — every endpoint takes an API key or an OAuth token as Authorization: Bearer ….
These pages are generated from the OpenAPI spec, so they cannot drift from what the API does.
SMS
Send a text message from one of the account's numbers, and discover which numbers those are. Sending is billed — see the SMS billing concept page.
| Endpoint | Scope | Purpose |
|---|---|---|
GET /sms/lines | sms:read | List the numbers you can send from |
POST /sms/messages | sms:send | Send a text message |
GET /sms/unread | messages:read | Unread counts |
POST /sms/lines/{line}/read | messages:write | Mark a whole line read |
GET /sms/lines/{line}/blocked | sms:read | List blocked senders |
POST /sms/lines/{line}/blocked | sms:write | Block a sender |
GET /sms/lines/{line}/blocked/{number} | sms:read | Check whether a number is blocked |
DELETE /sms/lines/{line}/blocked/{number} | sms:write | Unblock a sender |
GET /sms/lines/{line}/scheduled | sms:read | List scheduled messages |
POST /sms/lines/{line}/scheduled | sms:send | Schedule a message |
DELETE /sms/lines/{line}/scheduled/{id} | sms:write | Cancel a scheduled message |
GET /sms/templates | sms:read | List saved replies |
POST /sms/templates | sms:write | Save a reply |
PUT /sms/templates/{id} | sms:write | Edit a saved reply |
DELETE /sms/templates/{id} | sms:delete | Delete a saved reply |
GET /sms/drafts/{draftId} | sms:read | Read a draft |
PUT /sms/drafts/{draftId} | sms:write | Save a draft |
DELETE /sms/drafts/{draftId} | sms:delete | Discard a draft |
Conversations
A text thread's state. A conversation has no id: it is the pair (one of your numbers, the other party's number).
| Endpoint | Scope | Purpose |
|---|---|---|
POST /sms/conversations/{line}/{number}/resolve | sms:write | Mark a conversation handled |
GET /sms/conversations | messages:read | List conversations (the inbox) |
GET /sms/conversations/{line}/{number} | messages:read | Read a conversation's messages |
DELETE /sms/conversations/{line}/{number} | messages:delete | Delete a conversation |
GET /sms/conversations/{line}/{number}/messages/{id} | messages:read | Read the page containing a message |
DELETE /sms/conversations/{line}/{number}/messages/{id} | messages:delete | Delete one message |
POST /sms/conversations/{line}/{number}/read | messages:write | Mark messages read or unread |
POST /sms/conversations/{line}/{number}/reopen | sms:write | Reopen a resolved conversation |
POST /sms/conversations/{line}/{number}/assign | sms:write | Assign a conversation to a user |
Users
The account's users — who works here, and how to reach them.
| Endpoint | Scope | Purpose |
|---|---|---|
GET /users | users:read | List the account's users |
POST /users | users:write | Create a user |
DELETE /users/{id} | users:delete | Delete a user |
Profile
The person behind the credential — their own profile and their own phone lines, with the SIP logins a web phone registers with. See the Build your own web phone guide.
| Endpoint | Scope | Purpose |
|---|---|---|
GET /me | profile:read | Get your own profile and phone line logins |
Calls
Call history, one call's journey, its recordings and its transcripts. A call with transfers is ONE call with several legs — and several recordings and transcripts. Placing a call (click to call) is charged — see the Click to call concept page.
| Endpoint | Scope | Purpose |
|---|---|---|
POST /calls | calls:make | Place a call (click to call) |
POST /calls/search | reports:read | Search call history |
GET /calls/{callid} | reports:read | Get one call with its legs |
GET /calls/{callid}/transcripts | recordings:read | Get a call's transcripts |
GET /calls/{callid}/recordings | recordings:read | List a call's recordings |
GET /calls/{callid}/recordings/{uniqueid} | recordings:read | Get one recorded leg |
DELETE /calls/{callid}/recordings/{uniqueid} | recordings:delete | Delete a recorded leg |
DELETE /calls/{callid}/recordings/{uniqueid}/{recordingid} | recordings:delete | Delete one recording file of a leg |
Queues
Call queues: list, create, edit and delete them, add and remove their agents, and log agents in and out. Also the agents' sign-in history — when each agent logged in to and out of a queue or hunt group, and when they paused (do not disturb). See the Agent sessions concept page.
| Endpoint | Scope | Purpose |
|---|---|---|
GET /queues | queues:read | List call queues |
POST /queues | queues:write | Create a call queue |
GET /queues/{id} | queues:read | Get a call queue |
PUT /queues/{id} | queues:write | Edit a call queue |
DELETE /queues/{id} | queues:delete | Delete a call queue |
POST /queues/{id}/agents | queues:write | Add an agent to a queue |
DELETE /queues/{id}/agents/{agentId} | queues:delete | Remove an agent from a queue |
POST /queues/{id}/agents/{agentId}/login | queues:write | Log an agent in |
POST /queues/{id}/agents/{agentId}/logout | queues:write | Log an agent out |
GET /queues/agent-sessions | reports:read | List agent sign-in and pause sessions |
Faxes
Sent and received faxes, their delivery status and documents, and sending a fax from one of the account's fax numbers. Sending is charged — see the Faxes concept page.
| Endpoint | Scope | Purpose |
|---|---|---|
GET /faxes | fax:read | List sent and received faxes |
POST /faxes | fax:send | Send a fax |
GET /faxes/lines | fax:read | List the fax numbers you can use |
GET /faxes/{id} | fax:read | Get one fax and its delivery status |
GET /faxes/{id}/file | fax:read | Download a fax document |
Webhooks
Subscriptions to account events. This is the configuration API; the payloads that get delivered to your endpoint are documented in the Webhooks guide.
| Endpoint | Scope | Purpose |
|---|---|---|
GET /webhooks | webhooks:read | List webhook subscriptions |
POST /webhooks | webhooks:write | Create a webhook subscription |
GET /webhooks/types | webhooks:read | List the valid event types |
GET /webhooks/{id} | webhooks:read | Get one subscription |
PUT /webhooks/{id} | webhooks:write | Update a subscription (merge — identical to PATCH) |
PATCH /webhooks/{id} | webhooks:write | Update a subscription (merge) |
DELETE /webhooks/{id} | webhooks:delete | Delete a subscription |
POST /webhooks/{id}/enable | webhooks:write | Start delivering to a subscription |
POST /webhooks/{id}/disable | webhooks:write | Stop delivering to a subscription |
Outside the public API
One endpoint is documented here that is not under /api/public/v1: the flow call trigger, at https://api.account.telebroad.com/api/v1. It takes only an API key with the flows:call scope and answers in a different envelope — read Calling into a Flow before using it.
| Endpoint | Scope | Purpose |
|---|---|---|
POST /flows/{flowId}/calls | flows:call | Call a number and run a Flow when it answers |