- Feed workspace activity data into your SIEM or other monitoring tools
- Track changes across your organization, from workspace settings and model configuration to workflows, skill and action access, role changes, failed login attempts, and more
- Build custom dashboards and reports for workspace activity
Prerequisites
To use the Audit Logs API, you need:- Workspace Admin Permission: Only workspace administrators can create API keys with audit log permissions.
- API Key with
AUDIT_LOG_APIScope: Your API key must have the dedicated audit log scope enabled. Create it in Settings > API in your workspace settings.
Retention
Audit log entries are retained for 90 days. Make sure to export or forward any data you need before it expires.Available Endpoint
Authentication
All API requests require Bearer token authentication:The Audit Log Entry
Every audit log entry describes an actor taking an action on an entity. Here’s what each entry contains:Pagination
The API uses cursor-based pagination. Each response includes anext_cursor field — pass it as the cursor query parameter in your next request to get the following page. When next_cursor is null, you’ve reached the end.
Filtering
You can narrow results using query parameters:Error Handling
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.