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

# Create Enrollment Token

> Create a connector enrollment token.



## OpenAPI

````yaml POST /orgs/{org_id}/connectors/enrollment-tokens
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: analytics
    description: Project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/connectors/enrollment-tokens:
    post:
      tags:
        - connectors
      summary: '`POST /orgs/{org_id}/connectors/enrollment-tokens`'
      description: Create a connector enrollment token.
      operationId: create
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReqBody'
        required: true
      responses:
        '201':
          description: Token minted (raw value shown once)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResBody'
        '400':
          description: Invalid TTL
        '403':
          description: Forbidden
      security:
        - bearer_auth: []
components:
  schemas:
    ReqBody:
      type: object
      properties:
        name:
          type:
            - string
            - 'null'
          description: Operator label ("warehouse-pg box").
        ttl_secs:
          type:
            - integer
            - 'null'
          format: int64
          description: Token lifetime in seconds. Default 86400 (24h), max 30 days.
    ResBody:
      type: object
      required:
        - token_id
        - token
        - expires_at
      properties:
        expires_at:
          type: string
          format: date-time
        token:
          type: string
          description: Raw enrollment token, shown once in the response.
        token_id:
          type: string
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````