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

# Generate a Temporary Token

> Create a temporary access token that may be used to update a single Workboard record.



## OpenAPI

````yaml /api/openapi_legacy.json post /records/{record}/tokens
openapi: 3.1.0
info:
  title: FlowEQ - Legacy API
  description: FlowEQ Legacy REST API
  version: '1.0'
  contact:
    name: FlowEQ
    url: https://www.floweq.com
    email: support@floweq.com
servers:
  - url: https://next.floweq.com/api/v1
security:
  - bearerAuth: []
paths:
  /records/{record}/tokens:
    post:
      tags:
        - Records
      summary: Generate a Temporary Token
      description: >-
        Create a temporary access token that may be used to update a single
        Workboard record.
      parameters:
        - schema:
            type: string
            description: The Workboard record ID.
          required: true
          description: The Workboard record ID.
          name: record
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecordTokenRequest'
      responses:
        '201':
          description: Temporary record token created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordTokenResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Record not found
components:
  schemas:
    RecordTokenRequest:
      type: object
      properties:
        expires_in:
          type: integer
          maximum: 2592000
          description: >-
            Seconds until the token expires. Maximum 2,592,000 (30 days).
            Defaults to 86,400 (1 day).
    RecordTokenResponse:
      type: object
      properties:
        company_id:
          type: string
          description: Company ID associated with the token.
        companyId:
          type: string
          description: Alias for company_id.
        created_at:
          type: string
          description: ISO 8601 timestamp of token creation.
        expires_at:
          type: string
          description: ISO 8601 timestamp of token expiration.
        key:
          type: string
          description: Firestore document ID used as the token key.
        record_id:
          type: string
          description: The record ID this token grants access to.
        type:
          type: string
          enum:
            - record
          description: Token type identifier.
        user_id:
          type: string
          description: User ID that minted the token.
        userId:
          type: string
          description: Alias for user_id.
        createdAt:
          description: Firebase Timestamp of creation.
        token:
          type: string
          description: The signed JWT token string.
      required:
        - company_id
        - created_at
        - expires_at
        - key
        - record_id
        - type
        - user_id
        - token

````