Ingest a human-handled call
Accepts a recording, or an already-produced transcript, of a call a human agent handled, and queues it for the same post-call analysis an AI call receives: transcription, summary, and one extraction per requested extraction object.
The result is an ordinary call with handled_by=human, so it appears in the calls list and can be compared against AI calls on any analysis board by grouping or filtering on handled_by.
Supply exactly one of recording_url or transcript.
Two kinds of retry
external_refmakes the request idempotent per workspace across redeliveries — the durable guarantee for a webhook that may retry days later.Idempotency-Keycovers an immediate transport retry.
Key terms
Optional key_terms (names, brands, jargon) bias transcription of a recording_url toward those spellings, merged with the platform's default key terms.
Key terms never fail an ingest. When the platform's human-call transcription model doesn't support them, or a transcript was supplied instead of a recording, the call is still accepted and analyzed, the terms are ignored, and the response carries a machine-readable entry in warnings (key_terms_unsupported or key_terms_not_applicable) that also stays on the ingest for later reads.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
Idempotency-Key?stringOptional. When supplied, identical retries replay the saved result. Retries and idempotency.
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$1 <= length <= 255application/json- body
Supply exactly one of recording_url or transcript. The recording is fetched server-side through an SSRF-guarded client that refuses private address ranges, and is subject to a size limit.
recording_url?stringhttp or https URL the platform fetches the recording from. Must resolve to a public address; private ranges are refused. The audio is transcribed with speaker diarization and is not retained by the transcription provider — the uploaded file and the finished job are both deleted once the transcript is read.
urilength <= 2048transcript?array<>An already-produced transcript, for telephony that transcribes on its own. Skips speech-to-text and goes straight to analysis.
1 <= items <= 5000human_agent*stringIdentifier for the human who handled the call. Free text owned by the caller's own systems. Boards can group by it.
1 <= length <= 200direction?string"inbound""inbound""outbound"started_at*stringWhen the call started. Must not be in the future.
date-timeended_at?stringWhen the call ended. Used to derive duration when the recording does not report one.
date-timecaller_number?stringThe external party's number in E.164 form.
length <= 32external_ref?stringThe caller's own identifier for this call. Unique per workspace: re-posting the same value returns the original ingest with 200 rather than creating a second call.
length <= 200extraction_object_ids?array<>Extraction objects to run against the transcript. Each must exist and be unarchived in this workspace.
items <= 20metadata?Free-form JSON stored on the resulting call. The keys human_agent, ingest_source, and transcript_segments are written by the platform and are rejected here.
key_terms?array<>Words and phrases the transcriber should favor for this recording — product names, brands, people, jargon. Terms are trimmed, blanks are dropped, and case-insensitive duplicates are removed (the first spelling wins); at most 100 distinct terms of at most 100 characters each, with no control characters. They are merged with the platform's default key terms (this request's terms first) and capped to the transcription model's own limit; terms over that limit are not sent and the ingest gets a key_terms_truncated warning. Only used when Kejue Voice transcribes a recording_url. If the platform's transcription model does not support key terms, or a transcript is supplied, the request still succeeds, the terms are ignored, and the response's warnings say so (key_terms_unsupported / key_terms_not_applicable).
items <= 100An ingest with this external_ref already exists in the workspace; the original resource is returned unchanged.
application/json- response
id*stringuuidsession_id*stringThe call this ingest created. Readable through the calls API as soon as the ingest is accepted.
uuidstatus*HumanCallIngestStatusqueued accepted, waiting for a worker; transcribing fetching the audio and running the platform's batch speech-to-text with speaker diarization; analyzing transcript stored and analysis jobs dispatched; done analysis is under way on the resulting call; error gave up, see error. Transcription polls to completion and may take minutes on a long recording.
"queued""transcribing""analyzing""done""error"source_kind*string"url""upload""transcript"external_ref*|length <= 200human_agent*stringlength <= 200key_terms*array<>The key terms this request supplied, after normalization (trimmed, de-duplicated). Empty when none were sent. Platform default terms are not listed here.
items <= 100warnings*array<>Non-fatal conditions on this ingest, each with a stable code. Empty when there are none. A warning never changes status: the call is still transcribed and analyzed. Present on the 202 for conditions known at accept time, and added while the worker transcribes for the rest, so read the ingest again to see the full list.
items <= 20error*|A stable, bounded reason when status is error. Never a raw provider message, so it is safe to surface to an end user. The reasons are the recording URL was rejected, the recording could not be transcribed, the recording is larger than the limit, the recording produced no transcribable speech, the transcription provider timed out, the transcript could not be stored for analysis, speech-to-text is not configured for this deployment, and transcription did not succeed after repeated attempts.
length <= 500created_at*stringdate-timeupdated_at*stringdate-timecompleted_at*|date-timecurl -X POST 'https://api.kejue.co/v1/ingest/human-calls' \ -H 'Content-Type: application/json' \ -d '{ "recording_url": "https://recordings.example.com/calls/8842.wav", "human_agent": "alice.kowalski", "direction": "inbound", "started_at": "2026-08-12T09:14:00Z", "ended_at": "2026-08-12T09:21:30Z", "caller_number": "+447700900123", "external_ref": "zendesk-1234", "extraction_object_ids": [ "44444444-4444-4444-8444-444444444444" ], "key_terms": [ "Kejue", "Kejue Voice Care Plus" ]}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82", "status": "queued", "source_kind": "url", "external_ref": "string", "human_agent": "string", "key_terms": [ "string" ], "warnings": [ { "code": "key_terms_unsupported", "message": "string" } ], "error": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "completed_at": "2019-08-24T14:15:22Z"}