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

# Create an API token



## OpenAPI

````yaml /openapi.json post /api/v1/users/me/tokens
openapi: 3.1.0
info:
  title: NMotion Data Platform API (developer)
  version: 0.1.0
  description: >-
    The stable HTTP surface of the NMotion data platform for CLI, SDK, and
    automation clients.
servers:
  - url: https://platform.neural-motion.org
    description: Production
  - url: https://dev.platform.neural-motion.org
    description: Dev channel
security: []
tags:
  - name: Platform
    description: Version and service metadata.
  - name: Catalog
    description: Browse the public dataset catalog.
  - name: Users and tokens
    description: Identity and personal access tokens.
  - name: Projects
    description: Navigate organizations and projects.
  - name: Project datasets
    description: Datasets, manifests, and episodes inside a project.
  - name: Imports
    description: Bring data into a project.
  - name: Exports
    description: Derived dataset versions and export jobs.
paths:
  /api/v1/users/me/tokens:
    post:
      tags:
        - Users and tokens
      summary: Create an API token
      operationId: create_user_api_token_api_v1_users_me_tokens_post
      parameters:
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkspaceUserApiTokenCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceUserApiTokenCreatedResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ClerkSession: []
components:
  schemas:
    WorkspaceUserApiTokenCreate:
      properties:
        name:
          type: string
          maxLength: 120
          minLength: 1
          title: Name
        scopes:
          items:
            type: string
          type: array
          title: Scopes
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
      type: object
      required:
        - name
      title: WorkspaceUserApiTokenCreate
    WorkspaceUserApiTokenCreatedResponse:
      properties:
        item:
          $ref: '#/components/schemas/WorkspaceUserApiToken'
        token:
          type: string
          title: Token
      type: object
      required:
        - item
        - token
      title: WorkspaceUserApiTokenCreatedResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkspaceUserApiToken:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        preview:
          type: string
          title: Preview
        prefix:
          type: string
          title: Prefix
        suffix:
          type: string
          title: Suffix
        scopes:
          items:
            type: string
          type: array
          title: Scopes
        created_at:
          type: string
          title: Created At
        last_used_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Used At
        revoked_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Revoked At
        expires_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Expires At
      type: object
      required:
        - id
        - name
        - preview
        - prefix
        - suffix
        - created_at
      title: WorkspaceUserApiToken
    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:
    ClerkSession:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Clerk session JWT only. Personal access tokens (nmp_) are rejected with
        403 — used for token management and other human-session mutations.

````