Skip to main content
GET
/
contacts
/
{CONTACT_ID}
/
customer-interactions
cURL
curl --request GET \
  --url https://api.alpharun.com/api/v1/contacts/{CONTACT_ID}/customer-interactions \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "customer_interactions": [
      {
        "id": "abc123",
        "data_extraction_fields": [
          {
            "key": "customer_satisfaction_score",
            "name": "Customer Satisfaction Score",
            "type": "number",
            "value": 4.5
          },
          {
            "key": "issue_resolved",
            "name": "Issue Resolved",
            "type": "boolean",
            "value": true
          }
        ],
        "account": {
          "id": "account123",
          "ext_id": "ext_account_456"
        },
        "contacts": [
          {
            "id": "contact123",
            "first_name": "John",
            "last_name": "Doe",
            "email": "[email protected]",
            "phone_number": "+1234567890",
            "ext_id": "ext_contact_789",
            "custom_fields": [
              {
                "key": "preferred_contact_method",
                "name": "Preferred Contact Method",
                "type": "text",
                "value": "email"
              }
            ]
          }
        ]
      }
    ]
  },
  "next_cursor": null
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

CONTACT_ID
string
required

The contact identifier, which can be either its UUID or its user-defined ext_id. When using the ext_id, the format should be alt:ext_id:<ext_id>.

Query Parameters

limit
integer
default:20

Maximum number of customer interactions to return in a single response. Defaults to 20. Must be between 1 and 100; values outside this range return a 400.

Required range: 1 <= x <= 100
cursor
string | null

Pagination cursor returned as next_cursor in a previous response. Omit on the first request.

Response

List of customer interactions for the contact's account

data
object
next_cursor
string | null

Cursor to pass as the cursor query parameter to fetch the next page. null when there are no more results.