v51

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-014102371.0 MB
Interaction

List interactions

List CRM interactions for the customer. Exactly one filter is required: peer_type + peer_target (remote endpoint), contact_id, or address_id.

The response is the raw, unmodified peer_events shape (design doc 2026-07-25-contact-interaction-retire-to-peer-events, §8.1/§9): rows may include internal-resource peer types (agent, ai, conference, sip legs) with no CRM eligibility filtering or field reshaping applied.

get/contact_interactions

Query parameters

peer_typestring
Example:tel

Remote endpoint type (e.g. "tel", "email"). Required with peer_target.

peer_targetstring
Example:+15551234567

Remote endpoint target (e.g. "+15551234567"). Required with peer_type.

contact_idstring uuid
Example:550e8400-e29b-41d4-a716-446655440000

Filter by resolved contact ID.

address_idstring uuid
Example:7c4d2f3a-1b8e-4f5c-9a6d-3e2f1a0b4c5d

Filter by contact address ID.

page_sizeinteger
Example:25

Number of results to return per page.

page_tokenstring

Cursor token for pagination. Use the next_page_token value from the previous response.

Response

Successful response.

next_page_tokenstring

Pagination token for the next page. Empty when no further pages exist.

Example response

{
  "result": [
    {
      "timestamp": "2026-01-15T10:30:00.123000Z",
      "customer_id": "7c4d2f3a-1b8e-4f5c-9a6d-3e2f1a0b4c5d",
      "publisher": "call",
      "event_type": "call_hangup",
      "reference_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "direction": "incoming",
      "peer": {
        "type": "tel",
        "target": "+14155551234",
        "target_name": "John Smith",
        "name": "Main Office",
        "detail": "Primary contact number"
      },
      "local": {
        "type": "tel",
        "target": "+14155551234",
        "target_name": "John Smith",
        "name": "Main Office",
        "detail": "Primary contact number"
      },
      "data": {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
      }
    }
  ],
  "next_page_token": "2026-01-15T10:30:00.123000Z"
}