APIDevelopers

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
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.

EndpointWhat it does
GET /.well-known/oauth-authorization-serverRFC 8414 metadata.
POST /oauth/registerRFC 7591 dynamic client registration. Redirect URIs must be https, or http on localhost for a native app.
GET /oauth/authorizeAuthorization code with PKCE. S256 only; resource must be the MCP server's URL.
POST /oauth/tokenExchanges a code or a refresh token for an access token.
POST /oauth/revokeRFC 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:calls and callboi:knowledge; a permission name works too. No scope means callboi: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.

202
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.

JSON
{
  "error": {
    "code": "SCOPE_NOT_HELD",
    "message": "…",
    "details": [{ "path": "scopes", "message": "…" }],
    "correlationId": "…"
  }
}
StatusCodeMeaning
400VALIDATION_FAILEDThe body or parameters do not match the schema; details names the field.
401UNAUTHORIZEDNo credential, or an invalid or revoked one.
403FORBIDDEN, SCOPE_NOT_HELDThe credential lacks the permission.
404NOT_FOUNDNo such resource in this account.
409IDEMPOTENCY_KEY_REUSEDThe same Idempotency-Key came with a different body.
422A specific codeThe request is valid but breaks a rule, for example UNKNOWN_SCOPES.
429RATE_LIMITED, DAILY_CALL_CAP_REACHEDThe 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 lastError starts with deferred 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:

HTTP
POST <your url>
callboi-signature: t=<unix>,v1=<hex hmac-sha256(secret, "<t>.<body>")>
callboi-event-id: evt_…
callboi-event-type: call.completed

Recompute 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

Verified numbers5 endpoints

Open with fields

Campaigns10 endpoints

Open with fields

Leads7 endpoints

Open with fields

Consents3 endpoints

Open with fields

Suppressions2 endpoints

Open with fields

Agents12 endpoints

Open with fields

Analytics4 endpoints

Open with fields

Usage6 endpoints

Open with fields

Webhooks5 endpoints

Open with fields

API keys5 endpoints

Open with fields

Connected Apps3 endpoints

Open with fields

Team7 endpoints

Open with fields

Account8 endpoints

Open with fields

Provider Connections9 endpoints

Open with fields

Audit1 endpoint

Open with fields