List voices (library or your clones)
GET
https://server.heyrik.com/api/v1/voicesHeaders
AuthorizationstringRequiredUse Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.
Parameters 5
Fields documented for this operation. See the request example for placement and structure.
typestring"all" (library voices, default) or "cloned" (only voices YOU cloned).
languagestringFilter, e.g. en-IN, hi-IN.
genderstringmale | female.
pagenumberPage number; walk with has_more.
limitnumberPage size (default 24, max 100).
Response
Explore the example values. This is not a complete response schema.
dataobjectExplore 4 properties
countnumberExample 42
pagenumberExample 1
has_morebooleanExample true
voicesarrayExplore 1 example item
[0]objectExplore 5 properties
idstringExample "vx_9f2a1c30"
namestringExample "Meera"
languagestringExample "en-IN"
genderstringExample "female"
clonedbooleanExample false
GET/voices
cURL
# Library voices
curl "https://server.heyrik.com/api/v1/voices?language=en-IN" \
-H "Authorization: Bearer $HEYRIK_API_KEY"
# Only your cloned voices
curl "https://server.heyrik.com/api/v1/voices?type=cloned" \
-H "Authorization: Bearer $HEYRIK_API_KEY"Response example
JSON
{
"data": {
"count": 42,
"page": 1,
"has_more": true,
"voices": [
{
"id": "vx_9f2a1c30",
"name": "Meera",
"language": "en-IN",
"gender": "female",
"cloned": false
}
]
}
}Illustrative examples · No live request is sent
