Skip to Content
Human call imports

Ingest a human-handled call

Permissionhuman-calls:createAdd-onHuman call importsRetriesIdempotency-Key optionalAuthentication
POST
/ingest/human-calls

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_ref makes the request idempotent per workspace across redeliveries — the durable guarantee for a webhook that may retry days later.
  • Idempotency-Key covers 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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Header Parameters

Idempotency-Key?string

Optional. When supplied, identical retries replay the saved result. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Request Body

application/json
  1. 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?string

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

Formaturi
Lengthlength <= 2048
transcript?array<>

An already-produced transcript, for telephony that transcribes on its own. Skips speech-to-text and goes straight to analysis.

Items1 <= items <= 5000
human_agent*string

Identifier for the human who handled the call. Free text owned by the caller's own systems. Boards can group by it.

Length1 <= length <= 200
direction?string
Default"inbound"
Value in"inbound""outbound"
started_at*string

When the call started. Must not be in the future.

Formatdate-time
ended_at?string

When the call ended. Used to derive duration when the recording does not report one.

Formatdate-time
caller_number?string

The external party's number in E.164 form.

Lengthlength <= 32
external_ref?string

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

Lengthlength <= 200
extraction_object_ids?array<>

Extraction objects to run against the transcript. Each must exist and be unarchived in this workspace.

Itemsitems <= 20
metadata?

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

Itemsitems <= 100

Response Body

An ingest with this external_ref already exists in the workspace; the original resource is returned unchanged.

application/json
  1. response
id*string
Formatuuid
session_id*string

The call this ingest created. Readable through the calls API as soon as the ingest is accepted.

Formatuuid
status*HumanCallIngestStatus

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

Value in"queued""transcribing""analyzing""done""error"
source_kind*string
Value in"url""upload""transcript"
external_ref*|
Lengthlength <= 200
human_agent*string
Lengthlength <= 200
key_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.

Itemsitems <= 100
warnings*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.

Itemsitems <= 20
error*|

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.

Lengthlength <= 500
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
completed_at*|
Formatdate-time
Example Request
curl -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"  ]}'
Example Response
{  "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"}