Events
For live caller turns, use the outbound Agent Relay. It reconnects, retains events until ACK, and works without a public inbound URL. Use the mailbox for non-live fallback awareness when neither relay nor webhook is available. See Agent Relay for the two-command runtime setup. JavaScript examples callhttps://api.agentline.cloud with fetch and a
Bearer al_live_... key. The Node package is not on npm.
Poll (fallback, consume once)
poll returns pending events and deletes them — treat it as a
one-time read.
{ event_id, agent_id, event_type, payload, created_at }.
The backend emits:
call.received— inbound answercall.utterance— a live caller turn. Itsconversationfield usesuserandassistant.call.completedcall.owner_taskcall.failedcall.busycall.no-answercall.canceledsms.receivedwebhook.test
GET /v1/calls/{id}/transcript uses different role names: human and agent.
Peek (non-destructive)
peek previews what’s queued without consuming it — handy to check before
committing to retrieve.