Skip to content
noBSredir

Audit log

Every significant action in a workspace is logged. The audit log is append-only and cannot be modified.

GET /workspaces/:wsId/audit-log

Paginated audit log with optional filters.

Role: admin+

Terminal window
curl "https://nobsredir.com/api/workspaces/ws_abc123/audit-log?page=1&limit=50&action=link.create" \
-H "X-API-Key: nobs_your_key"

Query parameters:

ParamTypeDefaultDescription
pageint1Page number
limitint20Items per page
actionstring-Filter by action type
user_idstring-Filter by user who performed the action
fromstring-ISO 8601 start date
tostring-ISO 8601 end date

Response 200:

{
"entries": [
{
"id": 1042,
"workspace_id": "ws_abc123",
"user_id": "usr_abc123",
"action": "link.create",
"details": "{\"linkId\":\"lnk_xyz789\",\"domain\":\"fnl.sh\",\"slug\":\"demo\",\"target\":\"https://example.com\"}",
"created_at": "2025-01-20T14:30:00.000Z"
}
],
"total": 1042,
"page": 1,
"limit": 50
}

The details field is a JSON string with action-specific data.

Tracked actions

ActionDescription
link.createLink created
link.updateLink fields updated
link.deleteLink deleted
link.bulk_deleteMultiple links deleted
member.update_roleMember role changed
member.removeMember removed from workspace
invite.createInvite sent
invite.acceptInvite accepted
domain.addCustom domain added
domain.verifyDomain verification attempted
domain.removeCustom domain removed
api_key.createAPI key created
api_key.deleteAPI key deleted
workspace.updateWorkspace settings changed
workspace.deleteWorkspace deleted
client.createClient workspace created