younifyd
Menu

Get Activity Log Events

Get activity log events

GET/v2021-02-01/activity

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Get Activity Log Events action (under Activity Log).
  3. Fill in the fields below, then reference the result from later steps as {{getActivityLogEvents.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 JSON events to return. Values above `100` are capped to `100`.

Default 10

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 array<object>. Read it in later steps with {{getActivityLogEvents.response.data.<field>}}.

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