Make an API key
An admin makes keys in Settings → API. Give each one a name you'll recognize, like Zapier.
- The full key is shown once, when it's made. It starts with
ckb_. Copy it then. CallKB keeps only a scrambled form of it, so nobody can show it to you again. - Everyone on your team sees the list of keys, with each key's first characters, who made it and when it was last used.
- Lost a key? Make a new one and revoke the old one. A revoked key is refused from the next request on, with a 401.
- A company can have 20 working keys. Revoked keys don't count.
Authentication
Send the key in the Authorization header on every request.
Authorization: Bearer ckb_your_key
An X-Api-Key: ckb_your_key header works too. A key belongs to one company, and every call sent with it goes to that company.
Nothing in a request can name another one.
The API answers servers and automation tools. Browsers on other sites can't read its answers, so never put a key in a web page.
Check a key
GET /api/v1/ping says which company a key belongs to and its plan. Use it to test a connection.
curl https://dashboard.callkb.app/api/v1/ping \
-H "Authorization: Bearer ckb_your_key" {
"company": "Northwind E-Bikes",
"plan": "starter"
} plan is free, starter, growth or
enterprise. GET /api/v1/me gives the same answer, for tools that look for a me endpoint.
Send calls
POST /api/v1/calls with a JSON body. Send one call as an object, or up to 100 at once as
{"calls": [...]} or a plain JSON list.
curl https://dashboard.callkb.app/api/v1/calls \
-H "Authorization: Bearer ckb_your_key" \
-H "Content-Type: application/json" \
-d '{"id": "call-1042", "transcript": "Agent: Thanks for calling. How can I help?\nCustomer: Does the battery fit the 2024 frame?"}'
Set Content-Type: application/json. Without it, curl's -d sends the body as form fields, and it isn't
read as JSON.
curl https://dashboard.callkb.app/api/v1/calls \
-H "Authorization: Bearer ckb_your_key" \
-H "Content-Type: application/json" \
-d @calls.json {
"calls": [
{
"id": "call-1042",
"transcript": "Agent: Thanks for calling. How can I help?\nCustomer: Does the battery fit the 2024 frame?",
"duration_seconds": 184
},
{
"id": "call-1043",
"transcript": "Agent: Northwind support, this is Sam.\nCustomer: My charger light keeps blinking red.",
"duration_seconds": "2:05"
}
]
} Fields
Each call takes these fields. Names are case-sensitive, and fields not listed here are ignored, except a recording link (see Recordings).
-
idRequired -
Text or a number, up to 200 characters
The call's id in your phone system. A call whose id your company already has is skipped.
Also accepted:
call_id,callId,external_id,externalId. -
transcriptRequired -
Text, a list of lines or a list of turns
What was said on the call. Transcript formats, below, shows each shape.
Also accepted:
transcription,transcript_text,transcriptText,turns,utterances,dialogue. -
duration_secondsOptional -
A number, a number as text, or a time like 2:05
How long the call lasted. Without it, CallKB uses the last timestamp in the transcript.
Also accepted:
durationSeconds,duration_sec,durationSec,duration. In milliseconds:duration_msordurationMs. -
queueOptional -
Text, up to 80 characters
The call queue or department the call came in on. It's kept on the call, so your team can filter and group calls by it. Never send an agent's name here.
Also accepted:
department,team.
A call with no transcript field can be a transcription tool's output instead, with its utterances or segments, as in an uploaded JSON file.
Transcript formats
A transcript is read the same way as an uploaded file. Any of these shapes works.
Lines of text
One line per turn, each starting with the speaker. Timestamps like [00:02] are optional.
{
"id": "call-1042",
"transcript": "[00:02] Agent: Thanks for calling. How can I help?\n[00:06] Customer: Does the battery fit the 2024 frame?"
} A list of lines
{
"id": "call-1042",
"transcript": [
"Agent: Thanks for calling. How can I help?",
"Customer: Does the battery fit the 2024 frame?"
]
} A list of turns
Each turn names the speaker in speaker, role or participant, and the words in
text or content. start is seconds into the call (start_ms
for milliseconds), and it's optional. A list of turns sent as a JSON string works too.
{
"id": "call-1042",
"transcript": [
{ "speaker": "Agent", "text": "Thanks for calling. How can I help?", "start": 2 },
{ "speaker": "Customer", "text": "Does the battery fit the 2024 frame?", "start": 6 }
]
} Captions
WebVTT or SRT text, with speakers in voice tags or as a Name: at the start of each cue.
{
"id": "call-1042",
"transcript": "WEBVTT\n\n00:00:02.000 --> 00:00:05.000\n<v Agent>Thanks for calling. How can I help?\n\n00:00:06.000 --> 00:00:09.500\n<v Customer>Does the battery fit the 2024 frame?"
} Speakers
Speakers can be labelled by role (Agent, Rep, Customer, Caller), by name or by number, like Speaker 1. CallKB works out which side is the agent from what each side says, and keeps only Agent or Customer, never the name.
Text with no speaker labels is kept line by line, but then CallKB can't tell the agent from the customer. Label speakers when you can.
Send a transcript file
Post the file as multipart/form-data, one file per request, in a field named file. Put the call's id in a
field named id, and duration_seconds if you have it.
curl https://dashboard.callkb.app/api/v1/calls \
-H "Authorization: Bearer ckb_your_key" \
-F "file=@call-1046.vtt" \
-F "id=call-1046" - JSON, CSV, text, VTT and SRT files are read straight away, up to 100 calls a file. The response lists each call, as it does for JSON.
- A file with one call takes the
idfield as its id. A file with several calls needs an id for each call inside the file. - Excel and zip files are read in the background, like a browser upload. The response is a 202 with status queued, and the calls show on the Upload page a few minutes later.
- A request with a file can be up to 25 MB. Upload bigger files on the Upload page.
- Form fields without a file, or a form-encoded body, are read as one call with the same field names.
{
"id": "march-export.xlsx",
"status": "queued",
"message": "The file is read in the background. Its calls show on the Upload page in a few minutes."
} Responses
A request answers 202 Accepted unless every call in it is an error. The body says what happened to each call, in the order
you sent them.
{
"id": "call-1042",
"status": "queued"
} {
"results": [
{ "id": "call-1042", "status": "queued" },
{ "id": "call-1043", "status": "duplicate" },
{ "id": "call-1044", "status": "not_answered" },
{
"id": null,
"status": "error",
"message": "Each call needs an id, the call's id in your phone system. It's how a call sent twice is skipped."
}
]
} -
queued - Taken in. It's read in the background, and its questions go into drafts for your team.
-
duplicate - Skipped. Your company already has a call with this id, or the same id came earlier in the request.
-
not_answered - Set aside: the transcript was empty, or only one side spoke, as on a voicemail. It's never read and never counts toward your plan.
-
queue_skipped - Kept, not read. Your company chose not to read calls from this queue. It doesn't count toward your plan, and it's read if an admin turns the queue back on.
-
error - Not taken in. The message says why.
When every call is an error, the answer is 422 instead. Calls that come back as duplicate or
not_answered aren't errors, so a request of only those still gets a 202. For one call, the 422 body has the error with the
call's id and status. For several, it has an error line and the same results list.
{
"error": "The transcript has no lines we could read. Put each line as Speaker: what they said.",
"id": "call-1045",
"status": "error"
} Errors
Errors come back as JSON with an error field that says what to fix.
- 400 Bad Request
-
The body isn't valid JSON, has no calls or more than 100, or the form data can't be read.
For example: “Send at most 100 calls per request. This one has 140.”
- 401 Unauthorized
-
No key, or a key that isn't valid or was revoked.
For example: “That API key isn't valid. It may have been revoked. An admin can make a new one in Settings, under API.”
- 413 Payload Too Large
-
Over 10 MB for JSON or a form-encoded body, over 25 MB for multipart form data, or over 5 MB for one form field.
For example: “The request is larger than 10 MB.”
- 415 Unsupported Media Type
-
A file type the API doesn't read.
For example: “That file type isn't supported. Send a transcript file: json, csv, txt, vtt, srt, xlsx or zip.”
- 422 Unprocessable Content
-
Every call in the request is an error, or a file couldn't be read or needs an id field.
For example: “No calls found in this file. Check it matches one of the formats on the Upload page.”
- 429 Too Many Requests
-
Over a rate limit. Wait the seconds in the Retry-After header, then send it again.
For example: “Too many requests. Each key can make 120 a minute. Try again in 23 seconds.”
- 500 Internal Server Error
-
Something failed on our side.
For example: “Something went wrong on our side. Send it again in a minute. Calls already taken in are skipped.”
HTTP/1.1 429 Too Many Requests
Retry-After: 23
Content-Type: application/json
{
"error": "Too many requests. Each key can make 120 a minute. Try again in 23 seconds."
} Limits
- Requests
- 120 a minute per key, and 300 a minute per company across all its keys. Minutes are clock minutes.
- Calls per request
- 100, as JSON or in one JSON, CSV, text or caption file. Excel and zip files are read in the background.
- Request size
- 10 MB for JSON or a form-encoded body, 25 MB for multipart form data, and 5 MB for any one form field.
- Files per request
- One.
- Call id
- Up to 200 characters.
- Working keys
- 20 per company. Revoked keys don't count.
A request over a rate limit gets a 429 with a Retry-After header, the seconds until the minute ends.
Duplicates and retries
CallKB skips a call whose id your company already has, whether it came from the API, an upload or a phone-system connection. So a retry after a
timeout or a 500 is safe: calls already taken in come back as duplicate.
Send the call's own id from your phone system every time. A new id on each try would read the call twice.
Calls and your plan
Every plan includes the API. Calls sent through it count the same way as uploaded calls and calls from a phone-system connection: each answered call
counts once. Calls set aside as not_answered or skipped as duplicate never count.
On Free, reading pauses after 500 calls a month until the 1st (UTC). Calls sent after that wait in line, and nothing is lost.
API calls show on the Upload page, one row per UTC day, named like “API, Oct 20 2026”.
Plans and pricingZapier, Make and n8n
Any tool that can send an HTTP request with a header can send calls. In Zapier:
- In CallKB, open Settings → API, make a key named Zapier and copy it.
- Start the Zap with your phone system's trigger for a new or finished call. Pick one whose data includes the transcript text. If it doesn't, add a step that gets the transcript.
- Add a Webhooks by Zapier action with the POST event.
- Set the URL to
https://dashboard.callkb.app/and the payload type toapi/v1/calls json. - Under Data, map
idto the call's id andtranscriptto the transcript text. Addduration_secondsif you have the call's length. - Under Headers, add
Authorizationwith the valueBearer, a space, then your key. - Test the step. A response with status
queuedmeans the call is in.
Zapier sends numbers as text. That's fine: duration_seconds can be "184" or "3:04".
In Make or n8n, add an HTTP request step with the same address, header and JSON fields.
Recordings
The API takes transcripts. A call sent with only a recording link, or an audio file, gets status error with a message that
asks for the call's transcript. Nothing is downloaded or stored. When it's the only call in the request, the answer is
422.
A recording link is read from any of these fields: recording_url, recordingUrl, recording, recording_link, recordingLink, audio_url or audioUrl.
A call that has a transcript as well is read from the transcript. A call with neither gets “Send a transcript with each call.”
If your phone system only gives you recordings, tell us which one you use: hello@callkb.app. The integrations page lists the phone systems CallKB connects to.