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

/v1/workspace/auth-connections

ElevenLabs API

Create Workspace Auth Connection

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
→ 223 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 POST 'https://api.elevenlabs.io/v1/workspace/auth-connections' \  -H "xi-api-key: $ELEVENLABS_API_KEY" \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "auth_type": "oauth2_client_credentials",  "provider": "string",  "client_id": "string",  "token_url": "string",  "scopes": [],  "extra_params": {},  "basic_auth_in_header": false,  "client_secret": "string",  "custom_headers": {}}'
Get a free ElevenLabs API key → sponsored

Parameters

Name In Type Required Description
name body string Yes Request body field name.
auth_type body string No Request body field auth_type.
provider body string Yes Request body field provider.
client_id body string Yes Request body field client_id.
token_url body string Yes Request body field token_url.
scopes body string[] No Request body field scopes.
extra_params body object No Request body field extra_params.
basic_auth_in_header body boolean No If True, send client credentials in Authorization header as Basic Auth instead of request body
client_secret body string Yes Request body field client_secret.
custom_headers body object No Request body field custom_headers.

Response 200 OK

{
  "name": "string",
  "auth_type": "oauth2_client_credentials",
  "provider": "string",
  "client_id": "string",
  "token_url": "string",
  "scopes": [],
  "extra_params": {},
  "basic_auth_in_header": false,
  "id": "string",
  "used_by": {
    "tools": [],
    "mcp_servers": [],
    "integration_connections": []
  },
  "status": "active",
  "status_detail": "string",
  "status_updated_at": "string",
  "custom_headers": {}
}