absent-sapphire
absent-sapphire3mo ago

Eleven labs API error in VAPI

Hi, i created a voice clone in Vapi. I created an API and dopped it directly to Vapi Integration section. An error came up to say 'The provided credentials are not valid'. I checked the funtionality of the API with 11labs support via https://reqbin.com/curl and they said it was fine. They said the issue is with Vapi. Please can someone help me. A valid API key is being rejected as invalid. I have refreshed the Vapi dashboard, as well as logged in and out. I have a loom to demonstrate the issue, but it contains a confidential API - is it ok https://www.loom.com/share/bc47c34dc4c9464a91c939894c3c3319?sid=bc25f144-4bd1-44a3-9044-d168fe197669
ReqBin
Run Curl Commands Online
Run, save, and collaborate Curl commands directly from your browser. Test APIs, websites, and web services and validate server responses without installing additional software or plugins. Learn Curl with an extensive database of handpicked Curl examples. See why 850,000 users use ReqBin online Curl Client for testing their APIs online!
Loom
Creating an API Key for Voice Generation Access
In this video, I walk you through the process of creating an API key, which I've named Tom4. I ensure that it has access to voice generation and the necessary permissions for voices, including read and write access. After setting it up, I demonstrate how to copy the key to the clipboard and save it for future use. Please make sure to follow thes...
4 Replies
Sahil
Sahil3mo ago
Hey, can you share the org_id? You can find it here. This will help me get more details about it.
VAPI Dashboard - Voice AI Management Platform
Build and manage voice AI agents that conduct human-like conversations. Access real-time analytics, configure assistants, and monitor your AI voice applications.
absent-sapphire
absent-sapphireOP3mo ago
ccbd1b5d-edd2-4445-a93a-f3977b430a61 this is my org ID help me please The advice you gave before didn't work Guys, seriously please help me I am going to report your customer service to the podcast How To Build an AI - who's host i am friends with. ? ccbd1b5d-edd2-4445-a93a-f3977b430a61
Sahil
Sahil3mo ago
Hey @twin317 looking into it.
genetic-orange
genetic-orange3mo ago
Hi @elsa231 , I’ve reviewed your Loom video and our logs. There haven’t been any changes on our side the error is coming from the 11labs API. Your API key itself is valid, but the issue is that its scopes are too restrictive. Rather than picking and choosing individual scopes, please: 1. Create a new API key with all available scopes enabled. 2. Include the “text-to-speech voices” scope (and any others required by 11labs). 3. Retry your request using this new key. That should resolve the authorization errors. Let me know how it goes! @elsa231 Also your geeting another issue which is documented here.
:yellow_circle: 15:18:09:789 Couldn't Insert Voice Library. Error: {
"stack": "PostgresError: duplicate key value violates unique constraint
"severity_local": "ERROR",
"severity": "ERROR",
"code": "23505",
"detail": "Key (provider, provider_id, org_id)=(11labs,xx, xx) already exists.",
"schema_name": "public",
"table_name": "voice_library",
"constraint_name": "voice_library_provider_provider_id_org_id_idx",
"file": "nbtinsert.c",
"line": "666",
"routine": "_bt_check_unique",
"query": "\n INSERT INTO voice_library \t\n (\"provider\",\"slug\",\"provider_id\",\"name\",\"description\",\"gender\",\"accent\",\"preview_url\",\"is_deleted\",\"credential_id\",\"org_id\")values($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)\t\n RETURNING *\t\n ",
"message": "duplicate key value violates unique constraint \"voice_library_provider_provider_id_org_id_idx\""
}
:yellow_circle: 15:18:09:789 Couldn't Insert Voice Library. Error: {
"stack": "PostgresError: duplicate key value violates unique constraint
"severity_local": "ERROR",
"severity": "ERROR",
"code": "23505",
"detail": "Key (provider, provider_id, org_id)=(11labs,xx, xx) already exists.",
"schema_name": "public",
"table_name": "voice_library",
"constraint_name": "voice_library_provider_provider_id_org_id_idx",
"file": "nbtinsert.c",
"line": "666",
"routine": "_bt_check_unique",
"query": "\n INSERT INTO voice_library \t\n (\"provider\",\"slug\",\"provider_id\",\"name\",\"description\",\"gender\",\"accent\",\"preview_url\",\"is_deleted\",\"credential_id\",\"org_id\")values($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)\t\n RETURNING *\t\n ",
"message": "duplicate key value violates unique constraint \"voice_library_provider_provider_id_org_id_idx\""
}

Did you find this page helpful?