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

# Get affiliate email settings



## OpenAPI

````yaml openapi-v2-affiliate-email-settings get /email_settings
openapi: 3.0.1
info:
  title: FirstPromoter Email Settings API
  version: '1.0'
  description: API for managing affiliate email settings
servers:
  - url: https://api.firstpromoter.com/api/v2/affiliate
security:
  - BearerAuth: []
paths:
  /email_settings:
    get:
      tags:
        - Email Settings
      summary: Get affiliate email settings
      parameters:
        - $ref: '#/components/parameters/AccountId'
        - name: e
          in: query
          description: Encrypted email
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Email settings retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/EmailSettings'
                  meta:
                    type: object
                    properties:
                      email:
                        type: string
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    AccountId:
      name: Account-ID
      in: header
      required: true
      description: Account identifier that specifies which account is making the request
      schema:
        type: string
        example: acc_123456
  schemas:
    EmailSettings:
      type: object
      properties:
        id:
          type: integer
        company_domain:
          type: string
        emails_opt_drip:
          type: boolean
        emails_opt_new_commission:
          type: boolean
        emails_opt_new_referral:
          type: boolean
        emails_opt_payout:
          type: boolean
        company_name:
          type: string
        marketing_consent:
          type: boolean
    Error:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Access token passed as a Bearer token in the Authorization header

````