# Retrieve All Domains

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains:
    get:
      summary: Retrieve All Domains
      deprecated: false
      description: Retrieves a complete list of domains available in the system.
      tags:
        - domains
      parameters:
        - name: contains
          in: query
          description: Filters domains that contain the specified substring.
          required: false
          schema:
            type: string
        - name: page
          in: query
          description: Specifies the page number for paginated results.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: Number of domains returned per page
          required: false
          schema:
            type: string
        - name: x-auth-zapmail
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: x-workspace-key
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
        - name: x-service-provider
          in: header
          description: ''
          required: false
          example: ''
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      totalSearchedCount:
                        type: integer
                      currentPage:
                        type: integer
                      nextPage:
                        type: integer
                      totalPages:
                        type: integer
                      domains:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            domain:
                              type: string
                            status:
                              type: string
                            createdAt:
                              type: string
                            updatedAt:
                              type: string
                            forwardTo:
                              type: string
                              nullable: true
                            forwardToAddedOnReseller:
                              type: boolean
                            dmarcEmail:
                              type: string
                              nullable: true
                            dmarcEmailAddedToReseller:
                              type: boolean
                            forwardingEmail:
                              type: string
                              nullable: true
                            forwardingEmailAdded:
                              type: boolean
                            catchAllEmail:
                              type: string
                              nullable: true
                            catchAllEmailAdded:
                              type: boolean
                            nameServers:
                              type: array
                              items:
                                type: string
                            assignedMailboxesCount:
                              type: string
                          required:
                            - id
                            - domain
                            - status
                            - createdAt
                            - updatedAt
                            - forwardTo
                            - forwardToAddedOnReseller
                            - dmarcEmail
                            - dmarcEmailAddedToReseller
                            - forwardingEmail
                            - forwardingEmailAdded
                            - catchAllEmail
                            - catchAllEmailAdded
                            - nameServers
                            - assignedMailboxesCount
                          x-apidog-orders:
                            - id
                            - domain
                            - status
                            - createdAt
                            - updatedAt
                            - forwardTo
                            - forwardToAddedOnReseller
                            - dmarcEmail
                            - dmarcEmailAddedToReseller
                            - forwardingEmail
                            - forwardingEmailAdded
                            - catchAllEmail
                            - catchAllEmailAdded
                            - nameServers
                            - assignedMailboxesCount
                    required:
                      - totalSearchedCount
                      - currentPage
                      - nextPage
                      - totalPages
                      - domains
                    x-apidog-orders:
                      - totalSearchedCount
                      - currentPage
                      - nextPage
                      - totalPages
                      - domains
                required:
                  - status
                  - message
                  - data
                x-apidog-orders:
                  - status
                  - message
                  - data
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: domains
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-13520015-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
