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

# Connect Domain

> Register a custom domain and get the DNS records to configure.



## OpenAPI

````yaml POST /projects/{slug}/domains
openapi: 3.1.0
info:
  title: Faces API
  version: '1.0'
  description: >-
    Faces API for creating and managing presentations. Generate presentations
    from prompts, or read and write individual slides. Each slide is a React
    component (face.tsx) with content blocks (face.content.json) and editor
    controls (face.controls.json).
servers:
  - url: https://faces.app/api/v1
    description: API v1
security:
  - bearerAuth: []
paths:
  /projects/{slug}/domains:
    post:
      tags:
        - Publishing
      summary: Connect a custom domain
      description: >-
        Register a custom domain for the project's team and return the DNS
        records to configure. Point the project at it with updateProjectUrl once
        DNS is set up. Requires a paid plan.
      operationId: createCustomDomain
      parameters:
        - schema:
            type: string
          required: true
          name: slug
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                hostname:
                  type: string
                  description: The domain to connect, without protocol or 'www'.
              required:
                - hostname
      responses:
        '200':
          description: Domain connected
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  domain:
                    type: object
                    properties:
                      id:
                        type: string
                      hostname:
                        type: string
                    required:
                      - id
                      - hostname
                  dns:
                    type:
                      - object
                      - 'null'
                    properties:
                      verified:
                        type: boolean
                      misconfigured:
                        type: boolean
                      recommendedRecords:
                        type: array
                        items:
                          type: object
                          additionalProperties: {}
                    required:
                      - verified
                      - misconfigured
                      - recommendedRecords
                  next:
                    type: string
                required:
                  - success
                  - domain
                  - dns
                  - next
        '400':
          description: Invalid domain format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Paid plan required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Domain already taken
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        hint:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key with "faces_" prefix. Create one at Settings > Developers.

````