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

# Read paginated run spans and live usage/cost totals

> Local telemetry remains available without Phoenix. Model input counts include cached tokens; reasoning is a subset of output. Unreported usage and unknown pricing remain unavailable. Wall time comes from the root span and does not sum overlapping child durations.

Requires the runs:read scope.

Accepts a scoped bearer token, vendor-verified run identity, or interactive owner session.



## OpenAPI

````yaml /openapi.yaml get /api/v1/runs/{runId}/telemetry
openapi: 3.1.0
info:
  title: Factorize API
  version: 1.0.0
  description: >-
    Versioned Factorize REST API. See the hosted docs for examples and OAuth
    discovery.
  x-dashboard-auth: >-
    Access-token and authorized-client management and trace replay operations
    require an interactive owner session; all other operations accept a suitably
    scoped bearer token or owner session.
servers:
  - url: https://app.factorize.sh
security:
  - bearerAuth: []
paths:
  /api/v1/runs/{runId}/telemetry:
    get:
      tags:
        - runs
      summary: Read paginated run spans and live usage/cost totals
      description: >-
        Local telemetry remains available without Phoenix. Model input counts
        include cached tokens; reasoning is a subset of output. Unreported usage
        and unknown pricing remain unavailable. Wall time comes from the root
        span and does not sum overlapping child durations.


        Requires the runs:read scope.


        Accepts a scoped bearer token, vendor-verified run identity, or
        interactive owner session.
      operationId: get_api_v1_runs_runId_telemetry
      parameters:
        - name: runId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
        - name: cursor
          in: query
          required: false
          schema:
            default: 0
            type: integer
            minimum: 0
            maximum: 1000000
        - name: limit
          in: query
          required: false
          schema:
            default: 25
            type: integer
            minimum: 1
            maximum: 50
      responses:
        '200':
          description: Telemetry page
          content:
            application/json:
              schema:
                type: object
                properties:
                  available:
                    type: boolean
                  traceId:
                    type:
                      - string
                      - 'null'
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        key:
                          type: string
                        traceId:
                          type: string
                        parentId:
                          type:
                            - string
                            - 'null'
                        kind:
                          type: string
                        name:
                          type: string
                        model:
                          type:
                            - string
                            - 'null'
                        status:
                          type: string
                          enum:
                            - running
                            - ok
                            - error
                            - canceled
                            - uncertain
                        startedAt:
                          type: string
                        endedAt:
                          type:
                            - string
                            - 'null'
                        durationMs:
                          type: number
                        usage:
                          type: object
                          properties:
                            input:
                              type:
                                - number
                                - 'null'
                            uncachedInput:
                              type:
                                - number
                                - 'null'
                            output:
                              type:
                                - number
                                - 'null'
                            cacheRead:
                              type:
                                - number
                                - 'null'
                            cacheWrite:
                              type:
                                - number
                                - 'null'
                            reasoning:
                              type:
                                - number
                                - 'null'
                            total:
                              type:
                                - number
                                - 'null'
                          required:
                            - input
                            - uncachedInput
                            - output
                            - cacheRead
                            - cacheWrite
                            - reasoning
                            - total
                          additionalProperties: false
                        costUsd:
                          type:
                            - number
                            - 'null'
                      required:
                        - id
                        - key
                        - traceId
                        - parentId
                        - kind
                        - name
                        - model
                        - status
                        - startedAt
                        - endedAt
                        - durationMs
                        - usage
                        - costUsd
                      additionalProperties: false
                  nextCursor:
                    anyOf:
                      - type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      - type: 'null'
                  phoenix:
                    type: object
                    properties:
                      url:
                        type:
                          - string
                          - 'null'
                      pending:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      sent:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      failed:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      canceled:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      lastError:
                        type:
                          - string
                          - 'null'
                    required:
                      - url
                      - pending
                      - sent
                      - failed
                      - canceled
                      - lastError
                    additionalProperties: false
                  summary:
                    type: object
                    properties:
                      durationMs:
                        type:
                          - number
                          - 'null'
                      modelCalls:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      toolCalls:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      unreportedCalls:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      unpricedCalls:
                        type: integer
                        minimum: -9007199254740991
                        maximum: 9007199254740991
                      usage:
                        type: object
                        properties:
                          input:
                            type:
                              - number
                              - 'null'
                          uncachedInput:
                            type:
                              - number
                              - 'null'
                          output:
                            type:
                              - number
                              - 'null'
                          cacheRead:
                            type:
                              - number
                              - 'null'
                          cacheWrite:
                            type:
                              - number
                              - 'null'
                          reasoning:
                            type:
                              - number
                              - 'null'
                          total:
                            type:
                              - number
                              - 'null'
                        required:
                          - input
                          - uncachedInput
                          - output
                          - cacheRead
                          - cacheWrite
                          - reasoning
                          - total
                        additionalProperties: false
                      costUsd:
                        type:
                          - number
                          - 'null'
                    required:
                      - durationMs
                      - modelCalls
                      - toolCalls
                      - unreportedCalls
                      - unpricedCalls
                      - usage
                      - costUsd
                    additionalProperties: false
                required:
                  - available
                  - traceId
                  - items
                  - nextCursor
                  - summary
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '409':
          $ref: '#/components/responses/Error409'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '503':
          $ref: '#/components/responses/Error503'
      security:
        - bearerAuth: []
        - vendorRunIdentity: []
          runIdentityHeader: []
        - cookieAuth: []
components:
  responses:
    Error400:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error401:
      description: Invalid or revoked credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error403:
      description: Missing scope or required owner session
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error404:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error409:
      description: Operation conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error429:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error500:
      description: Internal error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error503:
      description: Service unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth2
    vendorRunIdentity:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Fresh vendor-signed exe.dev WIF or Fly Machine OIDC token matching the
        provisioned active run. Must be combined with X-Factorize-Run-Id; a
        vendor token alone grants no access.
    runIdentityHeader:
      type: apiKey
      in: header
      name: X-Factorize-Run-Id
      description: >-
        Provisioned run UUID. Used only to locate the immutable vendor/VM
        binding; this header is not a credential. Scopes and tenant come from
        the server-side run snapshot.
    cookieAuth:
      type: apiKey
      in: cookie
      name: factorize_session

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.