v4

OpenAPI 3.1.02026-07-313621,3961.8 MB
voices

Add Shared Voice

Add a shared voice to your collection of voices.

post/v1/voices/add/{public_user_id}/{voice_id}

Path parameters

public_user_idstring required

Public user ID used to publicly identify ElevenLabs users.

Example:63e06b7e7cafdc46be4d2e0b3f045940231ae058d508589653d74d1265a574ca

Public user ID used to publicly identify ElevenLabs users.

voice_idstring required

Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.

Example:21m00Tcm4TlvDq8ikWAM

Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Request body

new_namestring required

The name that identifies this voice. This will be displayed in the dropdown of the website.

bookmarkedboolean

Example request

{
  "new_name": "John Smith"
}

Response

Successful Response

voice_idstring required

The ID of the voice.

Example response

{
  "voice_id": "b38kUX8pkfYO2kHyqfFy"
}