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

# Check Domain Nameservers

> Checks whether the domain's NS records point to the nameservers returned by `Add Domain`. Setup can only be started once `state` is `verified`. DNS changes can take a while to propagate, so call this again later if records are missing.



## OpenAPI

````yaml /openapi-v1.yml get /api/v1/domain/nameservers/
openapi: 3.1.1
info:
  title: DeliverymanAI API V1
  version: 1.0.0
  description: >-
    API documentation for version 1 of the DeliverymanAI API. These endpoints
    drive campaigns, contact lists, leads and email sequences from your own
    code.


    V1 and V2 share the same API keys, sent in the `X-Api-Key` header.
servers:
  - url: https://api.deliveryman.ai
    description: Deliveryman API Server
security: []
paths:
  /api/v1/domain/nameservers/:
    get:
      tags:
        - Domains
      summary: Check Domain Nameservers
      description: >-
        Checks whether the domain's NS records point to the nameservers returned
        by `Add Domain`. Setup can only be started once `state` is `verified`.
        DNS changes can take a while to propagate, so call this again later if
        records are missing.
      operationId: domain_nameservers_retrieve
      parameters:
        - in: query
          name: domain_id
          schema:
            title: Domain Id
            type: integer
          description: ID of the domain.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainNameserverCheckAPIResponse'
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimpleMessageResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimpleMessageResponse'
          description: Not Found
        '500':
          description: Internal Server Error
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimpleMessageResponse'
          description: Not Available Yet
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: bash
          label: curl
          source: >-
            curl
            "https://api.deliveryman.ai/api/v1/domain/nameservers/?domain_id=0"
            \
              -H "X-Api-Key: YOUR_API_KEY"
components:
  schemas:
    DomainNameserverCheckAPIResponse:
      type: object
      properties:
        success:
          type: boolean
          description: True if the nameserver records are set up correctly.
        state:
          allOf:
            - $ref: '#/components/schemas/StateEnum'
          description: >-
            `verified` if all required nameservers are present and nothing else,
            `duplicate` if they are present alongside other nameservers that
            must be removed, `partial_missing` if only some are present, and
            `all_missing` if none are found yet. DNS changes can take a while to
            propagate.


            * `verified` - verified

            * `duplicate` - duplicate

            * `partial_missing` - partial_missing

            * `all_missing` - all_missing
        required_nameservers:
          type: array
          items:
            type: string
          description: Nameservers that must be added as NS records.
        detected_nameservers:
          type: array
          items:
            type: string
          description: NS records currently found for the domain.
        missing_nameservers:
          type: array
          items:
            type: string
          description: Required nameservers that were not found.
        foreign_nameservers:
          type: array
          items:
            type: string
          description: NS records found for the domain that must be removed.
      required:
        - detected_nameservers
        - foreign_nameservers
        - missing_nameservers
        - required_nameservers
        - state
        - success
    SimpleMessageResponse:
      type: object
      properties:
        message:
          type: string
          description: Human-readable description of the result or error.
      required:
        - message
    StateEnum:
      enum:
        - verified
        - duplicate
        - partial_missing
        - all_missing
      type: string
      description: |-
        * `verified` - verified
        * `duplicate` - duplicate
        * `partial_missing` - partial_missing
        * `all_missing` - all_missing
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        Your API key, sent as the value of the `X-Api-Key` header. In the
        dashboard, go to Integrations and open Deliveryman API Keys to create
        one.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.