Skip to main content

Test Inbound Call

POST 

/api/calls/test-inbound

Initiate a test inbound call.

Phase 1 (sync): Creates the LiveKit room and returns an observer token immediately. Phase 2 (background): Places the SIP call, waits for answer, then dispatches the agent.

This ensures:

  • Frontend can connect as observer right away (shows "Dialing..." status)
  • Agent only starts after the phone is answered (no talking before pickup)

Request

Responses

Successful Response