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

# List domains

> Get all domains for your organization



## OpenAPI

````yaml /openapi.json get /v1/domains
openapi: 3.0.3
info:
  title: Emailr API
  version: 1.0.0
servers:
  - url: https://api.emailr.dev
    description: Production
security: []
tags:
  - name: emails
    description: Email sending and management
  - name: contacts
    description: Contact management
  - name: templates
    description: Email template management
  - name: domains
    description: Domain verification and management
  - name: webhooks
    description: Webhook configuration
  - name: broadcasts
    description: Broadcast campaign management
  - name: segments
    description: Contact segmentation
paths:
  /v1/domains:
    get:
      tags:
        - domains
      summary: List domains
      description: Get all domains for your organization
      operationId: listDomains
      responses:
        '200':
          description: List of domains
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Domain'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Domain:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174000
        organization_id:
          type: string
          format: uuid
        domain:
          type: string
        status:
          type: string
          example: verified
        verification_token:
          type: string
          nullable: true
        dkim_verified:
          type: boolean
        spf_verified:
          type: boolean
        dmarc_verified:
          type: boolean
        cloudflare_zone_id:
          type: string
          nullable: true
        ses_identity_arn:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        verified_at:
          type: string
          nullable: true
          format: date-time
        dkim_tokens:
          type: array
          nullable: true
          items:
            type: string
        dns_records:
          $ref: '#/components/schemas/DomainDnsRecords'
        dkim_selector:
          type: string
          nullable: true
        mail_from_subdomain:
          type: string
          nullable: true
        mail_from_verified:
          type: boolean
          nullable: true
        receiving_enabled:
          type: boolean
          nullable: true
        receiving_subdomain:
          type: string
          nullable: true
      required:
        - id
        - organization_id
        - domain
        - status
        - verification_token
        - dkim_verified
        - spf_verified
        - dmarc_verified
        - cloudflare_zone_id
        - ses_identity_arn
        - created_at
        - verified_at
        - dkim_tokens
        - dns_records
        - dkim_selector
        - mail_from_subdomain
        - mail_from_verified
        - receiving_enabled
        - receiving_subdomain
    Error:
      type: object
      properties:
        error:
          type: string
          example: An error occurred
        code:
          type: string
          example: VALIDATION_ERROR
        details: {}
      required:
        - error
    DomainDnsRecords:
      type: object
      nullable: true
      properties:
        dkim:
          $ref: '#/components/schemas/DnsRecord'
        spf:
          $ref: '#/components/schemas/DnsRecord'
        dmarc:
          $ref: '#/components/schemas/DnsRecord'
        mailFromMx:
          $ref: '#/components/schemas/DnsRecord'
        mailFromSpf:
          $ref: '#/components/schemas/DnsRecord'
        receivingMx:
          $ref: '#/components/schemas/DnsRecord'
      required:
        - dkim
        - spf
        - dmarc
        - mailFromMx
        - mailFromSpf
        - receivingMx
    DnsRecord:
      type: object
      properties:
        type:
          type: string
          enum:
            - TXT
            - MX
            - CNAME
        name:
          type: string
        value:
          type: string
        priority:
          type: number
      required:
        - type
        - name
        - value
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API key authentication. Use your API key as the bearer token.

````