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

# Register a new domain

> Register a new domain name. Performs a real-time availability check, processes payment (account balance or saved card), and registers the domain with a 60-day transfer lock and parking nameservers.



## OpenAPI

````yaml POST /registrar/v1/domains/register
openapi: 3.0.0
info:
  title: Atom Registrar API
  version: 1.0.0
  description: >-
    REST API for domain registration, DNS management, and domain operations.
    Authentication via Bearer token in Authorization header.
servers:
  - url: https://www.atom.com/api
    description: Production server
  - url: https://dev.atom.com/api
    description: Development server
security:
  - BearerAuth: []
paths:
  /registrar/v1/domains/register:
    post:
      summary: Register a new domain
      description: >-
        Register a new domain name. Performs a real-time availability check,
        processes payment (account balance or saved card), and registers the
        domain with a 60-day transfer lock and parking nameservers.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DomainRegistrationRequest'
      responses:
        '201':
          description: Domain registered successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainRegistrationResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          description: Payment failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    DomainRegistrationRequest:
      type: object
      required:
        - domain_name
      properties:
        domain_name:
          type: string
          example: example.com
        registration_length:
          type: integer
          minimum: 1
          maximum: 10
          default: 1
          example: 2
          description: Number of years to register (1-10)
    DomainRegistrationResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Domain registered successfully
        data:
          type: object
          properties:
            domain:
              type: string
              example: example.com
            registration_length:
              type: integer
              example: 2
            payment_method:
              type: string
              enum:
                - account_balance
                - saved_card
              example: account_balance
            cart_id:
              type: integer
              example: 12345
            price_breakdown:
              type: object
              properties:
                unit_price:
                  type: number
                  format: float
                  example: 9.99
                registration_length:
                  type: integer
                  example: 2
                subtotal:
                  type: number
                  format: float
                  example: 19.98
                vat_amount:
                  type: number
                  format: float
                  example: 0
                total:
                  type: number
                  format: float
                  example: 19.98
            status:
              type: string
              example: Completed
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: Invalid input provided
  responses:
    BadRequest:
      description: Bad request - invalid parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    UnauthorizedError:
      description: Authentication failed - invalid or revoked API token
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              error:
                type: string
                example: Unauthorized
              message:
                type: string
                example: >-
                  Invalid registrar API token or access has been revoked. Please
                  request registrar API access from your dashboard.
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ServiceUnavailable:
      description: Service temporarily unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Registrar API Bearer token. Obtain from dashboard at
        /dashboard/seller/api-access after requesting Registrar API access.

````