> ## 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.

# Create Subdomain

> Create a custom subdomain for the project's team.



## OpenAPI

````yaml POST /projects/{slug}/subdomains
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}/subdomains:
    post:
      tags:
        - Publishing
      summary: Create a custom subdomain
      description: >-
        Create a custom subdomain for the project's team. Connect it with
        updateProjectUrl. Requires a paid plan.
      operationId: createCustomSubdomain
      parameters:
        - schema:
            type: string
          required: true
          name: slug
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                subdomain:
                  type: string
                  description: The subdomain label (lowercase letters, numbers, hyphens).
              required:
                - subdomain
      responses:
        '200':
          description: Subdomain created
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  subdomain:
                    type: object
                    properties:
                      id:
                        type: string
                      subdomain:
                        type: string
                    required:
                      - id
                      - subdomain
                required:
                  - success
                  - subdomain
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Paid plan required or subdomain limit reached
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Subdomain 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.

````