# Retrieve All Domains (With filters)

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains:
    post:
      summary: Retrieve All Domains (With filters)
      deprecated: false
      description: |
        Retrieves a complete list of domains available, with filters. 
      tags:
        - domains
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  description: Filter by status of the domain.
                  enum:
                    - ACTIVE
                    - INACTIVE
                    - PENDING
                    - IN_PROGRESS
                    - EXPIRED
                  x-apidog-enum:
                    - value: ACTIVE
                      name: ACTIVE
                      description: ''
                    - value: INACTIVE
                      name: INACTIVE
                      description: ''
                    - value: PENDING
                      name: PENDING
                      description: ''
                    - value: IN_PROGRESS
                      name: IN_PROGRESS
                      description: ''
                    - value: EXPIRED
                      name: EXPIRED
                      description: ''
                contains:
                  type: string
                  description: Filters domains that contain the specified substring.
                tagIds:
                  type: array
                  items:
                    type: string
                  description: Filter by tag id (array of tag uuid)
                sortBy:
                  type: string
                  description: Sort by mailbox count per domain (ASC/DESC)
                  enum:
                    - ASC
                    - DESC
                  x-apidog-enum:
                    - value: ASC
                      name: Ascending
                      description: ''
                    - value: DESC
                      name: Descending
                      description: ''
              x-apidog-orders:
                - status
                - contains
                - tagIds
                - sortBy
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          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-26049361-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
