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

# Signup

> Create (or enable API on an existing) workspace org and return the
first API key. Used by docs-only developers to bootstrap API access.

Flow:

1. Authenticate the caller via Firebase ID token.
2. If ``existing_org_id`` is set and the user is an owner/admin, light
   up API fields on that Firestore org. Otherwise create a fresh org
   doc under the user's ownership.
3. Mint a ``sk_live_*`` key, store its hash, return the raw
   value **once** in this response.

The raw key is never persisted in the response body elsewhere —
subsequent list calls only show the prefix.



## OpenAPI

````yaml /openapi.json post /signup
openapi: 3.1.0
info:
  title: Overten API
  version: 1.0.0
  description: >-
    Generate and edit Word, Excel, and PowerPoint documents programmatically.
    Powered by the same agents as the Overten web app.
  contact:
    name: Overten Support
    url: https://overten.ai/support
    email: support@overten.ai
  license:
    name: Terms of Service
    url: https://overten.ai/terms
servers:
  - url: https://backend.overtenai.com/api/v1
    description: Production
  - url: http://localhost:8000/api/v1
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /signup:
    post:
      tags:
        - public
        - signup
      summary: Signup
      description: |-
        Create (or enable API on an existing) workspace org and return the
        first API key. Used by docs-only developers to bootstrap API access.

        Flow:

        1. Authenticate the caller via Firebase ID token.
        2. If ``existing_org_id`` is set and the user is an owner/admin, light
           up API fields on that Firestore org. Otherwise create a fresh org
           doc under the user's ownership.
        3. Mint a ``sk_live_*`` key, store its hash, return the raw
           value **once** in this response.

        The raw key is never persisted in the response body elsewhere —
        subsequent list calls only show the prefix.
      operationId: signup_api_v1_signup_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignupRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SignupRequest:
      properties:
        org_name:
          anyOf:
            - type: string
              maxLength: 120
              minLength: 2
            - type: 'null'
          title: Org Name
        existing_org_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Existing Org Id
        tier:
          type: string
          enum:
            - free
            - pro
            - enterprise
          title: Tier
          default: free
        key_name:
          type: string
          maxLength: 80
          title: Key Name
          default: default
      type: object
      title: SignupRequest
      description: |-
        Create a workspace org + first API key in one shot.

        The caller is authenticated via Firebase ID token. If they already
        belong to a workspace and want to enable API access on it, pass its
        ``existing_org_id`` instead of creating a new one.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Send `X-API-Key: sk_live_<your_key>`. Keys are issued via POST /signup
        or via the dashboard. Legacy callers may also use `Authorization: Bearer
        sk_live_<your_key>`.

````