CallBoi API
Run calls, campaigns, leads and outcomes from your own systems. The reference is generated from the OpenAPI document, the same schema the server validates with.
- Base URL
- https://api-callboi.boilab.ai
- Version
- 2026-07-01
- OpenAPI
- Download openapi.json
On this page
Base URL and format
Every request goes to https://api-callboi.boilab.ai. Bodies are JSON.
- Identifiers are prefixed ULIDs:
lead_01J8…,call_…,cmp_…. Sortable, not guessable. - Money is an integer in minor units:
{"amountMinor": 2500, "currency": "TRY"}is 25.00 TRY. - Timestamps are ISO 8601 in UTC.
Authentication
Send Authorization: Bearer <credential> with every request. The credential is one of two kinds:
- An API key,
cbk_live_…: for servers and scripts. Created on the dashboard under Settings, API keys, shown once, revocable at any time. - An OAuth access token,
cbo_…: for apps that cannot be handed a key, such as claude.ai. The app gets it itself, with your approval; see OAuth below.
A key belongs to one account and works only with the permissions it was given. A key cannot get a permission its creator's role lacks; asking for one gets 403 SCOPE_NOT_HELD. The permission each endpoint needs is shown next to it below.
The dashboard offers three presets: Read only reads everything except call recordings, Calls adds creating leads, recording consent, running campaigns and starting or cancelling calls, Knowledge adds documents, fact corrections and trying the agent. Managing the account, the team, keys and providers is in no preset.
OAuth 2.1
For apps that cannot be handed a key, CallBoi is an OAuth 2.1 authorization server following the MCP authorization spec. These endpoints speak the RFCs, not this API's conventions: form-encoded requests and {"error", "error_description"} errors.
| Endpoint | What it does |
|---|---|
GET /.well-known/oauth-authorization-server | RFC 8414 metadata. |
POST /oauth/register | RFC 7591 dynamic client registration. Redirect URIs must be https, or http on localhost for a native app. |
GET /oauth/authorize | Authorization code with PKCE. S256 only; resource must be the MCP server's URL. |
POST /oauth/token | Exchanges a code or a refresh token for an access token. |
POST /oauth/revoke | RFC 7009. A refresh token ends the whole connection. |
- Consent. The person signs in to the dashboard as usual, picks the account if they have several, sees the app's name, the address it returns to and the permissions in plain words, and approves.
- Scopes. The presets are requested as
callboi:read,callboi:callsandcallboi:knowledge; a permission name works too. No scope meanscallboi:read. A connection gets the request intersected with the person's role, never more. - Tokens. Codes live 60 seconds and are single use. Access tokens live an hour, refresh tokens 30 days and rotate on every use; a spent refresh token presented again ends the whole connection.
- Audience. Every token is bound to the MCP server's URL; a token minted for anything else is refused.
Idempotency
Every mutating endpoint accepts an Idempotency-Key header. The same key with the same body replays the first response; no second call or record is created. The same key with a different body gets 409 IDEMPOTENCY_KEY_REUSED.
Long operations such as starting a call or launching a campaign return 202 with {accepted, id, kind}. Poll the resource the id refers to for the result.
HTTP/1.1 202 Accepted
{ "accepted": true, "id": "cjob_…", "kind": "call_job" }Errors
Every error has the same envelope. Codes are stable; include the correlationId when you contact support.
{
"error": {
"code": "SCOPE_NOT_HELD",
"message": "…",
"details": [{ "path": "scopes", "message": "…" }],
"correlationId": "…"
}
}| Status | Code | Meaning |
|---|---|---|
| 400 | VALIDATION_FAILED | The body or parameters do not match the schema; details names the field. |
| 401 | UNAUTHORIZED | No credential, or an invalid or revoked one. |
| 403 | FORBIDDEN, SCOPE_NOT_HELD | The credential lacks the permission. |
| 404 | NOT_FOUND | No such resource in this account. |
| 409 | IDEMPOTENCY_KEY_REUSED | The same Idempotency-Key came with a different body. |
| 422 | A specific code | The request is valid but breaks a rule, for example UNKNOWN_SCOPES. |
| 429 | RATE_LIMITED, DAILY_CALL_CAP_REACHED | The rate limit or the daily call limit was reached. |
Pagination
List endpoints take limit and cursor. limit is 1 to 100, 25 by default. Pass the response's nextCursor as the next request's cursor; null means the list is done.
Rate limits
Limits are per credential: every API key and every connected app has a per-minute limit, 120 requests a minute for a new key by default. Over it you get 429 RATE_LIMITED; wait a moment and retry.
Daily call limit
Every key and every connected app has a daily call limit, 50 by default. Every call the credential causes in a local day, in your account's time zone, counts: calls it starts with POST /v1/calls, every lead dialled by a campaign it launched, and its test calls.
- A test call over the limit is refused with
429 DAILY_CALL_CAP_REACHED. - Other calls are not failed: the call job waits for the next local day, and its
lastErrorstarts withdeferred to the next day: daily call limit of. - Change the limit with
PATCH /v1/api-clients/{id}and{"maxCallsPerDay": 200}. Only an owner may remove it, and a key cannot change its own.
Webhooks
Register an endpoint with POST /v1/webhook-endpoints; the whsec_… secret is returned exactly once. Every delivery is signed:
POST <your url>
callboi-signature: t=<unix>,v1=<hex hmac-sha256(secret, "<t>.<body>")>
callboi-event-id: evt_…
callboi-event-type: call.completedRecompute the HMAC over the raw body and accept timestamps within five minutes. Answer 2xx within ten seconds; failed deliveries are retried after 1 min, 5 min, 30 min, 2 h and 8 h.
Endpoints
Grouped by topic. Each row has the method, the path, what it does and the permission it needs; the request and response fields are on each topic's own page.
Calls14 endpoints
Open with fields- POST
/v1/callsCreate an individual (ad-hoc) callcalls:create - GET
/v1/callsList call sessionscalls:read - POST
/v1/test-callsCreate a test call to one of the acting member's verified numberscalls:create - GET
/v1/calls/exportEvery call matching the list's filters as a CSV, newest first, at most 50,000 rows (streamed)calls:read - POST
/v1/calls/{callId}/redialCall the same lead again with the same agent version; refused with the gate's reasons (422 CALL_REFUSED)calls:create - GET
/v1/calls/{callId}Get a call sessioncalls:read - POST
/v1/calls/{callId}/cancelCancel a not-yet-terminal callcalls:cancel - POST
/v1/call-jobs/{callJobId}/cancelCancel a call job that has not startedcalls:create - GET
/v1/call-jobs/{callJobId}Get a call job (dispatch unit)calls:read - GET
/v1/calls/{callId}/eventsImmutable call event ledgercalls:read - GET
/v1/calls/{callId}/transcriptCall transcript (policy-gated)transcripts:read - GET
/v1/calls/{callId}/outcomeStructured call outcomeoutcomes:read - GET
/v1/calls/{callId}/recordingWhether the call has a playable recording (policy-gated)recordings:read - GET
/v1/calls/{callId}/recording/audioThe recording's audio, fetched from the provider on request (policy-gated, Range supported)recordings:read
Verified numbers5 endpoints
Open with fields- GET
/v1/verified-numbersList the acting member's verified phone numberstenant:read - GET
/v1/verified-numbers/channelsWhether a verification code can be sent by SMS nowtenant:read - POST
/v1/verified-numbers/verificationsSend a 6-digit code by SMS to a number to verify ittenant:read - POST
/v1/verified-numbers/verifications/{verificationId}/confirmConfirm a number with the code it receivedtenant:read - DELETE
/v1/verified-numbers/{verifiedNumberId}Remove one of your verified numberstenant:read
Campaigns10 endpoints
Open with fields- POST
/v1/campaignsCreate a campaign (draft)campaigns:write - GET
/v1/campaignsList campaignscampaigns:read - GET
/v1/campaigns/{campaignId}Get a campaigncampaigns:read - POST
/v1/campaigns/{campaignId}/leadsAttach leads to a campaigncampaigns:write - PATCH
/v1/campaigns/{campaignId}/variablesReplace the campaign variables the agent may speak on its calls (offer, deadline, area, web address)campaigns:write - POST
/v1/campaigns/{campaignId}/launchLaunch a campaign (async expansion)campaigns:launch - POST
/v1/campaigns/{campaignId}/pausePause a running campaigncampaigns:launch - POST
/v1/campaigns/{campaignId}/resumeResume a paused campaigncampaigns:launch - POST
/v1/campaigns/{campaignId}/cancelCancel a campaigncampaigns:launch - GET
/v1/campaigns/{campaignId}/statsCampaign execution statisticscampaigns:read
Leads7 endpoints
Open with fields- POST
/v1/leadsCreate a leadleads:write - GET
/v1/leadsList leadsleads:read - GET
/v1/leads/{leadId}Get a leadleads:read - POST
/v1/leads/{leadId}/screeningRecord a do-not-call scrub or a Reassigned Numbers Database answer for a lead's numberleads:write - POST
/v1/leads/{leadId}/email-opt-outRecord that the person wants no follow-up e-mail; the address they confirmed on a call is suppressed tooleads:write - POST
/v1/leads/{leadId}/translation-approvalsReplace non-English free text on a lead with an English translation the owner approvedleads:write - POST
/v1/lead-importsBulk-import leads with optional consent evidenceleads:write
Consents3 endpoints
Open with fieldsSuppressions2 endpoints
Open with fieldsAgents12 endpoints
Open with fields- POST
/v1/agentsCreate an agentagents:write - GET
/v1/agentsList agentsagents:read - GET
/v1/agents/{agentId}Get an agentagents:read - DELETE
/v1/agents/{agentId}Delete an agent (its calls keep their history)agents:write - PATCH
/v1/agents/{agentId}/regionChange an agent's country, state and languageagents:write - POST
/v1/agents/{agentId}/versionsCreate an immutable agent version (draft)agents:write - GET
/v1/agents/{agentId}/versionsList agent versionsagents:read - POST
/v1/agents/{agentId}/versions/upgrade-to-template/previewPropose moving a custom agent to a template kind (nothing is saved)agents:write - POST
/v1/agents/{agentId}/versions/upgrade-to-templateCreate a draft version on a template kind from a custom one (nothing is published)agents:write - GET
/v1/agent-versionsEvery agent version with its agent's nameagents:read - GET
/v1/retell-modelsThe Retell models enabled for agent versions, and the platform defaultagents:read - POST
/v1/agents/{agentId}/versions/{versionId}/publishPublish an agent version (freezes its config)agents:publish
Analytics4 endpoints
Open with fields- GET
/v1/analytics/overviewCall funnel and cost KPIsanalytics:read - GET
/v1/analytics/callsCalls and answered calls per local day and houranalytics:read - GET
/v1/analytics/unanswered-questionsQuestions the agents could not answer on calls in the last days, grouped, from the call quality analysisoutcomes:read - GET
/v1/analytics/call-reasonsWhy people called the support agents in the last days, grouped, with how each group's calls ended, from the call quality analysisoutcomes:read
Usage6 endpoints
Open with fields- GET
/v1/usage/eventsImmutable usage ledgerusage:read - GET
/v1/usage/summaryUsage totals by dimensionusage:read - GET
/v1/usage/displayUsage shown in USD, EUR or GBP, for display only; billing stays in your currencyusage:read - GET
/v1/pricingEffective price book this tenant is billed atbilling:read - GET
/v1/usage/by-providerRevenue and provider cost grouped by providerusage:read - GET
/v1/usage/carrierCarrier balance and carrier cost of the period (cost side only)usage:read
Webhooks5 endpoints
Open with fields- POST
/v1/webhook-endpointsRegister a webhook endpoint (secret returned once)webhooks:manage - GET
/v1/webhook-endpointsList webhook endpointswebhooks:read - DELETE
/v1/webhook-endpoints/{endpointId}Deactivate a webhook endpointwebhooks:manage - GET
/v1/webhook-endpoints/{endpointId}/deliveriesDelivery historywebhooks:read - POST
/v1/webhook-endpoints/{endpointId}/deliveries/{deliveryId}/replayManually replay a deliverywebhooks:manage
API keys5 endpoints
Open with fields- POST
/v1/api-clientsCreate an API key (returned once)api-clients:manage - GET
/v1/api-clientsList API clientsapi-clients:read - GET
/v1/api-clients/grantable-scopesList the scopes the caller may grant a new keyapi-clients:manage - PATCH
/v1/api-clients/{apiClientId}Change an API key's daily call limitapi-clients:manage - POST
/v1/api-clients/{apiClientId}/revokeRevoke an API keyapi-clients:manage
Connected Apps3 endpoints
Open with fieldsTeam7 endpoints
Open with fields- GET
/v1/teamList tenant membersteam:read - PATCH
/v1/team/{membershipId}Change a member's roleteam:manage - DELETE
/v1/team/{membershipId}Remove a member from the tenantteam:manage - POST
/v1/team/invitationsInvite a person to the tenant by emailteam:manage - GET
/v1/team/invitationsList invitations and their delivery stateteam:read - POST
/v1/team/invitations/{invitationId}/resendQueue another delivery attempt for a pending invitationteam:manage - DELETE
/v1/team/invitations/{invitationId}Revoke a pending invitationteam:manage
Account8 endpoints
Open with fields- GET
/v1/tenantGet the current tenanttenant:read - PATCH
/v1/tenant/safetyUpdate kill switch / budget / concurrencytenant:manage - GET
/v1/tenant/retentionHow long each class of the account's data is keptcompliance:read - PATCH
/v1/tenant/retentionSet the account's recording retention periodcompliance:manage - GET
/v1/tenant/legalThe Terms of Service and DPA in force, and what the account acceptedtenant:read - GET
/v1/tenant/onboardingThe account's onboarding record (KYC, FTC SAN, state registrations), its review by CallBoi and any calling suspensiontenant:read - PATCH
/v1/tenant/onboardingSave the onboarding record as a new revision (owner or admin, dashboard session only); CallBoi verifies it before calls to +1 numberscompliance:manage - POST
/v1/tenant/legal/acceptancesAccept the version in force of the Terms of Service or the DPA (owner or admin, dashboard session only)compliance:manage
Provider Connections9 endpoints
Open with fields- POST
/v1/provider-connectionsCreate a voice provider connectionprovider-connections:manage - GET
/v1/provider-connectionsList provider connectionsprovider-connections:read - GET
/v1/provider-catalogAvailable voice providers and their capabilitiesprovider-connections:read - GET
/v1/provider-connections/{connectionId}/voicesVoices an agent can use on this connection, from the provider's catalogueprovider-connections:read - GET
/v1/provider-connections/{connectionId}/voice-librarySearch the provider's shared voice library (voices not yet on the account)provider-connections:read - POST
/v1/provider-connections/{connectionId}/voice-libraryAdd a shared library voice to the provider account, so agents can use itagents:write - PATCH
/v1/provider-connections/{connectionId}/safetyPause/disable a provider connectionprovider-connections:manage - PATCH
/v1/provider-connections/{connectionId}/caller-idsReplace the caller ID (one at most), checked against the provider account's own number listprovider-connections:manage - PATCH
/v1/provider-connections/{connectionId}/carrier-keyAdd, replace or remove the Telnyx API key of a Retell connection (read-only use: call costs and balance)provider-connections:manage