curl -X PATCH https://api.classet.ai/v2/agent-settings -H "X-API-KEY: $CLASSET_API_KEY" -H "Content-Type: application/json" -d '{"agent_name":"Sarah","voice_id":"Olivia","voice_speed":1.05,"pronunciations":[{"word":"Nguyen Mechanical","phoneme":"wɪn məˈkænɪkəl"}]}'
{
"data": {
"agent_name": "Sarah",
"voice_id": "Olivia",
"voice_model": "inworld/inworld-tts-2-flash",
"voice_speed": 1.05,
"pronunciations": [
{ "word": "Nguyen Mechanical", "phoneme": "wɪn məˈkænɪkəl" }
],
"available_voices": [
{ "id": "Ashley", "name": "Ashley", "description": "Warm, natural American female", "language": "en-US" },
{ "id": "Olivia", "name": "Olivia", "description": "Upbeat, friendly British female", "language": "en-GB" },
{ "id": "Diego", "name": "Diego", "description": "Soothing, gentle Mexican male", "language": "es-MX" }
]
}
}
Agent Settings
Update Agent Settings
Change your AI recruiter’s name, voice, speaking rate or pronunciations. Only the fields you send change, and they apply to the next call. Requires an API key with the write scope.
PATCH
/
v2
/
agent-settings
curl -X PATCH https://api.classet.ai/v2/agent-settings -H "X-API-KEY: $CLASSET_API_KEY" -H "Content-Type: application/json" -d '{"agent_name":"Sarah","voice_id":"Olivia","voice_speed":1.05,"pronunciations":[{"word":"Nguyen Mechanical","phoneme":"wɪn məˈkænɪkəl"}]}'
{
"data": {
"agent_name": "Sarah",
"voice_id": "Olivia",
"voice_model": "inworld/inworld-tts-2-flash",
"voice_speed": 1.05,
"pronunciations": [
{ "word": "Nguyen Mechanical", "phoneme": "wɪn məˈkænɪkəl" }
],
"available_voices": [
{ "id": "Ashley", "name": "Ashley", "description": "Warm, natural American female", "language": "en-US" },
{ "id": "Olivia", "name": "Olivia", "description": "Upbeat, friendly British female", "language": "en-GB" },
{ "id": "Diego", "name": "Diego", "description": "Soothing, gentle Mexican male", "language": "es-MX" }
]
}
}
Change how your AI recruiter sounds. Send only the fields you want to change; they apply to the next call, and calls in progress are not affected.
Your API key needs the
A request with any other field returns
write scope and must cover the whole organization. A key without the scope, or one limited to some branches, gets 403.
| Field | What you can set |
|---|---|
agent_name | The name the recruiter uses for itself. 1 to 40 characters |
voice_id | An id from available_voices in Get Agent Settings. Sending the current voice_id back is always accepted and changes nothing |
voice_speed | 0.9 to 1.2, where 1.0 is the natural pace of the voice. Not available when voice_speed reads null |
pronunciations | The full list of words to say a specific way, in IPA. Replaces the existing list; send [] to clear it. Up to 100 entries, each word once. Entries Classet added in another notation are not returned and are kept |
400 and changes nothing. Calls that still run on Classet’s earlier voice system, such as interviews in a language other than English, pick up only agent_name. The voice model, the language the recruiter listens in, and its turn-taking are set by Classet; contact success@classet.ai to change them.
curl -X PATCH https://api.classet.ai/v2/agent-settings -H "X-API-KEY: $CLASSET_API_KEY" -H "Content-Type: application/json" -d '{"agent_name":"Sarah","voice_id":"Olivia","voice_speed":1.05,"pronunciations":[{"word":"Nguyen Mechanical","phoneme":"wɪn məˈkænɪkəl"}]}'
{
"data": {
"agent_name": "Sarah",
"voice_id": "Olivia",
"voice_model": "inworld/inworld-tts-2-flash",
"voice_speed": 1.05,
"pronunciations": [
{ "word": "Nguyen Mechanical", "phoneme": "wɪn məˈkænɪkəl" }
],
"available_voices": [
{ "id": "Ashley", "name": "Ashley", "description": "Warm, natural American female", "language": "en-US" },
{ "id": "Olivia", "name": "Olivia", "description": "Upbeat, friendly British female", "language": "en-GB" },
{ "id": "Diego", "name": "Diego", "description": "Soothing, gentle Mexican male", "language": "es-MX" }
]
}
}
Errors
400The body is empty, a value is out of range,voice_idis not inavailable_voices, or the body names a field you cannot change.403The API key does not have thewritescope, or is limited to some branches.409Someone changed the settings while your request ran. Read them again and retry.
400, 403 or 409 leaves every setting as it was.
A 500 can leave a partial change. The voice settings and the agent name are saved one after the other, so if the name fails the voice change stays, and the message says so. Retry the same request: it is safe to repeat and finishes the change.Authorizations
Body
application/json
Was this page helpful?