Skip to main content
GET
/
api
/
audit-logs
/
{workspace_id}
List audit logs
curl --request GET \
  --url https://api.langdock.com/api/audit-logs/{workspace_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "created_at": "2026-02-09T14:30:00Z",
      "actor_id": "u1234567-89ab-cdef-0123-456789abcdef",
      "actor_type": "USER",
      "actor_name": "jane.doe@example.com",
      "action": "user.updated",
      "entity_type": "User",
      "entity_id": "u7654321-89ab-cdef-0123-456789abcdef",
      "ip_address": "203.0.113.42",
      "user_agent": "Mozilla/5.0",
      "changes": {
        "before": {
          "role": "MEMBER"
        },
        "after": {
          "role": "ADMIN"
        }
      },
      "snapshot": null
    }
  ],
  "next_cursor": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
⚠️ Using our API via a dedicated deployment? Just replace api.langdock.com with your deployment’s base URL: <deployment-url>/api/public
Returns audit log entries for a workspace with cursor-based pagination. Each entry records an action performed in the workspace, including who performed it, what changed, and when. Use the from and to query parameters to define a date window, and the cursor parameter to page through results.

Rate Limits

The rate limit for the Audit Logs endpoint is 500 RPM (requests per minute). Rate limits are defined at the workspace level. If you exceed your rate limit, you will receive a 429 Too Many Requests response. Please note that the rate limits are subject to change, refer to this documentation for the most up-to-date information. In case you need a higher rate limit, please contact us at support@langdock.com.
Additional Information: For details on prerequisites, pagination, and filtering, refer to the Audit Logs API introduction.
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Path Parameters

workspace_id
string<uuid>
required

Workspace UUID. Must match the workspace associated with the API key; requests with a mismatched workspace_id are rejected with 403.

Query Parameters

cursor
string<uuid>

Cursor for pagination (ID of last item from previous page)

limit
integer
default:50

Maximum number of items to return (default 50, max 50)

Required range: 1 <= x <= 50
from
string<date-time>

Start of date range filter (ISO 8601)

to
string<date-time>

End of date range filter (ISO 8601)

entity_type
string

Filter by entity type (e.g. "User", "Workspace")

actor_id
string<uuid>

Filter by actor UUID

Response

Paginated list of audit log entries

data
object[]
next_cursor
string<uuid> | null

Cursor for the next page, null if no more results