Skip to main content
PATCH
/
v1
/
update-call
/
{call_id}
curl -X PATCH https://api.voicy.co/v1/update-call/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer voicy_sk_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "metadata": {
      "crm_id": "12345",
      "outcome": "successful"
    }
  }'
{
  "call_id": "550e8400-e29b-41d4-a716-446655440000",
  "call_type": "phone_call",
  "call_status": "ended",
  "agent_id": "550e8400-e29b-41d4-a716-446655440001",
  "from_number": "+15551234567",
  "to_number": "+15559876543",
  "direction": "outbound",
  "start_timestamp": 1704067200000,
  "end_timestamp": 1704067320000,
  "duration_ms": 120000,
  "metadata": {
    "crm_id": "12345",
    "outcome": "successful"
  }
}
Update custom metadata for a call. This is useful for attaching CRM IDs, outcomes, or other integration data.

Path Parameters

call_id
string
required
The unique identifier of the call (UUID format).

Request Body

metadata
object
required
Custom metadata to store with the call. Maximum size: 50KB.
{
  "crm_id": "12345",
  "outcome": "successful",
  "follow_up_required": true
}

Response

Returns the updated call object.
curl -X PATCH https://api.voicy.co/v1/update-call/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer voicy_sk_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "metadata": {
      "crm_id": "12345",
      "outcome": "successful"
    }
  }'
{
  "call_id": "550e8400-e29b-41d4-a716-446655440000",
  "call_type": "phone_call",
  "call_status": "ended",
  "agent_id": "550e8400-e29b-41d4-a716-446655440001",
  "from_number": "+15551234567",
  "to_number": "+15559876543",
  "direction": "outbound",
  "start_timestamp": 1704067200000,
  "end_timestamp": 1704067320000,
  "duration_ms": 120000,
  "metadata": {
    "crm_id": "12345",
    "outcome": "successful"
  }
}