Skip to main content

Getting started

What this API is​

api.account.telebroad.com/api/public/v1 is the public REST API for a Telebroad account — the same account you manage in the admin center, reached programmatically. (public = meant for outside developers; v1 = the version these docs cover.)

Each credential belongs to one account, and the API works with that account's communications. Here is what it covers, by area:

AreaWhat you can doStart at
SMSSend texts from your numbers, schedule them, and manage drafts, templates, and blocked sendersPOST /sms/messages
ConversationsWork the shared inbox — assign, resolve, reopen, and mark threads readConversations
CallsSearch call history and pull recordings and AI transcriptsCall recordings
UsersList the people on the accountUsers
WebhooksGet notified automatically the moment a call or text happens, so you don't have to keep checking for new onesWebhooks

What every request looks like​

Every request works the same way: it goes to one web address (the base URL), carries one key that proves who you are (a credential), and comes back in the same predictable format every time — a success reply or an error reply, both with the same structure.

What you send

Base URLhttps://api.account.telebroad.com/api/public/v1 — the address every request goes to
CredentialAuthorization: Bearer … — an API key or an OAuth token, which proves who you are

What you get back

Success{"data": …} — the request worked; whatever you asked for is inside data
Error{"error": {"type": …, "message": …}} — something went wrong; the details are inside error

When a request fails, act on the type — a short, fixed code like unauthenticated, insufficient_scope, or rate_limited (refresh the credential, request a missing permission, wait and retry, and so on). The message beside it is for a person to read and can change at any time, so never build logic on it. The Errors page lists every code and what to do about each.

This API takes machine credentials only (keys and tokens), never a browser login — so there is no "logged-in" session and no CSRF to worry about.

How to use it, step by step​

1. Get a key​

In the admin center, go to Integrations → API Keys and create one. Select only the scopes you need, pick an expiry, and copy the key — it is shown exactly once.

export TB_KEY=tbk_live_xxxxxxxxxxxxxxxxxxxxxxxx

2. Make a call​

The safest first request is listing your texting numbers — the numbers on your account that can send texts. It only needs view permission (not send), returns something you'll recognize, and can never cost you money.

curl https://api.account.telebroad.com/api/public/v1/sms/lines \
-H "Authorization: Bearer $TB_KEY"
{
"data": [
{
"number": "12125550188",
"name": "Acme Support",
"userIds": [481920, 481925],
"bulkEnabled": false
}
]
}

If you get a 401, the key is wrong or expired. If you get a 403, the key is real but wasn't given sms:read — see Errors, which tells the two apart.

3. Send something​

Any number from step 2 works as the from. This spends money — it sends a real text and charges you at your account's per-text price.

curl -X POST https://api.account.telebroad.com/api/public/v1/sms/messages \
-H "Authorization: Bearer $TB_KEY" \
-H 'Content-Type: application/json' \
-d '{
"from": "12125550188",
"to": ["13475550123"],
"message": "Hello from the API."
}'

The response tells you what it cost, so you never have to wait for an invoice to find out:

{
"data": {
"from": "12125550188",
"billing": {"billed": true, "currency": "USD", "type": "sms", "units": 1, "totalPrice": 0.0025, "recipientCount": 1, "skippedCount": 0},
"messages": [{"id": 88214417, "to": ["13475550123"], "type": "sms", "status": "sent", "units": 1, "unitPrice": 0.0025, "price": 0.0025}],
"skipped": []
}
}
Multiple recipients do NOT send multiple texts

Two or more numbers in to creates one group thread — a shared conversation, billed once as an MMS. For separate, private messages, send one request per person. See SMS billing.

Where to go next​

If you want to…Go to
Try endpoints without writing codePlayground
Look up an endpoint's exact fieldsReference
Decide between a key and OAuthChoosing a credential
Act on behalf of your usersOAuth 2.1
Receive events instead of pollingWebhooks
Understand what you'll be chargedSMS billing