Skip to content
Inkbox

Inkbox

DocsPricingBlogContact
GuidesAPI Reference

Ctrl K

GuidesAPI Reference

Jump to

Incoming calls

Configure how inbound calls are handled for an agent identity. This config is keyed on the agent identity, so it governs inbound handling for both dedicated numbers and shared iMessage lines that route to that identity.

Requires an admin API key, an identity-scoped API key, or you can manage this from the Inkbox Console.


Set incoming call action PUT

PUT /incoming-call-action

Upsert the inbound-call configuration for an agent identity.

Request body

FieldTypeRequiredDescription
incoming_call_actionstringYes"auto_accept", "auto_reject", or "webhook"
agent_identity_idUUID | nullConditionalThe agent identity to configure. Required with an admin API key or the Console (omitting returns 422); identity-scoped keys use their own and cannot name another (403)
client_websocket_urlstring | nullConditionalWebSocket URL (wss://) used when the call is answered. Required when incoming_call_action is "auto_accept" (omitting returns 422)
incoming_call_webhook_urlstring | nullConditionalHTTPS endpoint that receives the incoming-call webhook. Required when incoming_call_action is "webhook" (omitting returns 422)

Request example

JSONJSON

Response (200)

JSONJSON

Error responses

StatusDescription
404Agent identity not found
422agent_identity_id is required
422client_websocket_url is required when incoming_call_action is "auto_accept"
422incoming_call_webhook_url is required when incoming_call_action is "webhook"

Code examples


Get incoming call action GET

GET /incoming-call-action

Read the inbound-call configuration for an agent identity.

Query parameters

ParameterTypeRequiredDescription
agent_identity_idUUIDConditionalThe agent identity to read. Required with an admin API key or the Console (omitting returns 422); identity-scoped keys use their own and cannot name another (403)

Response (200)

JSONJSON

Error responses

StatusDescription
404Agent identity not found
404No inbound-call config set for this identity
422agent_identity_id is required

Code examples


Incoming call action object

FieldTypeDescription
agent_identity_idUUIDThe agent identity this configuration applies to
incoming_call_actionstring"auto_accept", "auto_reject", or "webhook"
client_websocket_urlstring | nullWebSocket URL used when the call is answered
incoming_call_webhook_urlstring | nullHTTPS endpoint that receives the incoming-call webhook when the action is "webhook"

  • Calls — place outbound calls and retrieve call records
  • Webhooks — when the action is "webhook", the webhook responds with {action, client_websocket_url} to accept or reject the call (see the phone Webhooks page)
  • Media Stream — how audio and text flow over the WebSocket once a call is answered

Inkbox

Copyright © 2026 Inkbox

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website

Inkbox

Copyright © 2026 Inkbox

This site is protected by reCAPTCHA.

Google Privacy Policy and Terms of Service apply.

Website

Y CombinatorBacked by Y Combinator
Incoming calls