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

# Register a domain

> Register a domain to your Contiguity account

<img
  src="https://fake.img.com/nonexistent.jpg"
  style={{display: 'none'}}
  onError={() => {
    const script = document.createElement('script');
    script.textContent = `
        document.querySelectorAll('a[href*="mintlify.com"][href*="poweredBy"]').forEach(link => {
            link.remove();
        });
    `
    document.head.appendChild(script);
}}
/>


## OpenAPI

````yaml openapi-domains POST /{domain}
openapi: 3.0.0
info:
  version: v2026.2.6
  title: Domains API
servers:
  - url: https://api.contiguity.com/domains
security: []
paths:
  /{domain}:
    post:
      parameters:
        - schema:
            type: string
            description: Domain to register
            example: example.com
          required: true
          description: Domain to register
          name: domain
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                region:
                  type: string
                  default: us-east-1
                  description: AWS region
                  example: us-east-1
                custom_return_path:
                  type: string
                  default: contiguity
                  description: Custom return path subdomain
                  example: contiguity
      responses:
        '200':
          description: Register a domain for email sending
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: req_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1770363397691
                  api_version:
                    type: string
                    example: v2026.2.6
                  object:
                    type: string
                    example: response
                  data:
                    type: object
                    properties:
                      domain:
                        type: string
                        description: The registered domain name
                        example: example.com
                      id:
                        type: string
                        description: Domain ID
                        example: dmn_1234567890abcdef
                      status:
                        type: string
                        description: Domain verification status
                        example: pending_verification
                      region:
                        type: string
                        description: >-
                          AWS region (us-east-1 is the default and only
                          currently supported region)
                        example: us-east-1
                      created_at:
                        type: number
                        description: Domain creation timestamp
                        example: 1755637604526
                      sending_allowed:
                        type: boolean
                        description: >-
                          Whether sending is allowed (always false on
                          registration)
                        example: false
                      records:
                        type: array
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - MX
                                - TXT
                                - CNAME
                              description: Record type
                              example: MX
                            name:
                              type: string
                              description: Record name
                              example: '@'
                            value:
                              type: string
                              description: Record value
                              example: inbound-smtp.us-east-1.amazonaws.com
                            purpose:
                              type: string
                              description: Record purpose
                              example: Inbound Email
                          required:
                            - type
                            - name
                            - value
                            - purpose
                        description: DNS records to add to your domain
                    required:
                      - domain
                      - id
                      - status
                      - region
                      - created_at
                      - sending_allowed
                      - records
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: err_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1770363397691
                  api_version:
                    type: string
                    example: v2026.2.6
                  object:
                    type: string
                    example: error
                  data:
                    type: object
                    properties:
                      error:
                        type: string
                        example: Bad Request
                      status:
                        type: number
                        example: 400
                    required:
                      - error
                      - status
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: err_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1770363397691
                  api_version:
                    type: string
                    example: v2026.2.6
                  object:
                    type: string
                    example: error
                  data:
                    type: object
                    properties:
                      error:
                        type: string
                        example: Unauthorized
                      status:
                        type: number
                        example: 401
                    required:
                      - error
                      - status
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: err_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1770363397691
                  api_version:
                    type: string
                    example: v2026.2.6
                  object:
                    type: string
                    example: error
                  data:
                    type: object
                    properties:
                      error:
                        type: string
                        example: Forbidden
                      status:
                        type: number
                        example: 403
                    required:
                      - error
                      - status
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: err_xxxxxxxxxxxxxxxx
                  timestamp:
                    type: number
                    example: 1770363397691
                  api_version:
                    type: string
                    example: v2026.2.6
                  object:
                    type: string
                    example: error
                  data:
                    type: object
                    properties:
                      error:
                        type: string
                        example: Internal Server Error
                      status:
                        type: number
                        example: 500
                    required:
                      - error
                      - status
                required:
                  - id
                  - timestamp
                  - api_version
                  - object
                  - data
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````