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

# Mint a short-lived debug token

> Returns a signed token required to run a workflow with
`mode=debug` / `mode=ui-debug` on the public runner surface. The token
expires after a few minutes. Platform admins (callers allowed to read
every company) get a token that unlocks debug output for any workflow;
everyone else gets a token scoped to their own company.



## OpenAPI

````yaml https://openapi.production.reelevant.io/v1/render/workflow-api post /workflows/debug/token
openapi: 3.0.0
info:
  title: workflow-api
  version: 0.0.0
  description: |-
    # Errors
    | Error code | Message | HTTP status code | Payload |
    | :--- | :--- | :--- | :--- |
    | number | string | 404 |  |
servers:
  - url: https://api.reelevant.com/v2/
    description: production
security: []
paths:
  /workflows/debug/token:
    post:
      tags:
        - Runner
      summary: Mint a short-lived debug token
      description: |-
        Returns a signed token required to run a workflow with
        `mode=debug` / `mode=ui-debug` on the public runner surface. The token
        expires after a few minutes. Platform admins (callers allowed to read
        every company) get a token that unlocks debug output for any workflow;
        everyone else gets a token scoped to their own company.
      operationId: create-debug-token
      parameters: []
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      status:
                        type: string
                        enum:
                          - success
                    required:
                      - status
                    additionalProperties: false
                  - $ref: >-
                      #/components/schemas/InternalResponse_token_string_expiresAt_number
      security:
        - password_auth: []
components:
  schemas:
    InternalResponse_token_string_expiresAt_number:
      type: object
      properties:
        program:
          type: string
        version:
          type: string
        datetime:
          type: string
        status:
          type: string
        code:
          type: number
        message:
          type: string
        data:
          type: object
          properties:
            token:
              type: string
            expiresAt:
              type: number
          required:
            - token
            - expiresAt
          additionalProperties: false
      required:
        - program
        - version
        - datetime
        - status
        - message
        - data
      additionalProperties: false
  securitySchemes:
    password_auth:
      type: oauth2
      flows:
        password:
          tokenUrl: https://api.reelevant.com/v1/auth/token
          refreshUrl: https://api.reelevant.com/v1/auth/token
          scopes: {}

````