Docs
Assistants

Assistants

Create, read, update and delete the voice assistants that answer your calls.

An assistant is one configured voice agent — a prompt, a voice, a greeting, and the phone number, knowledge bases and functions attached to it. A workspace can have many.

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.

Ownership

Any member can create an assistant and read every assistant in the workspace. Changing or deleting one is gated by ownership: a MEMBER may only change assistants they created; an ADMIN or OWNER may change any. The detail response tells you which applies to your token in its canEdit field.

Attaching things

You attach a phone number, knowledge bases and functions by id, in the same request that creates or updates the assistant:

  • connectPhoneId — one phone number (an assistant has at most one). Use disconnectPhoneId on update to detach it. If the assistant already has a number, the new one replaces it. If the number is attached to another assistant, it moves to this one, and that assistant stops answering it. The API does not refuse this, so read the phone's assistantId first.
  • connectKnowledgeIds / disconnectKnowledgeIds — up to 20 per request.
  • connectFunctionIds / disconnectFunctionIds — up to 20 per request.

An id from another workspace answers the matching …_NOT_FOUND_OR_UNAUTHORIZED code.

Attaching an sms function to an assistant whose number cannot send SMS answers SMS_CAPABILITY_REQUIRED; an assistant with no number counts as one that cannot. On create, the check reads the connectPhoneId number. On update, it reads the number the request leaves the assistant with, so one request can attach a new number and an sms function together. Connecting a number that cannot send SMS detaches the assistant's sms functions in the same update. Removing the number with disconnectPhoneId keeps them, and they work again once you connect a number that can text. A book function with smsSend on is not refused: the booking still works, only its confirmation text is skipped, and the answer is a plain success with no warning.

Variables in the spoken texts

Four texts can hold variables, written in double braces: greeting, outboundIdentity, outboundGreeting and outboundVoicemailMessage.

  • {{assistant_name}} works in all four. dBel fills it with the assistant's name, spoken exactly as written.
  • {{business_name}}, {{callback_number}} and {{callback_line}} work in all four. dBel fills them from the workspace's Settings → Business details: the business name (or the workspace name when that is blank), the callback number, and a sentence such as "You can reach us at +1 555 123 4567." — empty when no callback number is set. See the outbound calling guide.
  • The three outbound texts also take your own names, like {{first_name}}. You send their values in each outbound call request. Write {{name}} to make a value required, {{name|there}} to speak a word when it is missing, or {{name|}} to leave it out. outboundIdentity cannot use {{name|}}: the person who answers must always hear who is calling.
  • The inbound greeting takes no names of your own: an inbound call has no request to carry values.

A create or update with a broken variable ({{name with no closing braces, {{}}, or {{a|b|c}}) or a variable the text does not take answers 400 (INVALID_REQUEST_BODY). errors names the field and the reason, for example "{{nmae}} is not available in the inbound greeting." In an outbound text a misspelled name is still a valid name of your own, so check callVariables.

The detail response lists the variables of the three outbound texts in callVariables: one entry per name, sorted by name. required is true when any use of the name is {{name}}. fallback is the first fallback word, in identity → greeting → voicemail order, or null. The voicemail message counts only while voicemail is on.

Timezone

timezone is the timezone the assistant uses on calls: it is told the date and time there. The value is an IANA timezone name, such as Australia/Sydney or America/New_York, and it follows daylight saving. A new assistant created without one gets its workspace's timezone, or UTC when the workspace has none. The API accepts the names below. A create or update with any other name answers 400 (INVALID_REQUEST_BODY).

Australia
Australia/Sydney, Australia/Melbourne, Australia/Brisbane, Australia/Adelaide, Australia/Darwin, Australia/Perth, Australia/Hobart
Canada
America/St_Johns, America/Halifax, America/Toronto, America/Winnipeg, America/Regina, America/Edmonton, America/Vancouver, America/Whitehorse
United States
America/New_York, America/Chicago, America/Denver, America/Phoenix, America/Los_Angeles, America/Anchorage, Pacific/Honolulu, America/Puerto_Rico
Other
UTC, Europe/London, Europe/Dublin, Europe/Paris, Europe/Berlin, Africa/Johannesburg, Asia/Dubai, Asia/Kolkata, Asia/Singapore, Asia/Tokyo, Pacific/Auckland, America/Mexico_City, America/Sao_Paulo

Before December 2026, this field held a fixed UTC offset, such as "PLUS_10_00". Each stored value moved to a timezone with the same offset: "PLUS_10_00" became Etc/GMT-10, which is UTC+10:00 all year (an Etc/GMT name inverts the sign), and "PLUS_05_30" became Asia/Kolkata. Two offsets have no such timezone: "PLUS_10_30" became Australia/Lord_Howe, which adds 30 minutes in its summer, and "PLUS_12_45" became Pacific/Chatham, which adds an hour. The old values are refused. A migrated value, such as Etc/GMT-10, is accepted, so a client can send back what it read; for a new value, pick a name from the list above.

Example — create an assistant

curl -X POST https://dbel.ai/api/assistants \
  -H "Authorization: Bearer $DBEL_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Front desk",
    "prompt": "You are the receptionist for Acme Dental. Be brief and warm.",
    "greeting": "Thanks for calling Acme Dental. How can I help?"
  }'

The response is 201 with { "assistant": { … } }. Keep assistant.id — every other assistant call needs it.

Endpoints

GET/api/assistants

List the workspace's assistants, newest first.

Auth: Bearer token · any workspace member

Query parameters

FieldTypeNotes
limitinteger 1–100Rows per page. Default 20.
cursorstringThe nextCursor from the previous page.

Responses

200 JSON body:

FieldTypeNotes
assistantsobject[]
assistants[].idstring
assistants[].namestring
assistants[].versionstring
assistants[].createdAtdatetime
assistants[].updatedAtdatetime
assistants[].greetingstring
assistants[].outboundIdentitystring | null
assistants[].outboundGreetingstring | null
assistants[].outboundVoicemailEnabledboolean
assistants[].outboundVoicemailMessagestring | null
assistants[].outboundOptOutOfferboolean
assistants[].llmenum: GPT_5_4_MINI | GPT_6_LUNA | GPT_5_2 | GPT_5_6_TERRA | GPT_5_4
assistants[].promptstring
assistants[].keywordsstring[]
assistants[].recordingEnabledboolean
assistants[].recordingDisclosureModeenum: NOTICE_ONLY | EXPLICIT_CONSENT | null
assistants[].recordingDisclosureTextstring | null
assistants[].recordingConsentDeniedBehaviorenum: CONTINUE_WITHOUT_RECORDING | HANGUP | null
assistants[].timezonestring
assistants[].transcriptEnabledboolean
assistants[].llmTemperaturenumber
assistants[].voiceSimilaritynumber
assistants[].voiceStabilitynumber
assistants[].voiceStylenumber
assistants[].voiceIdstring
assistants[].voiceNamestring
assistants[].voicePreviewUrlstring
assistants[].webhookUrlstring | null
assistants[].embedEnabledboolean
assistants[].embedModeenum: POPUP | INLINE
assistants[].embedAllowedDomainsstring[]
assistants[].embedThemejson | null
assistants[].embedBrandingHiddenboolean
assistants[].embedPageContextjson | null
assistants[].embedLeadCapturejson | null
hasMoreboolean
nextCursorstring | null

Errors

Problem Details (RFC 9457). Each code links to its reference page.

Plus the auth-layer codes every endpoint can return

POST/api/assistants

Create an assistant.

RESOURCE_CONFLICT means an assistant with that name already exists in the workspace, ignoring case. A rename through PATCH is not checked. The web-widget plan limits apply as on update: an embedAllowedDomains list longer than the plan allows answers PLAN_FEATURE_RESTRICTED, and on the Free plan embedBrandingHidden, embedPageContext.enabled and the embedLeadCapture fields save switched off with a 201.

Auth: Bearer token · any workspace member

Request body

application/json

outboundVoicemailMessage needs outboundVoicemailEnabled: true in the same body, even when voicemail is already on. With recordingEnabled: false, recordingDisclosureMode, recordingDisclosureText and recordingConsentDeniedBehavior must be absent or null. With recording on (or recordingEnabled absent) and no recordingDisclosureMode key, the assistant gets EXPLICIT_CONSENT and the default consent question, and a recordingDisclosureText sent without a mode is ignored; an explicit null mode stays null.

FieldTypeNotes
name *stringmin 1
versionstring
llmenum: GPT_5_4_MINI | GPT_6_LUNA | GPT_5_2 | GPT_5_6_TERRA | GPT_5_4
llmTemperaturenumbermin 0, max 1
voiceIdstring
voiceNamestring
voicePreviewUrlstringURL
voiceStabilitynumbermin 0, max 1
voiceSimilaritynumbermin 0, max 1
voiceStylenumbermin 0, max 1
promptstring
greetingstring
outboundIdentitystring | nullmax 160
outboundGreetingstring | nullmax 160
outboundVoicemailEnabledboolean
outboundOptOutOfferboolean
outboundVoicemailMessagestring | nullmax 500
keywordsstring[]
timezoneenum: Australia/Sydney | Australia/Melbourne | Australia/Brisbane | Australia/Adelaide | Australia/Darwin | Australia/Perth | Australia/Hobart | America/St_Johns | America/Halifax | America/Toronto | America/Winnipeg | America/Regina | America/Edmonton | America/Vancouver | America/Whitehorse | America/New_York | America/Chicago | America/Denver | America/Phoenix | America/Los_Angeles | America/Anchorage | Pacific/Honolulu | America/Puerto_Rico | UTC | Europe/London | Europe/Dublin | Europe/Paris | Europe/Berlin | Africa/Johannesburg | Asia/Dubai | Asia/Kolkata | Asia/Singapore | Asia/Tokyo | Pacific/Auckland | America/Mexico_City | America/Sao_Paulo | Etc/GMT+12 | Etc/GMT+11 | Etc/GMT+10 | Etc/GMT+9 | Etc/GMT+8 | Etc/GMT+7 | Etc/GMT+6 | Etc/GMT+5 | Etc/GMT+4 | Etc/GMT+3 | Etc/GMT+2 | Etc/GMT+1 | Etc/GMT-1 | Etc/GMT-2 | Etc/GMT-3 | Etc/GMT-4 | Etc/GMT-5 | Etc/GMT-6 | Etc/GMT-7 | Etc/GMT-8 | Etc/GMT-9 | Etc/GMT-10 | Etc/GMT-11 | Etc/GMT-12 | Etc/GMT-13 | Etc/GMT-14 | Asia/Tehran | Asia/Kabul | Asia/Kathmandu | Asia/Yangon | Australia/Eucla | Australia/Lord_Howe | Pacific/Chatham
transcriptEnabledboolean
recordingEnabledboolean
recordingDisclosureModeenum: NOTICE_ONLY | EXPLICIT_CONSENT | null
recordingDisclosureTextstring | nullmax 500
recordingConsentDeniedBehaviorenum: CONTINUE_WITHOUT_RECORDING | HANGUP | null
webhookUrlstring | nullURL, max 2048
embedEnabledboolean
embedModeenum: POPUP | INLINE
embedAllowedDomainsstring[]
embedThemeobject
embedTheme.accentColorstringmatches ^#[0-9a-f]{6}$
embedTheme.themeenum: light | dark | system
embedTheme.iconstring | nullURL
embedTheme.positionenum: bottom-right | bottom-left | top-right | top-left
embedTheme.headerTextstringmax 40
embedTheme.idlePromptstringmax 60
embedBrandingHiddenboolean
embedPageContextobject
embedPageContext.enabled *boolean
embedPageContext.layers *(enum: metadata | content | interactions | annotations)[]
embedPageContext.selectorstringmax 200
embedPageContext.maxCharsintegermin 500, max 12000
embedPageContext.maxItemsintegermin 1, max 100
embedPageContext.maxEventsintegermin 0, max 50
embedLeadCaptureobject
embedLeadCapture.name *enum: off | optional | required
embedLeadCapture.email *enum: off | optional | required
embedLeadCapture.phone *enum: off | optional | required
embedLeadCapture.headingstringmax 120
embedLeadCapture.submitLabelstringmax 40
connectFunctionIdsstring[]
connectKnowledgeIdsstring[]
connectPhoneIdstring

Responses

201 JSON body:

FieldTypeNotes
assistantobject
assistant.idstring
assistant.namestring
assistant.versionstring
assistant.createdAtdatetime
assistant.updatedAtdatetime
assistant.greetingstring
assistant.outboundIdentitystring | null
assistant.outboundGreetingstring | null
assistant.outboundVoicemailEnabledboolean
assistant.outboundVoicemailMessagestring | null
assistant.outboundOptOutOfferboolean
assistant.llmenum: GPT_5_4_MINI | GPT_6_LUNA | GPT_5_2 | GPT_5_6_TERRA | GPT_5_4
assistant.promptstring
assistant.keywordsstring[]
assistant.recordingEnabledboolean
assistant.recordingDisclosureModeenum: NOTICE_ONLY | EXPLICIT_CONSENT | null
assistant.recordingDisclosureTextstring | null
assistant.recordingConsentDeniedBehaviorenum: CONTINUE_WITHOUT_RECORDING | HANGUP | null
assistant.timezonestring
assistant.transcriptEnabledboolean
assistant.llmTemperaturenumber
assistant.voiceSimilaritynumber
assistant.voiceStabilitynumber
assistant.voiceStylenumber
assistant.voiceIdstring
assistant.voiceNamestring
assistant.voicePreviewUrlstring
assistant.webhookUrlstring | null
assistant.embedEnabledboolean
assistant.embedModeenum: POPUP | INLINE
assistant.embedAllowedDomainsstring[]
assistant.embedThemejson | null
assistant.embedBrandingHiddenboolean
assistant.embedPageContextjson | null
assistant.embedLeadCapturejson | null

Errors

Problem Details (RFC 9457). Each code links to its reference page.

Plus the auth-layer codes every endpoint can return

GET/api/assistants/{assistantId}

Fetch one assistant with its phone, knowledge bases and functions.

Auth: Bearer token · any workspace member

Responses

200 JSON body:

FieldTypeNotes
assistantobjectphone is null when no number is attached. canEdit says whether the CALLER may PATCH/DELETE this assistant; it is not returned by the list endpoint. callVariables lists the custom variables the outbound texts use, one entry per name, sorted by name: send a value for each required one when you place a call. fallback is the first fallback word, in identity → greeting → voicemail order. The voicemail message counts only while voicemail is on.
assistant.idstring
assistant.namestring
assistant.versionstring
assistant.createdAtdatetime
assistant.updatedAtdatetime
assistant.greetingstring
assistant.outboundIdentitystring | null
assistant.outboundGreetingstring | null
assistant.outboundVoicemailEnabledboolean
assistant.outboundVoicemailMessagestring | null
assistant.outboundOptOutOfferboolean
assistant.llmenum: GPT_5_4_MINI | GPT_6_LUNA | GPT_5_2 | GPT_5_6_TERRA | GPT_5_4
assistant.promptstring
assistant.keywordsstring[]
assistant.recordingEnabledboolean
assistant.recordingDisclosureModeenum: NOTICE_ONLY | EXPLICIT_CONSENT | null
assistant.recordingDisclosureTextstring | null
assistant.recordingConsentDeniedBehaviorenum: CONTINUE_WITHOUT_RECORDING | HANGUP | null
assistant.timezonestring
assistant.transcriptEnabledboolean
assistant.llmTemperaturenumber
assistant.voiceSimilaritynumber
assistant.voiceStabilitynumber
assistant.voiceStylenumber
assistant.voiceIdstring
assistant.voiceNamestring
assistant.voicePreviewUrlstring
assistant.webhookUrlstring | null
assistant.embedEnabledboolean
assistant.embedModeenum: POPUP | INLINE
assistant.embedAllowedDomainsstring[]
assistant.embedThemejson | null
assistant.embedBrandingHiddenboolean
assistant.embedPageContextjson | null
assistant.embedLeadCapturejson | null
assistant.phoneobject
assistant.phone.idstring
assistant.phone.phoneNumberstring
assistant.phone.friendlyNamestring
assistant.phone.countryCodestring
assistant.phone.capabilitiesjson
assistant.phone.providerenum: dbel | twilio | ringcentral | telnyx | custom
assistant.phone.verificationStatusenum: unverified | verified | failed
assistant.basesobject[]
assistant.bases[].idstring
assistant.bases[].namestring
assistant.functionsobject[]config is read server-side to derive smsDependency and is never returned — a custom function's config can carry request headers.
assistant.functions[].idstring
assistant.functions[].namestring
assistant.functions[].typeenum: transfer | book | sms | info | evaluate | custom
assistant.functions[].smsDependencyenum: required | optional | none
assistant.canEditboolean
assistant.callVariablesobject[]
assistant.callVariables[].namestring
assistant.callVariables[].requiredboolean
assistant.callVariables[].fallbackstring | null

Errors

Problem Details (RFC 9457). Each code links to its reference page.

Plus the auth-layer codes every endpoint can return

PATCH/api/assistants/{assistantId}

Update an assistant. Send only the fields you change.

The workspace owner's plan limits web-widget fields. An embedAllowedDomains list longer than the plan allows answers PLAN_FEATURE_RESTRICTED. On the Free plan, embedBrandingHidden, embedPageContext.enabled and the embedLeadCapture fields save switched off and the answer is still 200 — read the response to see what was saved.

Auth: Bearer token · any workspace member · a MEMBER may act only on rows they created (ADMIN/OWNER on any)

Request body

application/json

outboundVoicemailMessage needs outboundVoicemailEnabled: true in the same body, even when voicemail is already on. With recordingEnabled: false, recordingDisclosureMode, recordingDisclosureText and recordingConsentDeniedBehavior must be absent or null. Turning recording on (recordingEnabled: true on an assistant that was off) with no recordingDisclosureMode key and no stored mode sets EXPLICIT_CONSENT and the default consent question.

FieldTypeNotes
namestringmin 1
versionstring
llmenum: GPT_5_4_MINI | GPT_6_LUNA | GPT_5_2 | GPT_5_6_TERRA | GPT_5_4
llmTemperaturenumbermin 0, max 1
voiceIdstring
voiceNamestring
voicePreviewUrlstringURL
voiceStabilitynumbermin 0, max 1
voiceSimilaritynumbermin 0, max 1
voiceStylenumbermin 0, max 1
promptstring
greetingstring
outboundIdentitystring | nullmax 160
outboundGreetingstring | nullmax 160
outboundVoicemailEnabledboolean
outboundOptOutOfferboolean
outboundVoicemailMessagestring | nullmax 500
keywordsstring[]
timezoneenum: Australia/Sydney | Australia/Melbourne | Australia/Brisbane | Australia/Adelaide | Australia/Darwin | Australia/Perth | Australia/Hobart | America/St_Johns | America/Halifax | America/Toronto | America/Winnipeg | America/Regina | America/Edmonton | America/Vancouver | America/Whitehorse | America/New_York | America/Chicago | America/Denver | America/Phoenix | America/Los_Angeles | America/Anchorage | Pacific/Honolulu | America/Puerto_Rico | UTC | Europe/London | Europe/Dublin | Europe/Paris | Europe/Berlin | Africa/Johannesburg | Asia/Dubai | Asia/Kolkata | Asia/Singapore | Asia/Tokyo | Pacific/Auckland | America/Mexico_City | America/Sao_Paulo | Etc/GMT+12 | Etc/GMT+11 | Etc/GMT+10 | Etc/GMT+9 | Etc/GMT+8 | Etc/GMT+7 | Etc/GMT+6 | Etc/GMT+5 | Etc/GMT+4 | Etc/GMT+3 | Etc/GMT+2 | Etc/GMT+1 | Etc/GMT-1 | Etc/GMT-2 | Etc/GMT-3 | Etc/GMT-4 | Etc/GMT-5 | Etc/GMT-6 | Etc/GMT-7 | Etc/GMT-8 | Etc/GMT-9 | Etc/GMT-10 | Etc/GMT-11 | Etc/GMT-12 | Etc/GMT-13 | Etc/GMT-14 | Asia/Tehran | Asia/Kabul | Asia/Kathmandu | Asia/Yangon | Australia/Eucla | Australia/Lord_Howe | Pacific/Chatham
transcriptEnabledboolean
recordingEnabledboolean
recordingDisclosureModeenum: NOTICE_ONLY | EXPLICIT_CONSENT | null
recordingDisclosureTextstring | nullmax 500
recordingConsentDeniedBehaviorenum: CONTINUE_WITHOUT_RECORDING | HANGUP | null
webhookUrlstring | nullURL, max 2048
embedEnabledboolean
embedModeenum: POPUP | INLINE
embedAllowedDomainsstring[]
embedThemeobject
embedTheme.accentColorstringmatches ^#[0-9a-f]{6}$
embedTheme.themeenum: light | dark | system
embedTheme.iconstring | nullURL
embedTheme.positionenum: bottom-right | bottom-left | top-right | top-left
embedTheme.headerTextstringmax 40
embedTheme.idlePromptstringmax 60
embedBrandingHiddenboolean
embedPageContextobject
embedPageContext.enabled *boolean
embedPageContext.layers *(enum: metadata | content | interactions | annotations)[]
embedPageContext.selectorstringmax 200
embedPageContext.maxCharsintegermin 500, max 12000
embedPageContext.maxItemsintegermin 1, max 100
embedPageContext.maxEventsintegermin 0, max 50
embedLeadCaptureobject
embedLeadCapture.name *enum: off | optional | required
embedLeadCapture.email *enum: off | optional | required
embedLeadCapture.phone *enum: off | optional | required
embedLeadCapture.headingstringmax 120
embedLeadCapture.submitLabelstringmax 40
connectFunctionIdsstring[]
connectKnowledgeIdsstring[]
connectPhoneIdstring
disconnectFunctionIdsstring[]
disconnectKnowledgeIdsstring[]
disconnectPhoneIdstring

Responses

200 JSON body:

FieldTypeNotes
assistantobject
assistant.idstring
assistant.namestring
assistant.versionstring
assistant.createdAtdatetime
assistant.updatedAtdatetime
assistant.greetingstring
assistant.outboundIdentitystring | null
assistant.outboundGreetingstring | null
assistant.outboundVoicemailEnabledboolean
assistant.outboundVoicemailMessagestring | null
assistant.outboundOptOutOfferboolean
assistant.llmenum: GPT_5_4_MINI | GPT_6_LUNA | GPT_5_2 | GPT_5_6_TERRA | GPT_5_4
assistant.promptstring
assistant.keywordsstring[]
assistant.recordingEnabledboolean
assistant.recordingDisclosureModeenum: NOTICE_ONLY | EXPLICIT_CONSENT | null
assistant.recordingDisclosureTextstring | null
assistant.recordingConsentDeniedBehaviorenum: CONTINUE_WITHOUT_RECORDING | HANGUP | null
assistant.timezonestring
assistant.transcriptEnabledboolean
assistant.llmTemperaturenumber
assistant.voiceSimilaritynumber
assistant.voiceStabilitynumber
assistant.voiceStylenumber
assistant.voiceIdstring
assistant.voiceNamestring
assistant.voicePreviewUrlstring
assistant.webhookUrlstring | null
assistant.embedEnabledboolean
assistant.embedModeenum: POPUP | INLINE
assistant.embedAllowedDomainsstring[]
assistant.embedThemejson | null
assistant.embedBrandingHiddenboolean
assistant.embedPageContextjson | null
assistant.embedLeadCapturejson | null

Errors

Problem Details (RFC 9457). Each code links to its reference page.

Plus the auth-layer codes every endpoint can return

DELETE/api/assistants/{assistantId}

Soft-delete an assistant. Its phone number, functions, knowledge bases and SIP trunk links are detached in the same step. Its calls stay in the call list, and fetching one by id answers it with assistant: null.

Auth: Bearer token · any workspace member · a MEMBER may act only on rows they created (ADMIN/OWNER on any)

Responses

204 No body.

Errors

Problem Details (RFC 9457). Each code links to its reference page.

Plus the auth-layer codes every endpoint can return