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

# Issue an app-scoped offline bearer token

> Issues a short-lived, app-scoped bearer token using the app API key alone — no user session required. Intended for cron jobs and background workers that operate outside a user iframe. The token expires after one hour; re-mint it from the API key on expiry.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/token
openapi: 3.0.0
info:
  contact: {}
  title: Assembly API
  version: 0.0.1
servers:
  - url: https://api.assembly.com
security: []
paths:
  /v1/token:
    post:
      tags:
        - Token
      summary: Issue an app-scoped offline bearer token
      description: >-
        Issues a short-lived, app-scoped bearer token using the app API key
        alone — no user session required. Intended for cron jobs and background
        workers that operate outside a user iframe. The token expires after one
        hour; re-mint it from the API key on expiry.
      operationId: offline-token-issue
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/offline.IssueResponse'
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: App API key required
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Missing or invalid API key
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Unexpected server error
      security:
        - APIKeyHeader: []
components:
  schemas:
    offline.IssueResponse:
      properties:
        token:
          description: Token is an app-scoped bearer token for use in subsequent API calls.
          type: string
        tokenExpiresAt:
          description: >-
            TokenExpiresAt is the Unix timestamp (seconds) when the bearer token
            expires.
          type: integer
      type: object
    dispatcher.Error:
      properties:
        code:
          type: string
        data: {}
        message:
          type: string
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-KEY
      type: apiKey

````