# Connect Domain with Zapmail

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/domains/connect-domain:
    post:
      summary: Connect Domain with Zapmail
      deprecated: true
      description: >
        # Connect Domain with Zapmail


        This endpoint connects your domain with Zapmail after verifying that the
        name servers have been correctly propagated.


        ## Endpoint


        ## Request Body


        | Name        | Type   | Description |

        |-------------|--------|-------------|

        | `domainName` | `string` | The domain name for which you want to verify
        the name servers. |

        | `nameServers` | `string` | A comma-separated list of name servers to
        be verified. |


        ## Example Request


        ```json

        {
            "domainName": "yourdomain.com",
        }
      tags:
        - domains
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: '{{x-auth-zapmail}}'
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                status: 200
                message: Domain Connected Successfully
                data: null
          headers: {}
          x-apidog-name: Success
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                error: true
                statusCode: 400
                expectedNameServers:
                  - ns1.dnsprovider.com
                  - ns2.dnsprovider.com
                gotNameServers:
                  - ns03.domaincontrol.com
                  - ns04.domaincontrol.com
          headers: {}
          x-apidog-name: Bad Request
      security: []
      x-apidog-folder: domains
      x-apidog-status: deprecated
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-13521006-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
