---
title: "List activities"
method: GET
path: "/v1/messages/{message_id}/activities"
tags: ["Messages"]
---

# List activities

`GET /v1/messages/{message_id}/activities`

Returns a paginated list of activities for the specified message.

## Path parameters

- `message_id` string, required

## Query parameters

- `trigger_data` string
- `after` string
- `before` string
- `page_size` integer

## Response `200`

OK

- ListActivitiesResponse — Returns a paginated list of `activities` associated with a given message. For messages produced after a [batch step](/designing-workflows/batch-function), this will contain one or more activities. Non-batched messages will always return a single activity.
  - `items` Activity[], required — A list of activities.
    - `__typename` string — The typename of the schema.
    - `actor` union — The actor who performed the activity.
      - union — A recipient of a notification, which is either a user or an object.
        - object — A [User](/concepts/users) represents an individual in your system who can receive notifications through Knock. Users are the most common recipients of notifications and are always referenced by your internal identifier.
          - `__typename` string, required — The typename of the schema.
          - `avatar` string, nullable — A URL for the avatar of the user.
          - `created_at` string, date-time, nullable — The creation date of the user from your system.
          - `email` string, nullable — The primary email address for the user.
          - `id` string, required — The unique identifier of the user.
          - `name` string, nullable — Display name of the user.
          - `phone_number` string, nullable — The [E.164](https://www.twilio.com/docs/glossary/what-e164) phone number of the user (required for SMS channels).
          - `timezone` string, nullable — The timezone of the user. Must be a valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Used for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
          - `updated_at` string, date-time, required — The timestamp when the resource was last updated.
        - object — A custom [Object](/concepts/objects) entity which belongs to a collection.
          - `__typename` string, required — The typename of the schema.
          - `collection` string, required — The collection this object belongs to.
          - `created_at` string, date-time, nullable — Timestamp when the resource was created.
          - `id` string, required — Unique identifier for the object.
          - `properties` object — The custom properties associated with the object.
          - `updated_at` string, date-time, required — The timestamp when the resource was last updated.
      - object, nullable
    - `data` object, nullable — The workflow trigger `data` payload associated with the activity.
    - `id` string — Unique identifier for the activity.
    - `inserted_at` string, date-time — Timestamp when the activity was created.
    - `recipient` union — A recipient of a notification, which is either a user or an object.
      - object — A [User](/concepts/users) represents an individual in your system who can receive notifications through Knock. Users are the most common recipients of notifications and are always referenced by your internal identifier.
        - `__typename` string, required — The typename of the schema.
        - `avatar` string, nullable — A URL for the avatar of the user.
        - `created_at` string, date-time, nullable — The creation date of the user from your system.
        - `email` string, nullable — The primary email address for the user.
        - `id` string, required — The unique identifier of the user.
        - `name` string, nullable — Display name of the user.
        - `phone_number` string, nullable — The [E.164](https://www.twilio.com/docs/glossary/what-e164) phone number of the user (required for SMS channels).
        - `timezone` string, nullable — The timezone of the user. Must be a valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Used for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
        - `updated_at` string, date-time, required — The timestamp when the resource was last updated.
      - object — A custom [Object](/concepts/objects) entity which belongs to a collection.
        - `__typename` string, required — The typename of the schema.
        - `collection` string, required — The collection this object belongs to.
        - `created_at` string, date-time, nullable — Timestamp when the resource was created.
        - `id` string, required — Unique identifier for the object.
        - `properties` object — The custom properties associated with the object.
        - `updated_at` string, date-time, required — The timestamp when the resource was last updated.
    - `updated_at` string, date-time — Timestamp when the activity was last updated.
  - `page_info` PageInfo, required — Pagination information for a list of resources.
    - `__typename` string, required — The typename of the schema.
    - `after` string, nullable — The cursor to fetch entries after.
    - `before` string, nullable — The cursor to fetch entries before.
    - `page_size` integer, required — The number of items per page (defaults to 50).

---

[API](https://skmtc.net/knocklabs/apis/knock-api.md) · [All operations](https://skmtc.net/knocklabs/apis/knock-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/knocklabs/knock-api/revisions/4b8499dddbc5/schema)
