Skip to navigation

RefreshElevenLabsLibrary

View as Markdown

Re-sync the imported library with the workspace’s ElevenLabs account: voices new in ElevenLabs are added, changed ones updated (including a new availableUntil date), removed ones dropped (an assigned one is kept and marked unavailable) and returned ones restored. No body. Answers the connection, in the shape GetElevenLabsConnection returns, and what the sync did.

Errors

  • 403 NO_ACTIVE_SUBSCRIPTION, VOICE_NOTES_NOT_ENABLED or ELEVENLABS_NOT_ENABLED.
  • 409 ELEVENLABS_NOT_CONNECTED.
  • 424 ELEVENLABS_KEY_INVALID, ELEVENLABS_MISSING_PERMISSION or ELEVENLABS_ACCESS_BLOCKED: the ElevenLabs account refused the request; fix the key in the app.
  • 429 ELEVENLABS_VALIDATION_RATE_LIMITED: too many ElevenLabs key operations for the workspace in an hour. This is not the API rate limit.
  • 502 ELEVENLABS_UNAVAILABLE: ElevenLabs is not reachable right now; nothing was changed. Retry later.

Headers

X-API-KEYstringOptional

API key header using this scheme. Example: “X-API-KEY: {API_KEY}”

Response

OK
connectionmap from strings to any
The connection after the sync, in the shape GetElevenLabsConnection returns.
syncobject

Errors

403
Refresh Eleven Labs Library Voice Request Forbidden Error
409
Refresh Eleven Labs Library Voice Request Conflict Error
424
Refresh Eleven Labs Library Voice Request Failed Dependency Error
429
Refresh Eleven Labs Library Voice Request Too Many Requests Error
502
Refresh Eleven Labs Library Voice Request Bad Gateway Error