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

# Add Domain

> Add a custom domain. Detects the DNS provider and registers the domain on Vercel.



## OpenAPI

````yaml https://api.oviond.com/openapi.json post /v1/custom-domains
openapi: 3.1.0
info:
  title: Oviond Backend API
  version: 1.0.0
  description: Authentication, account management, billing, and media services for Oviond.
  x-logo:
    url: https://app.oviond.com/img/oviond-full-logo.svg
    altText: Oviond
servers:
  - url: https://api.oviond.com
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/custom-domains:
    post:
      tags:
        - Custom Domains
      summary: Add Domain
      description: >-
        Add a custom domain. Detects the DNS provider and registers the domain
        on Vercel.
      operationId: add_domain
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddDomainRequest'
      responses:
        '200':
          description: Domain added
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainResponse'
        '409':
          description: Domain already exists
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
components:
  schemas:
    AddDomainRequest:
      type: object
      properties:
        domain:
          type: string
          minLength: 1
          pattern: ^[a-zA-Z0-9][a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
      required:
        - domain
    DomainResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          $ref: '#/components/schemas/CustomDomain'
      required:
        - success
        - data
    CustomDomain:
      type: object
      properties:
        id:
          type: string
        domain:
          type: string
        status:
          $ref: '#/components/schemas/DomainStatus'
        provider:
          $ref: '#/components/schemas/DnsProvider'
        is_default:
          type: boolean
        created_at:
          anyOf:
            - type: string
            - type: string
            - type: 'null'
        domain_records:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              name:
                type: string
              value:
                type: string
            required:
              - type
              - name
              - value
        vercel_verification:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              domain:
                type: string
              value:
                type: string
            required:
              - type
              - domain
              - value
        dns_records:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              name:
                type: string
              value:
                type: string
            required:
              - type
              - name
              - value
      required:
        - id
        - domain
        - status
    DomainStatus:
      type: string
      enum:
        - pending
        - verifying
        - active
        - failed
    DnsProvider:
      type:
        - string
        - 'null'
      enum:
        - cloudflare
        - godaddy
        - namecheap
        - route53
        - google
        - squarespace
        - unknown
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Oviond API key (prefix `oviond_`) sent as a Bearer token — the
        credential for REST/programmatic and headless integrations. Manage keys
        in Settings → API Keys. API keys do NOT authenticate the MCP endpoint
        (/mcp), which uses OAuth 2.1 + PKCE.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Supabase-issued JWT used by the Oviond web app session. External API
        consumers should authenticate with an Oviond API key (ApiKeyAuth)
        instead.

````