Customers

Lookup a customer's activities

Changed on

Return a list of activities performed by, or for, a customer. Activities are things like attribute changes and message sends.

This endpoint is guaranteed to return activity history within the past 30 days. It might return data older than 30 days in some circumstances, but activites older than 30 days are not guaranteed.

get/v1/customers/{customer_id}/activities

Request

  • Base URL
    https://api.customer.io
  • URL
    https://api.customer.io/v1/customers/{customer_id}/activities
  • Auth
    HTTP bearer

Response

Returns an array of activity objects. Each object represents an activity that the customer performed, or that you performed on behalf of the customer.

Example response

{
  "activities": [
    {
      "customer_id": "42",
      "customer_identifiers": {
        "email": "test@example.com",
        "cio_id": "a3000001"
      },
      "data": {
        "delivery_id": "ZAIAAVTJVG0QcCok0-0ZKj6yiQ==",
        "opened": null,
        "delivered": null
      },
      "delivery_id": "ZAIAAVTJVG0QcCok0-0ZKj6yiQ==",
      "delivery_type": "email",
      "id": "01AK4N8V8G8KVA4HN8Y50CCZ59",
      "timestamp": 1397566226,
      "type": "sent_email"
    }
  ]
}

Changes

    • breaking

      added subschema #3: Consent record to the // response property oneOf list for the response status

    • warning

      added the new consent enum value to the // response property for the response status

    • info

      added the media type application/json for the response with the status