Skip to main content
GET
/
api
/
workspace
/
{workspaceId}
/
audit-logs
List audit logs
curl --request GET \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/audit-logs \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "log_1a2b3c",
      "workspace_id": "ws_1a2b3c4d",
      "actor_id": "user_xyz789",
      "action": "member.invited",
      "resource_type": "member",
      "resource_id": "member_456def",
      "changes": {
        "email": "[email protected]",
        "role": "editor"
      },
      "ip_address": "203.0.113.42",
      "user_agent": "Mozilla/5.0...",
      "created_at": "2024-02-15T10:30:00Z"
    }
  ],
  "pagination": {
    "limit": 50,
    "cursor": "log_1a2b3d",
    "has_more": true
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain a token via the authentication endpoint and include it in the Authorization header: Authorization: Bearer <token>

Path Parameters

workspaceId
string
required

The workspace ID

Query Parameters

limit
integer
default:50
Required range: 1 <= x <= 100
cursor
string

Pagination cursor from previous response

action
string

Filter by action type

actor_id
string

Filter by user ID

Response

Audit logs retrieved successfully

data
object[]
pagination
object