younifyd
Menu

Export Activity Log Events Csv

Export activity log events as CSV

GET/v2021-02-01/activity/export/csv

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Export Activity Log Events Csv action (under Activity Log).
  3. Fill in the fields below, then reference the result from later steps as {{exportActivityLogEventsCsv.response.data}}.

Request

Query parameters

actorIdarray<string>

Actor user ID. Use the literal value `null` to match events whose actor ID is null.

userIdarray<string>

Target user ID. Repeat the query parameter to match any of several users.

projectIdarray<string>

Target project ID. Repeat the query parameter to match any of several projects. Filtering by a project the token can't access returns `401`.

organizationIdarray<string>

Target organization ID. Repeat the query parameter to match any of several organizations. On its own, `organizationId` matches only organization-level events, not activity in the organization's projects. To get project activity, filter by `projectId`, or omit both `organizationId` and `projectId` to get all activity the token can access. Combined with `projectId`, events must match both filters. Filtering by an organization the token can't access returns `401`.

actionarray<string>

Activity action. Repeat the query parameter to match any of several actions.

limitinteger (uint64)

Maximum number of CSV events to export. If omitted, defaults to `10000`. Values above `50000` are capped to `50000`. Explicit values less than or equal to `10` use the CSV default of `10000`.

Default 10000

offsetinteger (uint64)

Number of matching events to skip.

startTimestring (date-time)

Include events with `timestamp` greater than or equal to this RFC3339 timestamp.

endTimestring (date-time)

Include events with `timestamp` less than or equal to this RFC3339 timestamp.

Response

Returns 200 with a string. Read it in later steps with {{exportActivityLogEventsCsv.response.data.<field>}}.

Need more? See the Sanity guide for connection setup and behaviour shared by every action.