Calls
Inject context into a live call
POST
Encrypts and durably records one context message before scheduling delivery. On 202, wait for Retry-After and GET the Location call; match the returned message id in data_messages and poll delivery_status until published or failed.
bearerAuthheader
AuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringFormat
uuidIdempotency-Key*stringRequired. Reuse the same key to retry this write safely. Retries and idempotency.
Match
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$Length
1 <= length <= 255application/json- body
Queues an encrypted system-context message for a live call. The message is committed before delivery and retried for transient message-bus or subscriber-readiness failures. content is limited to 4096 UTF-8 bytes; newlines are allowed, blank-only content and NUL are rejected.
content*stringLength
1 <= length <= 4096role?"system"Default
"system"Value in
"system"urgency?stringDefault
"soon"Value in
"immediate""soon""later"Context was encrypted and durably queued for delivery.
application/json- response
id*stringFormat
uuidcall_id*stringFormat
uuidrole*"system"Value in
"system"urgency*stringValue in
"immediate""soon""later"delivery_status*"pending"Value in
"pending"created_at*stringFormat
date-timecurl -X POST 'https://api.kejue.co/v1/calls/497f6eca-6276-4993-bfeb-53cbbbba6f08/context' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "content": "string"}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "call_id": "0d0a16ab-a508-4d58-bf24-5dc3cb248f3e", "role": "system", "urgency": "immediate", "delivery_status": "pending", "created_at": "2019-08-24T14:15:22Z"}