Voice

Answered

The outbound SIP leg was answered. A queued or ringing call becomes ``in_progress`` (with ``started_at``) right away instead of at the agent's first tool call, so calls nobody answered can be given up on quickly. Idempotent: ``recorded: false`` when the call is already in progress or has ended (``status`` says which; an ended call should be hung up).

API key access

This route has its own authentication (or none); an API key is not used here.
POST/api/v1/calls/{call_id}/answered
AuthorizationBearer <token>

Per-call token issued when the call was created (job metadata api_token).

In: header

Path Parameters

call_idstring
Formatuuid

Header Parameters

X-Workspace-Id?string | null

Workspace of the call (must match the token).

lead_idstring
Formatuuid

Response Body

curl -X POST "http://localhost:8000/api/v1/calls/497f6eca-6276-4993-bfeb-53cbbbba6f08/answered" \  -H "X-Workspace-Id: string" \  -H "Content-Type: application/json" \  -d '{    "lead_id": "9bddab70-98e6-43a9-8f32-c9788b9de0c0"  }'
{
  "status": "queued",
  "recorded": true
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}