API reference
Drive dBel from your own systems — assistants, calls, contacts, functions, knowledge bases, phone numbers, SIP trunks and workspaces over HTTPS.
The dBel API is a plain HTTPS + JSON API. Your own code can do most of what the dashboard does with your workspace's data — place an outbound call when a lead lands in your CRM, pull transcripts into your data warehouse, keep contacts in sync. Some setup stays in the dashboard; Set up in the dashboard first lists it.
Beta. This API is documented but not yet frozen. Response fields and error codes may change without a version bump. Pin your integration to the fields you use, and expect additions.
Base URL
All paths on these pages are relative to your dBel app:
https://dbel.aiAuthentication
Every request carries a workspace API token as a Bearer token:
curl https://dbel.ai/api/assistants \
-H "Authorization: Bearer $DBEL_API_TOKEN"Create a token in the dashboard: open Developer, then choose New API Key. The dashboard calls a token an API key.
Tokens
- The token defines the workspace. There is no workspace id in the URL. Every endpoint acts only on the token's workspace, with one exception: creating a workspace makes a new one owned by the token's user. The token cannot reach that new workspace.
- The token carries its creator's role. It acts with its creator's current role in the workspace, read on every request. Some endpoints need ADMIN or OWNER. On others, a MEMBER may change only the records that member created. Each endpoint says which rule applies.
- The token needs its creator to be a member. Removing a member from the workspace revokes every token that member created in it. A revoked token stays revoked, also if the member is invited back. For a production integration, create the token from an account that will stay.
- A token can expire. You pick its lifetime when you create it: 7, 30, 90 (the default), 180 or 365 days. An OWNER or ADMIN can also choose no expiry; a MEMBER cannot. The rule applies when the token is created: a token with no expiry keeps it if its creator later becomes a MEMBER, and from then on acts with the MEMBER role. An expired or revoked token answers
UNAUTHENTICATED. Each member can hold up to 10 tokens per workspace. An expired token still counts toward the 10 until it is revoked, or until dBel deletes it 7 to 8 days after it expires. - Who can see and revoke a token. On the Developer page, an OWNER or ADMIN sees every token in the workspace, with who created it, and can revoke any of them. A MEMBER sees and revokes only their own.
- Some endpoints are session-only. Many dashboard endpoints refuse Bearer tokens on purpose. They answer
403with a plain{ "error": "FORBIDDEN" }body, not Problem Details. This reference documents only the endpoints a token can call.
Set up in the dashboard first
No endpoint lists these values, so take them from the dashboard, or from a record that already uses one:
voiceIdon an assistant. No endpoint lists voices; an existing assistant'svoiceIdcan be reused. dBel does not check the id when you save it.eventIdin abookfunction'sconfig. No endpoint lists Cal.com event types; an existingbookfunction'sconfigcarries one.tokenIdon acustomfunction. No endpoint lists integration tokens; a function that already uses a token shows its id astoken.id. Only an ADMIN or OWNER may attach one — see Tokens and custom functions.
Creating a SIP trunk, uploading a PDF, connecting an integration, creating the webhook signing secret and switching on outbound calling also happen only in the dashboard. So does asking us to approve outbound calls from numbers bought through dBel (how to ask).
Requests
- Send JSON with
Content-Type: application/json, unless an endpoint saysmultipart/form-data. - Unknown top-level fields in a body are ignored. The assistant's embed settings objects are strict: an unknown key inside one is refused.
- Every body is validated. A bad body answers
INVALID_REQUEST_BODY, usually with a per-fielderrorsmap. A body that is not valid JSON usually gets no map. - Ids are opaque strings. Take them from a list or create response — never build one.
Responses
A success returns the resource directly — there is no data wrapper:
{ "assistant": { "id": "clx…", "name": "Front desk", "…": "…" } }A failure is an RFC 9457 Problem Details object with Content-Type: application/problem+json:
{
"type": "https://dbel.ai/errors/assistant-not-found-or-unauthorized",
"title": "Assistant not found or you do not have access.",
"status": 404,
"code": "ASSISTANT_NOT_FOUND_OR_UNAUTHORIZED"
}codeis stable — branch on it, not ontitle.typelinks to the reference page for that code. The full list is at /errors.- Validation failures add
errors, a map of field name → message. - Some failures add
detail, one sentence about this request. For example, a knowledge-baseSUBSCRIPTION_LIMIT_EXCEEDEDnames the plan cap you reached. - A record in another workspace answers the same
…_NOT_FOUND_OR_UNAUTHORIZEDcode as a record that does not exist. That is deliberate. The provisioning-status endpoint is the one exception; its note says how. - The call recording route answers its own failures with a bare status and an empty body. Its sign-in and permission failures are still Problem Details.
Dates are ISO 8601 strings in UTC. Durations are seconds.
Pagination
List endpoints that page return hasMore and nextCursor. Pass nextCursor back as ?cursor= to fetch the next page. limit sets the page size: 1 to 100, default 20. A limit outside that range answers INVALID_REQUEST_QUERY. The one exception is contacts, where limit=0 returns only the count (see that page). A list without these two fields is not paginated and returns everything.
Treat a cursor as short-lived. An unknown or expired cursor, for example the id of a row that was deleted, returns an empty page, not an error. If paging stops before you expect it to, start again without a cursor.
Rate limits
Every request that passes sign-in and the workspace checks counts against a per-member limit: 10 requests per 10 seconds. A second window allows 100 per minute, and it counts refused requests too, so a client that keeps retrying early can stay locked out for up to a minute. All of a member's tokens, in every workspace, share this budget with that member's dashboard session.
Some endpoints add a per-workspace limit that every member shares:
- Call recordings: 10 requests per 10 seconds, with the same 100-per-minute window.
- Document reads: 100 per 10 seconds and 400 per minute. The list, the detail and the PDF download share one budget.
- Placing outbound calls: 30 in a 60-second window that starts at the window's first request.
- Outbound calls from numbers bought through dBel: the plan's number in any 24 hours, under Plan limits. Every accepted request counts, also one that is not dialed. Past it, the endpoint answers
OUTBOUND_DAILY_LIMIT_REACHED.
The 10-second and one-minute windows are estimates, so a short burst can pass slightly more than the number shown. A limited request answers 429. The per-member, recording and document limits send a Retry-After header: the whole number of seconds to wait before you retry. On the recording route, the per-workspace limit answers a bare 429 with no body; every other limit except the one for bought numbers answers RATE_LIMIT_EXCEEDED. The two outbound limits send no Retry-After yet. After RATE_LIMIT_EXCEEDED, wait up to a minute. After OUTBOUND_DAILY_LIMIT_REACHED, wait until the oldest counted call is more than 24 hours old.
Plan limits
Every call in a workspace counts against the plan of the workspace's owner: inbound phone, SIP-trunk, web-widget, playground and outbound calls. The plan sets three limits: assistant minutes, calls at the same time, and the longest one call can last. A fourth applies only to outbound calls from numbers bought through dBel.
| Plan | Assistant minutes | Calls at the same time | Longest call | Calls from bought numbers, any 24 hours |
|---|---|---|---|---|
| Free | 5 | 1 | 5 min | No outbound calls |
| Seed | 55 | 5 | 30 min | No outbound calls |
| Growth | 1,500 | 20 | 60 min | 50 |
| Hypergrowth | 4,000 | 40 | 120 min | 130 |
- Minutes. Minutes are counted per person. The owner's allowance covers every call in every workspace that owner owns. On a paid plan the minutes are a monthly allowance, on annual billing too. They reset each month on your billing day: the day of the month your billing cycle started. In a month without that day (the 29th to the 31st), they reset on the month's last day. On the Free plan the minutes are a one-time allowance: they do not renew. A call's minutes count in the month the call ends. When the minutes are used up, the next caller hears a short "we can't take your call right now" message, and the call ends. That refused call gets no call record, so it is not in the call list and sends no webhook. Plan minutes have no overage. A number dBel provisioned also has a per-minute line charge; that is a separate charge on the owner's subscription, not overage.
- Calls at the same time. The limit counts every call in progress in the workspace: inbound, web-widget, playground and outbound. An incoming call over the limit hears the same message, ends, and gets no call record. Placing an outbound call over the limit answers
SUBSCRIPTION_LIMIT_EXCEEDEDwith the detail "Concurrent call limit reached. Try again shortly." - Calls from bought numbers. The outbound calls a workspace can place from numbers bought through dBel in any 24 hours. Every accepted request counts, also one that is not dialed. Numbers imported from your own Twilio account are not limited this way. Past it, the endpoint answers
OUTBOUND_DAILY_LIMIT_REACHED. - Longest call. One call can last the plan's longest-call time, or the minutes left, whichever is shorter. The assistant warns the caller shortly before the end. Just before the limit it says goodbye, and the call ends at the limit. The call records
endReason: "TIME_LIMIT"and counts as exactly the limit.
Outbound calls follow the same limits. An outbound call needs at least one minute of the owner's minutes left. With less, the endpoint answers PLAN_MINUTES_EXHAUSTED and places no call. dBel checks the minutes again just before it dials. If they ran out in between, it does not dial, and the call ends with endReason: "TIME_LIMIT". If the owner's plan changed to Free in between, it does not dial either, and the call ends with endReason: "ERROR". The longest-call limit on an outbound call starts when the callee answers. The call's minutes count against the owner, not the member who placed it, and so does a dBel number's line charge.
Resources
- Assistants — the voice agents that take calls.
- Calls — call history, transcripts, recordings, and placing outbound calls.
- Contacts — the people you talk to, and enrichment.
- Functions — transfer, SMS, booking, custom HTTP and more.
- Knowledge bases — documents your assistants can search.
- Phone numbers — provisioning, importing from Twilio, and management.
- SIP trunks — bring-your-own-carrier trunks.
- Workspaces — create and delete workspaces.
Every endpoint also documents the codes it can return. On top of those, the auth layer can answer UNAUTHENTICATED, EMAIL_NOT_VERIFIED, INVALID_USER, INVALID_WORKSPACE_ID, WORKSPACE_NOT_FOUND_OR_UNAUTHORIZED, FORBIDDEN and RATE_LIMIT_EXCEEDED where they apply.
CORS
Every endpoint answers OPTIONS with 204, and JSON responses carry Access-Control-Allow-Origin: *. The two file downloads — a call recording and a knowledge PDF — send no CORS headers with the file, so a browser page on another site cannot read them. Calling the API from a browser page still means putting a token in the browser — do it from your server instead.