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

# Update domain settings

> Updates email settings for a specific domain including BCC emails, open tracking, and click tracking



## OpenAPI

````yaml /openapi.json post /outbound/domains/{uuid}/settings
openapi: 3.0.0
info:
  title: JetEmail API
  version: 1.0.0
  description: API documentation for JetEmail's transactional email service.
servers:
  - url: https://api.jetemail.com
    description: Production
security:
  - apiKeyAuth: []
externalDocs:
  description: Download OpenAPI Specification
  url: /openapi.json
paths:
  /outbound/domains/{uuid}/settings:
    post:
      tags:
        - Outbound
      summary: Update domain settings
      description: >-
        Updates email settings for a specific domain including BCC emails, open
        tracking, and click tracking
      parameters:
        - name: uuid
          in: path
          required: true
          description: UUID of the domain to update settings for
          schema:
            type: string
            pattern: >-
              ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
            example: b814c25d-b18c-4044-ae31-49e22ce908b5
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                bccEmails:
                  type: array
                  items:
                    type: string
                    format: email
                  description: >-
                    Array of BCC email addresses (maximum 5). New emails will
                    require verification.
                  example:
                    - admin@example.com
                    - backup@example.com
                  maxItems: 5
                  nullable: true
                openTracking:
                  type: boolean
                  description: >-
                    Enable or disable open tracking for emails sent from this
                    domain
                  example: true
                clickTracking:
                  type: boolean
                  description: >-
                    Enable or disable click tracking for emails sent from this
                    domain
                  example: false
                tracking_domain:
                  type: string
                  nullable: true
                  description: >-
                    Fully qualified hostname to CNAME to
                    link-{logLocation}.jete.ml for click/open tracking. Pass
                    null or an empty string to clear.
                  example: links.example.com
      responses:
        '200':
          description: Domain settings updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Domain settings updated successfully
                  bccEmails:
                    type: array
                    items:
                      type: object
                      properties:
                        email:
                          type: string
                          format: email
                          description: BCC email address
                        status:
                          type: integer
                          enum:
                            - 0
                            - 1
                          description: >-
                            Verification status (0 = pending verification, 1 =
                            verified)
                      required:
                        - email
                        - status
                    description: >-
                      Updated BCC emails with verification status (only present
                      when bccEmails were updated)
                    example:
                      - email: admin@example.com
                        status: 1
                      - email: new@example.com
                        status: 0
        '400':
          description: Bad Request - Invalid input or UUID format
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Invalid UUID format
        '401':
          description: Unauthorized - User not authenticated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: User information not found
        '404':
          description: Not Found - Domain not found or access denied
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Domain not found or access denied
        '429':
          description: Too Many Requests - Too many verification attempts
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: >-
                      Too many verification attempts for email@example.com.
                      Please try again later.
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  error:
                    type: string
                    example: Failed to update domain settings
components:
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````