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

# Update agent version email configuration

> Update the email-specific configuration for an agent version. The linked domain must be VERIFIED before it can be used.



## OpenAPI

````yaml patch /api/v1/agents/{agentId}/versions/{versionId}/email-config
openapi: 3.0.0
info:
  version: 1.0.0
  title: Feather AI API
servers:
  - url: https://prod.featherhq.com
    description: Production environment
security: []
paths:
  /api/v1/agents/{agentId}/versions/{versionId}/email-config:
    patch:
      tags:
        - Agents
      summary: Update agent version email configuration
      description: >-
        Update the email-specific configuration for an agent version. The linked
        domain must be VERIFIED before it can be used.
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: agentId
          in: path
        - schema:
            type: string
            format: uuid
          required: true
          name: versionId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                emailDomainId:
                  type: string
                  nullable: true
                  format: uuid
                emailFromLocalPart:
                  type: string
                  nullable: true
                  minLength: 1
                  maxLength: 64
                  pattern: ^[a-zA-Z0-9._%+\-]+$
                emailFromName:
                  type: string
                  nullable: true
                  minLength: 1
                  maxLength: 100
                emailMaxTokens:
                  type: integer
                  minimum: 100
                  maximum: 8000
                emailTemperature:
                  type: number
                  minimum: 0
                  maximum: 2
                emailInactivityTimeoutHours:
                  type: integer
                  nullable: true
                  minimum: 1
                emailFilteringEnabled:
                  type: boolean
                emailResponseMode:
                  type: string
                  enum:
                    - AUTO_SEND
                    - SUGGEST_ONLY
                    - CONFIDENCE_BASED
                emailConfidenceThreshold:
                  type: number
                  minimum: 0
                  maximum: 1
                emailReplyToAddress:
                  type: string
                  nullable: true
                  format: email
      responses:
        '200':
          description: Email configuration updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  version:
                    type: object
                    properties:
                      id:
                        type: string
                      agentId:
                        type: string
                      version:
                        type: number
                      emailDomainId:
                        type: string
                        nullable: true
                      emailFromLocalPart:
                        type: string
                        nullable: true
                      emailFromName:
                        type: string
                        nullable: true
                      emailMaxTokens:
                        type: number
                      emailTemperature:
                        type: number
                      emailInactivityTimeoutHours:
                        type: number
                        nullable: true
                      emailFilteringEnabled:
                        type: boolean
                      emailResponseMode:
                        type: string
                        enum:
                          - AUTO_SEND
                          - SUGGEST_ONLY
                          - CONFIDENCE_BASED
                      emailConfidenceThreshold:
                        type: number
                      emailTags:
                        type: array
                        nullable: true
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            prompt:
                              type: string
                            autoClose:
                              type: boolean
                            gmailLabelId:
                              type: string
                            gmailLabelName:
                              type: string
                          required:
                            - name
                            - prompt
                            - autoClose
                      emailReplyToAddress:
                        type: string
                        nullable: true
                      updatedAt:
                        type: string
                    required:
                      - id
                      - agentId
                      - version
                      - emailDomainId
                      - emailFromLocalPart
                      - emailFromName
                      - emailMaxTokens
                      - emailTemperature
                      - emailInactivityTimeoutHours
                      - emailFilteringEnabled
                      - emailResponseMode
                      - emailConfidenceThreshold
                      - emailTags
                      - emailReplyToAddress
                      - updatedAt
                required:
                  - version
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    default: 400
                  message:
                    type: string
                    default: Bad request
                  code:
                    type: string
                    enum:
                      - BAD_REQUEST
                    default: BAD_REQUEST
                  success:
                    type: boolean
                    enum:
                      - false
                    default: false
        '404':
          description: Agent version not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    default: 404
                  message:
                    type: string
                    default: Not found
                  code:
                    type: string
                    enum:
                      - NOT_FOUND
                    default: NOT_FOUND
                  success:
                    type: boolean
                    enum:
                      - false
                    default: false
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    default: 500
                  message:
                    type: string
                    default: Internal server error
                  code:
                    type: string
                    enum:
                      - INTERNAL_SERVER_ERROR
                    default: INTERNAL_SERVER_ERROR
                  success:
                    type: boolean
                    enum:
                      - false
                    default: false
      security:
        - ApiKey: []
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key

````