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

# Post v1projects tokens

> Create a new API token. The token value is returned once and cannot be retrieved again.



## OpenAPI

````yaml https://hidden-wildcat-614.convex.site/v1/openapi post /v1/projects/{projectId}/tokens
openapi: 3.0.0
info:
  version: 2.0.0
  title: LazyLocales API
  description: >-
    AI-powered translation management REST API with CLI-first workflow.


    ## Authentication

    All endpoints require `Authorization: Bearer <token>`. Two token types:

    - **Access token** — from `lazylocales login` or user session

    - **Project API token** — prefixed `ll_`, created in project settings for
    CI/CD


    ## Workflow

    Translations are managed via the CLI using local AI translation with models
    like GPT-4o, Claude, Gemini, or Mistral. The dashboard provides read-only
    monitoring and project configuration.


    ## Error Format

    All errors follow: `{ "error": { "code": "ERROR_CODE", "message": "..." } }`
servers:
  - url: https://{deployment}.convex.site
    description: Convex deployment
    variables:
      deployment:
        default: your-deployment
        description: Your Convex deployment name
security: []
tags:
  - name: Projects
    description: Project management endpoints
  - name: Source Files
    description: Source locale file operations
  - name: Locales
    description: Locale status and management
  - name: CLI
    description: CLI config and reporting endpoints
  - name: API Tokens
    description: API token management
paths:
  /v1/projects/{projectId}/tokens:
    post:
      tags:
        - API Tokens
      description: >-
        Create a new API token. The token value is returned once and cannot be
        retrieved again.
      parameters:
        - schema:
            type: string
            minLength: 1
            example: proj_abc123
          required: true
          name: projectId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                label:
                  type: string
                  minLength: 1
                  example: CI Pipeline
                permissions:
                  type: string
                  enum:
                    - read
                    - read_write
              required:
                - label
                - permissions
      responses:
        '201':
          description: Token created successfully. The token value is shown only once.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTokenResponse'
components:
  schemas:
    CreateTokenResponse:
      allOf:
        - $ref: '#/components/schemas/ApiToken'
        - type: object
          properties:
            token:
              type: string
              example: ll_xxxxxxxx
          required:
            - token
    ApiToken:
      type: object
      properties:
        tokenId:
          type: string
          example: tok_abc
        tokenPrefix:
          type: string
          nullable: true
          example: ll_xxxxxxxx
          description: >-
            First 10 characters of the token for identification (only shown in
            list view)
        label:
          type: string
          example: CI Pipeline
        permissions:
          type: string
          enum:
            - read
            - read_write
        lastUsedAt:
          type: number
          nullable: true
          example: 1739712000000
        createdAt:
          type: number
          example: 1739712000000
      required:
        - tokenId
        - tokenPrefix
        - label
        - permissions
        - lastUsedAt
        - createdAt

````