> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

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 `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](/docs/api-reference/agent-settings/get-settings.md). 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 |

A request with any other field returns `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](mailto:success@classet.ai) to change them.

```bash cURL theme={null}
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"}]}'
```

```json 200 theme={null}
{
  "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

* **`400`** The body is empty, a value is out of range, `voice_id` is not in `available_voices`, or the body names a field you cannot change.
* **`403`** The API key does not have the `write` scope, or is limited to some branches.
* **`409`** Someone changed the settings while your request ran. Read them again and retry.

All checks run before anything is saved, so a `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.


## OpenAPI

````yaml PATCH /v2/agent-settings
openapi: 3.1.0
info:
  title: Classet API
  version: 2.0.3
  description: >-
    AI-powered recruiting and phone screening API.


    **API key scopes.** `read` covers every GET; any other method needs `write`
    (403 `insufficient_scope`); starting or stopping an interview also needs
    `interviews:send`. A branch-limited key sees and writes only jobs in its
    branches (not jobs with no branch) and their candidates, applications and
    calls; anything outside is a 404. An organization-group key is read-only
    across every organization in its group. Branch-limited and group keys cannot
    use organization configuration (scripts, knowledge, webhooks, message
    automations, agent settings, AI generation, organization): 403
    `restricted_key_unsupported`. `GET /v2/me` reports what the calling key can
    do.
servers:
  - url: https://api.classet.ai
    description: Production
  - url: http://localhost:8081
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /v2/agent-settings:
    patch:
      tags:
        - Agent Settings
      summary: Update agent settings
      description: >-
        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.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                agent_name:
                  type: string
                  minLength: 1
                  maxLength: 40
                  description: >-
                    Name the AI recruiter uses for itself with candidates. 1-40
                    characters.
                  example: Joy
                voice_id:
                  type: string
                  minLength: 1
                  maxLength: 120
                  description: One of the `id` values in `available_voices`
                  example: Ashley
                voice_speed:
                  type: number
                  minimum: 0.9
                  maximum: 1.2
                  description: >-
                    Speaking rate, 0.9 to 1.2. Stored to two decimal places.
                    Only for voice models with rate control (`voice_speed` is
                    not `null`).
                  example: 1.1
                pronunciations:
                  type: array
                  items:
                    $ref: '#/components/schemas/AgentPronunciation'
                  maxItems: 100
                  description: >-
                    Replaces the whole list. Send `[]` to clear it. Each word
                    may appear once.
              additionalProperties: false
      responses:
        '200':
          description: Updated settings
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/AgentSettings'
                required:
                  - data
        '400':
          description: >-
            Invalid body, a field that cannot be changed, or a voice that is not
            in `available_voices`
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '403':
          description: >-
            The API key does not have the `write` scope, or is limited to some
            branches
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '409':
          description: >-
            The settings changed while this request ran. Read them again and
            retry.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Resource not found
                  code:
                    type: string
                    enum:
                      - not_found
                      - validation_error
                      - unauthorized
                      - forbidden
                      - insufficient_scope
                      - restricted_key_unsupported
                      - branch_out_of_scope
                      - key_misconfigured
                      - quota_exceeded
                      - rate_limited
                      - rate_limit_unavailable
                      - conflict
                      - idempotency_key_reuse
                      - candidate_opted_out
                      - recently_contacted
                      - request_in_progress
                      - unprocessable
                      - bad_request
                      - payload_too_large
                      - internal_error
                      - service_unavailable
                    example: not_found
                    description: Stable machine-readable error code.
                  request_id:
                    type: string
                    example: 9f2c1d7e-4a3b-4c8d-9e0f-1a2b3c4d5e6f
                    description: >-
                      Request ID, also echoed in the X-Request-Id response
                      header. Include it when reporting issues.
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AgentPronunciation:
      type: object
      properties:
        word:
          type: string
          minLength: 1
          maxLength: 60
          description: >-
            The word or name as it appears in what the recruiter says. Matched
            case-insensitively.
          example: Nguyen Mechanical
        phoneme:
          type: string
          minLength: 1
          maxLength: 120
          description: How to say it, in IPA. Must not contain `<`, `>`, `|`, `/` or `\`.
          example: wɪn məˈkænɪkəl
      required:
        - word
        - phoneme
      additionalProperties: false
    AgentSettings:
      type: object
      properties:
        agent_name:
          type: string
          nullable: true
          description: Name the AI recruiter uses for itself with candidates
          example: Joy
        voice_id:
          type: string
          nullable: true
          description: >-
            Voice the recruiter speaks with. `null` when no voice is set for a
            voice model other than the default one.
          example: Ashley
        voice_model:
          type: string
          description: >-
            Text-to-speech model behind the voice. Read-only: Classet sets it
            for your organization.
          example: inworld/inworld-tts-2-flash
        voice_speed:
          type: number
          nullable: true
          description: >-
            Speaking rate, where 1.0 is the natural pace of the voice. `null`
            when the voice model has no rate control.
          example: 1.1
        pronunciations:
          type: array
          items:
            $ref: '#/components/schemas/AgentPronunciation'
          description: Words the recruiter says a specific way, such as your company name
        available_voices:
          type: array
          items:
            $ref: '#/components/schemas/AgentVoiceOption'
          description: The voices you can set as `voice_id` on the current voice model
      required:
        - agent_name
        - voice_id
        - voice_model
        - voice_speed
        - pronunciations
        - available_voices
      description: Name, voice and pronunciations of your AI recruiter
    AgentVoiceOption:
      type: object
      properties:
        id:
          type: string
          description: Pass this as `voice_id`
          example: Ashley
        name:
          type: string
          example: Ashley
        description:
          type: string
          example: Warm, natural American female
        language:
          type: string
          description: Language and accent of the voice
          example: en-US
      required:
        - id
        - name
        - description
        - language
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Your Classet API key. Create and rotate keys in Settings → API.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.