Messages

List activities

Returns a paginated list of activities for the specified message.

get/v1/messages/{message_id}/activities

Path parameters

message_idstring required

The ID of the message to fetch activities for.

Query parameters

trigger_datastring

The trigger data to filter activities by.

afterstring

The cursor to fetch entries after.

beforestring

The cursor to fetch entries before.

page_sizeinteger

The number of items per page (defaults to 50).

Response

OK

Example response

{
  "items": [
    {
      "__typename": "Activity",
      "actor": null,
      "data": {
        "foo": "bar"
      },
      "id": "2FVHPWxRqNuXQ9krvNP5A6Z4qXe",
      "inserted_at": "2024-01-01T00:00:00Z",
      "recipient": {
        "__typename": "User",
        "avatar": null,
        "created_at": null,
        "email": "jane@ingen.net",
        "id": "jane",
        "name": "Jane Doe",
        "phone_number": null,
        "timezone": null,
        "updated_at": "2024-05-22T12:00:00Z"
      },
      "updated_at": "2024-01-01T00:00:00Z"
    }
  ],
  "page_info": {
    "__typename": "PageInfo",
    "after": null,
    "before": null,
    "page_size": 25
  }
}

Changes

Changed in 2 of the 30 revisions of this API.4

    • added Recipient subschema #2 to the items/items/actor response property anyOf list for the response status 200

      response-property-any-of-added

    • removed Recipient subschema #2 from the items/items/actor response property oneOf list for the response status 200

      response-property-one-of-removed

    • added the optional property items/items/actor/oneOf[subschema #1: Recipient]/oneOf[subschema #2: Object]/properties to the response with the 200 status

      response-optional-property-added

    • added the optional property items/items/recipient/oneOf[subschema #2: Object]/properties to the response with the 200 status

      response-optional-property-added