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

# Create a domain

> Claims a domain for sending and returns the DNS records to publish. The domain is unusable until those records exist and `POST /domains/{id}/verify` has confirmed them.



## OpenAPI

````yaml /api-reference/openapi.json post /domains
openapi: 3.1.0
info:
  title: i10 API
  version: 0.0.0
  description: >-
    Transactional email API. Generated from the same Zod schemas the server
    validates with and the SDKs are built from, so the reference cannot drift
    from the implementation.
servers:
  - url: https://api.i10.tech
    description: Production
security: []
tags:
  - name: Emails
    description: Sending and retrieving transactional mail.
  - name: Domains
    description: Managing sending domains and DNS verification.
  - name: Webhooks
    description: Managing webhook endpoints, deliveries, replays and stats.
  - name: Webhook events
    description: Event payloads i10 signs and POSTs to your webhook endpoints.
  - name: Suppressions
    description: Managing workspace-wide suppressed recipient addresses.
  - name: Trusted templates
    description: Submitting email templates for deliverability review.
paths:
  /domains:
    post:
      tags:
        - Domains
      summary: Create a domain
      description: >-
        Claims a domain for sending and returns the DNS records to publish. The
        domain is unusable until those records exist and `POST
        /domains/{id}/verify` has confirmed them.
      operationId: createDomain
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDomain'
      responses:
        '201':
          description: Created, with the records to publish.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Domain'
        '401':
          description: The API key is missing, malformed, or unknown.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            The plan does not include another domain, the key is restricted to a
            domain, or it is a test key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: That domain is already registered.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The name is not a domain.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Domains are not configured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    CreateDomain:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 253
        custom_return_path:
          type: string
          minLength: 1
          maxLength: 63
          pattern: ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i
        region:
          type: string
        delegated:
          type: boolean
      required:
        - name
    Domain:
      type: object
      properties:
        object:
          type: string
          enum:
            - domain
        id:
          type: string
          format: uuid
        name:
          type: string
        status:
          type: string
          enum:
            - not_started
            - pending
            - verified
            - failed
            - temporary_failure
        created_at:
          type: string
        region:
          type: string
        records:
          type: array
          items:
            type: object
            properties:
              record:
                type: string
              name:
                type: string
              type:
                type: string
                enum:
                  - MX
                  - TXT
                  - CNAME
                  - NS
                  - SRV
              ttl:
                type: string
              status:
                type: string
                enum:
                  - not_started
                  - pending
                  - verified
                  - failed
                  - temporary_failure
              value:
                type: string
              priority:
                type: integer
              weight:
                type: integer
              port:
                type: integer
            required:
              - record
              - name
              - type
              - ttl
              - status
              - value
        delegated:
          type: boolean
        open_tracking:
          type: boolean
        click_tracking:
          type: boolean
      required:
        - object
        - id
        - name
        - status
        - created_at
        - region
        - records
        - delegated
        - open_tracking
        - click_tracking
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        name:
          type: string
          enum:
            - validation_error
            - missing_required_field
            - invalid_access
            - not_found
            - method_not_allowed
            - rate_limit_exceeded
            - daily_quota_exceeded
            - monthly_quota_exceeded
            - test_quota_exceeded
            - invalid_from_address
            - invalid_to_address
            - domain_not_verified
            - idempotency_conflict
            - domain_already_exists
            - domain_already_claimed
            - plan_limit_exceeded
            - mail_signin_off
            - mailbox_already_exists
            - restricted_api_key
            - test_key_not_allowed
            - confirmation_required
            - sending_paused
            - sending_held
            - template_already_submitted
            - internal_server_error
        message:
          type: string
      required:
        - statusCode
        - name
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your i10 API key, prefixed `i10_live_` or `i10_test_`. Test keys can
        only send simulated emails (never delivered externally or counted toward
        limits), read test emails and list domains; all other endpoints refuse
        them with 403 `test_key_not_allowed`.

````

## Related topics

- [Create a webhook endpoint](https://docs.i10.tech/api-reference/webhooks/create-webhook-endpoint.md)
- [Delete a domain](https://docs.i10.tech/api-reference/domains/delete-domain.md)
- [List domains](https://docs.i10.tech/api-reference/domains/list-domains.md)
- [Retrieve a domain](https://docs.i10.tech/api-reference/domains/get-domain.md)
- [Update a domain](https://docs.i10.tech/api-reference/domains/update-domain.md)


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