apicheats.dev elevenlabs/llms.txt Raw .md
GET

/v1/workspace/audit-logs

ElevenLabs API

Get Workspace Audit Logs

Base URL
https://api.elevenlabs.io
Auth
xi-api-key: <ELEVENLABS_API_KEY>
Last verified
2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 206 tokens · Vary: Accept

Critical gotchas

Authentication uses the non-standard xi-api-key header, not Authorization: Bearer. Sending a Bearer token returns HTTP 401.

Text-to-speech responses are raw binary audio, not JSON. Write the body to a file (--output speech.mp3) rather than parsing it.

cURL

curl -X GET 'https://api.elevenlabs.io/v1/workspace/audit-logs?limit=50&cursor=example-cursor&time_from_unix_ms=10&time_to_unix_ms=10&actor_uid=example-actor-uid&class_name=example-class-name&activity_name=example-activity-name' \  -H "xi-api-key: $ELEVENLABS_API_KEY"
Get a free ElevenLabs API key → sponsored

Parameters

Name In Type Required Description
limit query integer No Maximum number of entries per page
cursor query string No Cursor for the next page (from previous response)
time_from_unix_ms query integer No Only include entries at or after this time (ms since epoch)
time_to_unix_ms query integer No Only include entries at or before this time (ms since epoch)
actor_uid query string No Filter by actor user ID
class_name query string No Filter by OCSF event class name (e.g. Account Change)
activity_name query string No Filter by audit activity name (e.g. Subscription Creation)

Response 200 OK

{
  "entries": [
    {
      "metadata": {},
      "time": 0,
      "activity_id": 0,
      "activity_name": "string",
      "category_name": "Identity & Access Management",
      "category_uid": 3,
      "class_name": "",
      "class_uid": 0,
      "severity_id": 0,
      "status_id": 0,
      "actor": {
        "user": {
          "name": "string",
          "uid": "string",
          "type_id": 0,
          "type": "string",
          "email_addr": "string",
          "full_name": "string",
          "domain": "string"
        },
        "app_name": "string",
        "app_uid": "string",
        "session": {}
      },
      "device": {
        "ip": "string",
        "hostname": "string",
        "type_id": 99
      },
      "http_request": {
        "http_method": "string",
        "url": {
          "url_string": "string",
          "scheme": "string",
          "hostname": "string",
          "port": 0,
          "path": "string",
          "query_string": "string"
        },
        "user_agent": "string",
        "x_forwarded_for": [
          "string"
        ]
      },
      "message": "string",
      "unmapped": {},
      "id": "string",
      "time_dt": "string",
      "type_uid": 0,
      "type_name": "string"
    }
  ],
  "has_more": true,
  "next_cursor": "string"
}