Skip to main content

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.

EndpointScopePurpose
GET /sms/linessms:readList the numbers you can send from
POST /sms/messagessms:sendSend a text message
GET /sms/unreadmessages:readUnread counts
POST /sms/lines/{line}/readmessages:writeMark a whole line read
GET /sms/lines/{line}/blockedsms:readList blocked senders
POST /sms/lines/{line}/blockedsms:writeBlock a sender
GET /sms/lines/{line}/blocked/{number}sms:readCheck whether a number is blocked
DELETE /sms/lines/{line}/blocked/{number}sms:writeUnblock a sender
GET /sms/lines/{line}/scheduledsms:readList scheduled messages
POST /sms/lines/{line}/scheduledsms:sendSchedule a message
DELETE /sms/lines/{line}/scheduled/{id}sms:writeCancel a scheduled message
GET /sms/templatessms:readList saved replies
POST /sms/templatessms:writeSave a reply
PUT /sms/templates/{id}sms:writeEdit a saved reply
DELETE /sms/templates/{id}sms:writeDelete a saved reply
GET /sms/drafts/{draftId}sms:readRead a draft
PUT /sms/drafts/{draftId}sms:writeSave a draft
DELETE /sms/drafts/{draftId}sms:writeDiscard 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).

EndpointScopePurpose
POST /sms/conversations/{line}/{number}/resolvesms:writeMark a conversation handled
GET /sms/conversationsmessages:readList conversations (the inbox)
GET /sms/conversations/{line}/{number}messages:readRead a conversation's messages
DELETE /sms/conversations/{line}/{number}messages:writeDelete a conversation
GET /sms/conversations/{line}/{number}/messages/{id}messages:readRead the page containing a message
DELETE /sms/conversations/{line}/{number}/messages/{id}messages:writeDelete one message
POST /sms/conversations/{line}/{number}/readmessages:writeMark messages read or unread
POST /sms/conversations/{line}/{number}/reopensms:writeReopen a resolved conversation
POST /sms/conversations/{line}/{number}/assignsms:writeAssign a conversation to a user

Users

The account's users — who works here, and how to reach them.

EndpointScopePurpose
GET /usersusers:readList the account's users

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.

EndpointScopePurpose
POST /calls/searchreports:readSearch call history
GET /calls/{callid}reports:readGet one call with its legs
GET /calls/{callid}/transcriptsrecordings:readGet a call's transcripts
GET /calls/{callid}/recordingsrecordings:readList a call's recordings
GET /calls/{callid}/recordings/{uniqueid}recordings:readGet one recorded leg

Webhooks

Subscriptions to account events. This is the configuration API; the payloads that get delivered to your endpoint are documented in the Webhooks guide.

EndpointScopePurpose
GET /webhookswebhooks:readList webhook subscriptions
POST /webhookswebhooks:writeCreate a webhook subscription
GET /webhooks/typeswebhooks:readList the valid event types
GET /webhooks/{id}webhooks:readGet one subscription
PUT /webhooks/{id}webhooks:writeUpdate a subscription (merge — identical to PATCH)
PATCH /webhooks/{id}webhooks:writeUpdate a subscription (merge)
DELETE /webhooks/{id}webhooks:writeDelete a subscription
POST /webhooks/{id}/enablewebhooks:writeStart delivering to a subscription
POST /webhooks/{id}/disablewebhooks:writeStop delivering to a subscription