curl -X POST https://api.magpipe.ai/functions/v1/list-voices \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch(
'https://api.magpipe.ai/functions/v1/list-voices',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
}
);
const { voices } = await response.json();
console.log('Available voices:', voices.length);
import requests
response = requests.post(
'https://api.magpipe.ai/functions/v1/list-voices',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={}
)
data = response.json()
for voice in data['voices']:
print(f"{voice['name']} ({voice['provider']})")
{
"voices": [
{
"id": "21m00Tcm4TlvDq8ikWAM",
"name": "Rachel",
"description": "Calm, American female",
"provider": "elevenlabs",
"is_custom": false
},
{
"id": "pNInz6obpgDQGcFmaJgB",
"name": "Adam",
"description": "Deep, American male",
"provider": "elevenlabs",
"is_custom": false
},
{
"id": "EXAVITQu4vr4xnSDxMaL",
"name": "Sarah",
"description": "Soft, American female",
"provider": "elevenlabs",
"is_custom": false
},
{
"id": "openai-alloy",
"name": "Alloy",
"description": "Neutral, professional",
"provider": "openai",
"is_custom": false
},
{
"id": "openai-nova",
"name": "Nova",
"description": "Bright, energetic",
"provider": "openai",
"is_custom": false
},
{
"id": "abc123xyz",
"name": "My Cloned Voice",
"description": "Custom cloned voice",
"provider": "elevenlabs",
"preview_url": "https://api.elevenlabs.io/v1/voices/abc123xyz/preview.mp3",
"is_custom": true
}
]
}
Voice
List Voices
List all available voices including cloned voices
POST
/
list-voices
curl -X POST https://api.magpipe.ai/functions/v1/list-voices \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch(
'https://api.magpipe.ai/functions/v1/list-voices',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
}
);
const { voices } = await response.json();
console.log('Available voices:', voices.length);
import requests
response = requests.post(
'https://api.magpipe.ai/functions/v1/list-voices',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={}
)
data = response.json()
for voice in data['voices']:
print(f"{voice['name']} ({voice['provider']})")
{
"voices": [
{
"id": "21m00Tcm4TlvDq8ikWAM",
"name": "Rachel",
"description": "Calm, American female",
"provider": "elevenlabs",
"is_custom": false
},
{
"id": "pNInz6obpgDQGcFmaJgB",
"name": "Adam",
"description": "Deep, American male",
"provider": "elevenlabs",
"is_custom": false
},
{
"id": "EXAVITQu4vr4xnSDxMaL",
"name": "Sarah",
"description": "Soft, American female",
"provider": "elevenlabs",
"is_custom": false
},
{
"id": "openai-alloy",
"name": "Alloy",
"description": "Neutral, professional",
"provider": "openai",
"is_custom": false
},
{
"id": "openai-nova",
"name": "Nova",
"description": "Bright, energetic",
"provider": "openai",
"is_custom": false
},
{
"id": "abc123xyz",
"name": "My Cloned Voice",
"description": "Custom cloned voice",
"provider": "elevenlabs",
"preview_url": "https://api.elevenlabs.io/v1/voices/abc123xyz/preview.mp3",
"is_custom": true
}
]
}
Retrieve all voices available for your AI agents, including built-in voices and your custom cloned voices.
Request Body
string
Filter by provider:
openai or elevenlabs.boolean
default:true
Whether to include built-in voices in the response.
Response
array
Array of voice objects.
Voice Object
string
Voice identifier to use in agent configuration.
string
Voice display name.
string
Voice provider:
openai or elevenlabs.string
URL to preview the voice (if available).
boolean
Whether this is a custom cloned voice.
curl -X POST https://api.magpipe.ai/functions/v1/list-voices \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch(
'https://api.magpipe.ai/functions/v1/list-voices',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
}
);
const { voices } = await response.json();
console.log('Available voices:', voices.length);
import requests
response = requests.post(
'https://api.magpipe.ai/functions/v1/list-voices',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={}
)
data = response.json()
for voice in data['voices']:
print(f"{voice['name']} ({voice['provider']})")
{
"voices": [
{
"id": "21m00Tcm4TlvDq8ikWAM",
"name": "Rachel",
"description": "Calm, American female",
"provider": "elevenlabs",
"is_custom": false
},
{
"id": "pNInz6obpgDQGcFmaJgB",
"name": "Adam",
"description": "Deep, American male",
"provider": "elevenlabs",
"is_custom": false
},
{
"id": "EXAVITQu4vr4xnSDxMaL",
"name": "Sarah",
"description": "Soft, American female",
"provider": "elevenlabs",
"is_custom": false
},
{
"id": "openai-alloy",
"name": "Alloy",
"description": "Neutral, professional",
"provider": "openai",
"is_custom": false
},
{
"id": "openai-nova",
"name": "Nova",
"description": "Bright, energetic",
"provider": "openai",
"is_custom": false
},
{
"id": "abc123xyz",
"name": "My Cloned Voice",
"description": "Custom cloned voice",
"provider": "elevenlabs",
"preview_url": "https://api.elevenlabs.io/v1/voices/abc123xyz/preview.mp3",
"is_custom": true
}
]
}
⌘I