Skip to main content
POST
/
internal
/
calls
/
inbound
Internal Create Inbound Call
curl --request POST \
  --url https://api.oneinbox.ai/internal/calls/inbound \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "room_name": "<string>",
  "from_number": "<string>",
  "to_number": "<string>"
}
'
{}

Body

application/json

Posted by the worker the moment a SIP-inbound job starts.

The room is already created by LK's dispatch rule; we just need a DB row so the worker can later post transcript/duration/end_reason against this call_id.

agent_id
string<uuid>
required
room_name
string
required
from_number
string | null
to_number
string | null

Response

Successful Response

The response is of type Response Internal Create Inbound Call Internal Calls Inbound Post · object.