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

# Create Domain



## OpenAPI

````yaml api-reference/openapi.json post /domains
openapi: 3.0.0
info:
  title: OpenAPI Documentation Amisend
  version: 1.0.0
servers:
  - url: https://api.amisend.com
  - url: http://localhost:3015/api
security: []
tags: []
paths:
  /domains:
    post:
      tags:
        - Domain
      summary: Create Domain
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  example: example.com
      responses:
        '201':
          description: Domain created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Domain'
        '400':
          description: Domain with this name already exists
        '401':
          description: Unauthorized
        '500':
          description: Error creating domain
      security:
        - bearerAuth: []
components:
  schemas:
    Domain:
      type: object
      properties:
        _id:
          type: string
        name:
          type: string
        team:
          type: string
        user:
          type: string
        status:
          type: string
        ses:
          type: object
          properties:
            verifyDomainToken:
              type: string
            dkmi:
              type: array
              items:
                type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````