ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Create a new custom Elevenlabs voice.
This endpoint allows users to upload audio files to create a custom voice that can be used with the Elevenlabs text-to-speech service.
Note: The audio files' total length should be longer than 1 minute and the total size should be smaller than 11 MiB.
Args: request: The HTTP request containing the voice name and audio files. org: The organization/tenant identifier. user_id: The ID of the user creating the voice.
Returns: Response: The created voice configuration.
Raises: BadRequest: If the provided data is invalid, credentials are not found, or there's an API error.
- multipart/form-data
- application/x-www-form-urlencoded
- application/json
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/elevenlabs-voice/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/elevenlabs-voice/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/elevenlabs-voice/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: multipart/form-data' \
-F name=string \
-F files=http://example.com
{ "name": "my_voice1", "owner_student": "student0", "language": "en", "is_premade": false, "sample_audio_url": "https://example.com/audio/sample1.mp3" }
Request
Delete an existing Elevenlabs voice configuration.
This endpoint removes a custom voice configuration both from the local database and from the Elevenlabs remote API if applicable.
Args: request: The HTTP request. org: The organization/tenant identifier. user_id: The ID of the user who owns the voice. voice_name: The name of the voice to delete.
Returns: Response: A confirmation of the deletion.
Raises: BadRequest: If the Elevenlabs credentials are not found or there's an API error.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/elevenlabs-voice/{voice_name}/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/elevenlabs-voice/{voice_name}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/elevenlabs-voice/{voice_name}/' \
-H 'Authorization: YOUR_API_KEY_HERE'
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/export-chathistory/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/users/{user_id}/export-chathistory/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/users/{user_id}/export-chathistory/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "task_id": "307be194-2351-44ff-8d7b-24660fd9ec34" }