openapi: 3.0.3 info: title: Retell SDK Add Community Voice API version: 3.0.0 contact: name: Retell Support url: https://www.retellai.com/ email: support@retellai.com license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html servers: - url: https://api.retellai.com description: The production server. security: - api_key: [] tags: - name: Add Community Voice paths: /add-community-voice: post: description: Add a community voice to the voice library operationId: addCommunityVoice requestBody: required: true content: application/json: schema: type: object required: - provider_voice_id - voice_name properties: voice_provider: type: string enum: - elevenlabs - cartesia - minimax - fish_audio description: Voice provider to add the voice from. provider_voice_id: type: string description: Voice id assigned by the provider. voice_name: type: string minLength: 1 maxLength: 200 description: A custom name for the voice. public_user_id: type: string description: Required for ElevenLabs only. User id of the voice owner. responses: '200': description: Community voice added successfully content: application/json: schema: $ref: '#/components/schemas/VoiceResponse' '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/InternalServerError' tags: - Add Community Voice components: responses: TooManyRequests: description: Too Many Requests content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: Account rate limited, please throttle your requests. Unauthorized: description: Unauthorized content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: API key is missing or invalid. BadRequest: description: Bad Request content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: Invalid request format, please check API reference. InternalServerError: description: Internal Server Error content: application/json: schema: type: object properties: status: type: string enum: - error message: type: string example: An unexpected server error occurred. schemas: VoiceResponse: type: object required: - voice_id - voice_name - provider - gender properties: voice_id: type: string example: retell-Cimo description: Unique id for the voice. voice_name: type: string example: Adrian description: Name of the voice. provider: type: string enum: - elevenlabs - openai - deepgram - cartesia - minimax - fish_audio - platform example: elevenlabs description: Indicates the provider of voice. accent: type: string example: American description: Accent annotation of the voice. gender: type: string enum: - male - female example: male description: Gender of voice. age: type: string example: Young description: Age annotation of the voice. preview_audio_url: type: string example: https://retell-utils-public.s3.us-west-2.amazonaws.com/adrian.mp3 description: URL to the preview audio of the voice. securitySchemes: api_key: type: http scheme: bearer bearerFormat: string description: Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"