/v1/workspaces/{workspace_slug}/audit-logsAuthList workspace audit log entries, newest first. Filter by `?action=`, `?actor_id=`, and/or the `?since=` / `?until=` date range. 20/page (max 100), cursor-paginated.
Path parameters
workspace_slug*stringSlug of the workspace. Platform routes name the workspace by slug, positionally in the SDK (`platform.workspaces.retrieve("acme")`); the product APIs bind `workspace_id` instead.
Query parameters
limitintegerPage size. Defaults to 20, clamped to 100.
cursorstringOpaque `next_cursor` from the previous page.
actionstringExact-match filter on the action identifier (e.g. `workspace.member.removed`). Mail, Waitlist, Social and Auth actions are reported under the product name (`mail.domain.verified`); the older internal spellings (`envoi.*`, `rally.*`, `agora.*`, `heimdall.*`) are still accepted here and match the same rows.
actor_idstring · uuidExact-match filter on the acting account UUID. System rows have a null actor and are excluded by this filter.
sincestring · date-timeInclusive lower bound on `created_at`. ISO-8601 date (`2026-05-01`, midnight UTC) or date-time (`2026-05-01T09:00:00Z`). Composes with `action` / `actor_id` / `until` and with the cursor.
untilstring · date-timeInclusive upper bound on `created_at`. Same formats as `since`. Note a bare date resolves to midnight UTC, so `until=2026-05-01` excludes that day’s later entries.
Response · 200 Page of audit entries with `next_cursor` and `has_more`.
data*arrayOne page of audit log entries, newest first.
pagination*objectnext_cursor*stringPass as `cursor` to get the next page; `null` on the last page.
Example: null
has_more*booleanWhether another page follows this one.
Example: false
Example
Request
GET https://api.platform-auth.productcraft.co/v1/workspaces/{workspace_slug}/audit-logs
Authorization: Bearer YOUR_TOKENResponse
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"actor_id": "string",
"actor_type": "platform_user",
"action": "workspace.member.removed",
"resource": "workspace_membership",
"resource_id": "00000000-0000-0000-0000-000000000000",
"ip": "string",
"metadata": {},
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"pagination": {
"next_cursor": null,
"has_more": false
}
}