Skip to main content
WEBHOOK
/
call
/
webhook
{
  "call": {
    "id": "<string>",
    "from_phone_number": "<string>",
    "to_phone_number": "<string>",
    "direction": "inbound",
    "is_completed": true,
    "calls_count": 123,
    "next_call_at": "<unknown>",
    "last_call_attempt": {
      "id": "<string>",
      "phone_number": "<string>",
      "status": "queued",
      "result": "IVR",
      "recording_url": "<string>",
      "started_at": "<unknown>",
      "answered_at": "<unknown>",
      "ended_at": "<unknown>",
      "transcript": [
        {
          "role": "user",
          "content": "<string>"
        }
      ],
      "structured_output": {}
    },
    "call_retry_config": {
      "calling_window_start_time": "<string>",
      "calling_window_end_time": "<string>",
      "retry_delay_seconds": 7200,
      "max_retry_attempts": 3,
      "timezone": "<string>"
    },
    "llm_model": {
      "type": "<string>",
      "name": "<string>"
    },
    "call_attempts": [
      {
        "id": "<string>",
        "phone_number": "<string>",
        "status": "queued",
        "result": "IVR",
        "recording_url": "<string>",
        "started_at": "<unknown>",
        "answered_at": "<unknown>",
        "ended_at": "<unknown>",
        "transcript": [
          {
            "role": "user",
            "content": "<string>"
          }
        ],
        "structured_output": {}
      }
    ],
    "created_at": "<unknown>"
  },
  "call_attempt": {
    "id": "<string>",
    "phone_number": "<string>",
    "status": "queued",
    "result": "IVR",
    "recording_url": "<string>",
    "started_at": "<unknown>",
    "answered_at": "<unknown>",
    "ended_at": "<unknown>",
    "transcript": [
      {
        "role": "user",
        "content": "<string>"
      }
    ],
    "structured_output": {}
  }
}

Body

application/json
call
object
required

This represent a call "order" that was requested by the user. A call order can be resolved over multiple call attempts spanning up to a few days.

call_attempt
object
required

This represent a single call attempt. A call attempt is a single call made to the phone number.

Response

200

Webhook call received