Strix Run Logs API

Persisted engine logs and the diagnostics bundle of a self-hosted install.

GitHub OpenAPI

Operations 5

GET /metrics Get run metrics #
GET /llm-requests List LLM requests #
GET /run-logs List run logs #
GET /run-logs/diagnostics Download the diagnostics bundle #
GET /run-logs/{run_type}/{run_id} Read one run log #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/strix-ai:strix-ai-run-logs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

strix-ai-run-logs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Strix Run Logs API
  version: 1.0.0
  description: Public REST API for the Strix autonomous penetration testing platform. Manage scans, vulnerabilities, assets, schedules, API tokens, and webhooks. Intake-only workspaces can register repositories, manage domains, and manage or verify test users. Other operations return 403. Repository and domain responses in these workspaces omit scan, finding, and PR review fields.
servers:
- url: /api/v1
  description: Strix v1 API
security:
- BearerAuth: []
tags:
- name: Run Logs
  description: Persisted engine logs and the diagnostics bundle of a self-hosted install.
paths:
  /metrics:
    get:
      operationId: getRunMetrics
      summary: Get run metrics
      tags:
      - Run Logs
      description: 'Self-hosted installs only. Returns the run workload metrics in the Prometheus text exposition format: open runs by workload and state (waiting, active, paused, idle, released), the idle time of live chat workspaces, the sandbox cleanups by reason (idle, cancel, ceiling, reaper, budget, launch_failure, oom, evicted, lost, finished) and the CPU and memory in use per run sandbox, outer and inner container where the backend can tell them apart. The output holds no organization IDs, run IDs, targets, tokens or request content. Point a Prometheus scrape job at this path with the token as its bearer token. Hosted installs return 404.'
      security:
      - BearerAuth:
        - logs:read
      responses:
        '200':
          description: Prometheus text exposition.
          content:
            text/plain:
              schema:
                type: string
              example: '# HELP strix_run_state Open runs by workload and lifecycle state (waiting, active, paused, idle, released).

                # TYPE strix_run_state gauge

                strix_run_state{workload="chat",state="idle"} 1

                '
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: The caller is not an unrestricted organization admin.
        '404':
          description: Run metrics are not available on hosted installs.
  /llm-requests:
    get:
      operationId: listLlmRequests
      summary: List LLM requests
      tags:
      - Run Logs
      description: 'Self-hosted installs and hosted organizations that run on their own LLM keys; returns 404 elsewhere. Lists the LLM provider requests that the engine made for the runs of the authenticated organization, newest first. Each entry is one provider attempt: a success, a refusal, a timeout or one retry. An entry holds the provider request ID, the status code, the model, the latency, the token usage, the response headers as the provider sent them and the free-form provider details. An entry never holds a prompt or a completion. Raw request and response bodies are never stored. Hosted installs return 404.'
      security:
      - BearerAuth:
        - logs:read
      parameters:
      - name: id
        in: query
        description: Return only the attempt with this ID.
        schema:
          type: string
          format: uuid
      - name: q
        in: query
        description: Match the provider request ID, response ID, call ID, run ID, run name, model, provider, agent name, error type, error message, or a value in the response headers or details.
        schema:
          type: string
          maxLength: 200
      - name: outcome
        in: query
        description: Return only attempts with this outcome.
        schema:
          type: string
          enum:
          - success
          - error
      - name: run_type
        in: query
        description: Return only attempts of this run type. `app` is a dashboard call such as a generated title or a compliance narrative. `connection_test` is Settings → LLM Models → Test connection.
        schema:
          type: string
          enum:
          - scan
          - pr_review
          - chat
          - auth_check
          - asset_discovery
          - app
          - connection_test
      - name: run_id
        in: query
        description: Return only attempts of this run.
        schema:
          type: string
      - name: provider
        in: query
        description: Return only attempts to this provider.
        schema:
          type: string
      - name: model
        in: query
        description: Return only attempts with this model.
        schema:
          type: string
      - name: limit
        in: query
        description: Maximum number of attempts to return.
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      - name: offset
        in: query
        description: Number of attempts to skip before the first returned attempt. Ignored when `before` is set.
        schema:
          type: integer
          minimum: 0
          default: 0
      - name: before
        in: query
        description: ID of the last attempt of the previous page (`next_before`). The page continues after that attempt, so attempts that arrive between pages do not shift or repeat the results.
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: LLM provider attempts of the organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  entries:
                    type: array
                    items:
                      $ref: '#/components/schemas/LlmRequestEntry'
                  total:
                    type: integer
                    description: Attempts that match the filters.
                  total_unfiltered:
                    type: integer
                    description: Attempts of the organization before any filter.
                  providers:
                    type: array
                    items:
                      type: string
                    description: Distinct providers of the organization, for filter menus.
                  models:
                    type: array
                    items:
                      type: string
                    description: Distinct models of the organization, for filter menus.
                  retention_days:
                    type: integer
                    description: Days an attempt stays before the retention cron removes it (LLM_REQUEST_LOG_RETENTION_DAYS).
                  limit:
                    type: integer
                  offset:
                    type: integer
                  has_more:
                    type: boolean
                    description: True when another page exists after the last entry.
                  next_before:
                    type:
                    - string
                    - 'null'
                    format: uuid
                    description: Value for the `before` parameter of the next page. Null on the last page.
                required:
                - entries
                - total
                - total_unfiltered
                - retention_days
                - limit
                - offset
                - has_more
                - next_before
        '400':
          description: '`outcome` or `run_type` is not one of the listed values, or `id` or `before` is not a UUID.'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: The caller is not an unrestricted organization admin.
        '404':
          description: LLM requests are not available on hosted installs.
  /run-logs:
    get:
      operationId: listRunLogs
      summary: List run logs
      tags:
      - Run Logs
      description: Self-hosted installs only. Lists the persisted engine logs of pentests, PR reviews, chats and login verifications of the authenticated organization. Hosted installs return 404.
      security:
      - BearerAuth:
        - logs:read
      parameters:
      - name: run_type
        in: query
        description: Return only logs of this run type.
        schema:
          type: string
          enum:
          - scan
          - pr_review
          - chat
          - auth_check
      - name: q
        in: query
        description: Match the run title, run ID or repository.
        schema:
          type: string
      - name: limit
        in: query
        description: Maximum number of logs to return.
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      - name: offset
        in: query
        description: Number of logs to skip before the first returned log.
        schema:
          type: integer
          minimum: 0
          default: 0
      responses:
        '200':
          description: Run logs of the organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  availability:
                    type: object
                    properties:
                      state:
                        type: string
                        enum:
                        - ready
                        - not_configured
                        - unreadable
                      code:
                        type: string
                      message:
                        type: string
                    required:
                    - state
                  entries:
                    type: array
                    items:
                      $ref: '#/components/schemas/RunLogEntry'
                  total:
                    type: integer
                  total_unfiltered:
                    type: integer
                  warnings:
                    type: array
                    items:
                      type: string
                  retention_days:
                    type: integer
                  limit:
                    type: integer
                  offset:
                    type: integer
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: The caller is not an unrestricted organization admin.
        '404':
          description: Run logs are not available on hosted installs.
  /run-logs/diagnostics:
    get:
      operationId: downloadRunLogDiagnostics
      summary: Download the diagnostics bundle
      tags:
      - Run Logs
      description: Self-hosted installs only. Returns a ZIP archive with deployment diagnostics for support. Secrets are redacted.
      security:
      - BearerAuth:
        - logs:read
      responses:
        '200':
          description: A ZIP archive.
          headers:
            X-Diagnostics-Errors:
              description: Collectors that failed, when the bundle is incomplete.
              schema:
                type: string
          content:
            application/zip:
              schema:
                type: string
                format: binary
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: The caller is not an unrestricted organization admin.
        '404':
          description: Run logs are not available on hosted installs.
  /run-logs/{run_type}/{run_id}:
    get:
      operationId: getRunLog
      summary: Read one run log
      tags:
      - Run Logs
      description: Self-hosted installs only. Returns the tail of one run log of the authenticated organization. JSON holds at most 8 MiB, and `format=raw` or `download=1` holds at most 32 MiB. Secrets are redacted before the text leaves the server.
      security:
      - BearerAuth:
        - logs:read
      parameters:
      - name: run_type
        in: path
        required: true
        description: Type of the run that wrote the log.
        schema:
          type: string
          enum:
          - scan
          - pr_review
          - chat
          - auth_check
      - name: run_id
        in: path
        required: true
        description: Identifier of the run that wrote the log.
        schema:
          type: string
      - name: bytes
        in: query
        description: Size of the tail in the JSON response. The default is 524288 and the maximum is 8388608.
        schema:
          type: integer
          minimum: 1024
          maximum: 8388608
          default: 524288
      - name: format
        in: query
        description: Use `raw` for plain text instead of JSON.
        schema:
          type: string
          enum:
          - json
          - raw
          default: json
      - name: download
        in: query
        description: Set to `1` for a plain-text attachment.
        schema:
          type: string
          enum:
          - '1'
      responses:
        '200':
          description: The run log tail.
          content:
            application/json:
              schema:
                type: object
                properties:
                  run:
                    $ref: '#/components/schemas/RunLogRun'
                  text:
                    type: string
                  size_bytes:
                    type: integer
                  offset:
                    type: integer
                  truncated:
                    type: boolean
                  modified_at:
                    type: string
                    format: date-time
            text/plain:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: The caller is not an unrestricted organization admin.
        '404':
          description: The run or its log does not exist, or the install is hosted.
        '503':
          description: Run logs are not persisted or the directory cannot be read.
components:
  responses:
    Unauthorized:
      description: Missing or invalid API token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      properties:
        detail:
          type: string
          description: Human-readable explanation of the error.
        code:
          type: string
          description: Stable machine-readable error code. `insufficient_scope` means the token does not hold the scope that this endpoint requires.
        required_scope:
          $ref: '#/components/schemas/ApiV1Scope'
          description: Scope that the caller must add to the token. Returned with the `insufficient_scope` code.
        docs:
          type: string
          format: uri
          description: Documentation page that explains how to resolve the error.
        hint:
          type: string
          description: One instruction that resolves the error. For `insufficient_scope`, a CLI session gets the `strix cloud session scopes set full` or `strix cloud login --scope-profile full` command, and an API token gets the settings page where the user creates a token with the scope. When the owner's role cannot hold the scope, the hint asks for a role change instead.
      required:
      - detail
    ApiV1Scope:
      type: string
      enum:
      - scans:read
      - scans:write
      - vulnerabilities:read
      - vulnerabilities:write
      - dependencies:read
      - schedules:read
      - schedules:write
      - assets:read
      - assets:write
      - organizations:read
      - organizations:write
      - members:read
      - members:write
      - invitations:read
      - invitations:write
      - webhooks:read
      - webhooks:write
      - tokens:write
      - audit:read
      - pr_reviews:read
      - pr_reviews:write
      - connectors:read
      - connectors:write
      - knowledge:read
      - knowledge:write
      - uploads:write
      - integrations:read
      - integrations:write
      - chat:read
      - chat:write
      - scans:message
      - analytics:read
      - llm:read
      - llm:write
      - test_users:read
      - test_users:write
      - discovery:read
      - discovery:write
      - license:read
      - supply_chain:read
      - supply_chain:write
      - billing:read
      - billing:write
      - containers:read
      - containers:write
      - logs:read
    LlmRequestEntry:
      type: object
      description: One LLM provider attempt that the engine made. Holds provider metadata only.
      properties:
        id:
          type: string
          format: uuid
        run_type:
          type:
          - string
          - 'null'
          enum:
          - scan
          - pr_review
          - chat
          - auth_check
          - asset_discovery
          - app
          - connection_test
          - null
        run_id:
          type:
          - string
          - 'null'
        run_name:
          type:
          - string
          - 'null'
          description: The engine run name, which also names the run log.
        run_href:
          type:
          - string
          - 'null'
          description: Dashboard path of the run, when the run has a page.
        call_id:
          type: string
          description: The engine call ID, unique per attempt.
        route:
          type: string
          enum:
          - litellm
          - openai
        provider:
          type:
          - string
          - 'null'
          description: For example `anthropic`.
        model:
          type: string
        api_host:
          type:
          - string
          - 'null'
          description: Host of the provider endpoint.
        streaming:
          type: boolean
        outcome:
          type: string
          enum:
          - success
          - error
        status_code:
          type:
          - integer
          - 'null'
          description: HTTP status from the provider.
        provider_request_id:
          type:
          - string
          - 'null'
          description: The request ID that the provider assigned. Quote this ID to the provider support team.
        response_id:
          type:
          - string
          - 'null'
          description: The response ID from the provider body.
        error_type:
          type:
          - string
          - 'null'
          description: Exception class of a failed attempt.
        error_message:
          type:
          - string
          - 'null'
          description: Error text of a failed attempt. The engine redacts secrets before it records the text.
        started_at:
          type: string
          format: date-time
        finished_at:
          type: string
          format: date-time
        duration_ms:
          type: integer
        input_tokens:
          type:
          - integer
          - 'null'
        output_tokens:
          type:
          - integer
          - 'null'
        cached_input_tokens:
          type:
          - integer
          - 'null'
        total_tokens:
          type:
          - integer
          - 'null'
        cost_usd:
          type:
          - number
          - 'null'
        agent_id:
          type:
          - string
          - 'null'
        agent_name:
          type:
          - string
          - 'null'
        retry_attempt:
          type: integer
          description: 0 for the first attempt of a turn, then 1, 2 and so on for each retry.
        request_bytes:
          type:
          - integer
          - 'null'
          description: Size in bytes of the JSON request body that the SDK sent. Not the compressed size on the wire.
        response_bytes:
          type:
          - integer
          - 'null'
          description: Size in bytes of the JSON response body, or of the error body of a failed attempt.
        time_to_first_token_ms:
          type:
          - integer
          - 'null'
          description: Streaming attempts only. Time from the start of the request to the first stream event.
        finish_reason:
          type:
          - string
          - 'null'
          description: The stop reason from the provider, for example `stop`, `tool_calls`, `max_tokens` or `incomplete:max_output_tokens`.
        response_headers:
          type:
          - object
          - 'null'
          additionalProperties:
            type: string
          description: Response headers from the provider, by lower-case header name. Headers whose name looks like a credential (authorization, cookie, api-key, secret, signature, session) are removed. Values are redacted and cut at 512 characters. At most 64 headers are kept.
        details:
          type:
          - object
          - 'null'
          description: Free-form provider and SDK metadata beyond the typed fields, for example the raw usage object, the stop sequence, the service tier or the system fingerprint. Content-shaped and secret-shaped keys are removed before storage. Limited to 16 KiB.
      required:
      - id
      - call_id
      - route
      - model
      - streaming
      - outcome
      - started_at
      - finished_at
      - duration_ms
      - retry_attempt
    RunLogRun:
      type: object
      properties:
        run_type:
          type: string
          enum:
          - scan
          - pr_review
          - chat
          - auth_check
        run_id:
          type: string
        title:
          type: string
        status:
          type:
          - string
          - 'null'
        created_at:
          type:
          - string
          - 'null'
          format: date-time
        status_detail_code:
          type:
          - string
          - 'null'
          description: Qualifier on the status for pentests, for example budget_paused while a running pentest is parked at its cost limit.
        href:
          type:
          - string
          - 'null'
          description: Dashboard path of the run, when the run still exists.
        active:
          type: boolean
          description: True while the run is pending or running, so the log can still grow.
      required:
      - run_type
      - run_id
      - title
      - active
    RunLogEntry:
      allOf:
      - $ref: '#/components/schemas/RunLogRun'
      - type: object
        properties:
          file_name:
            type: string
          size_bytes:
            type: integer
          modified_at:
            type: string
            format: date-time
        required:
        - file_name
        - size_bytes
        - modified_at
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API token obtained from the Tokens endpoint or CLI device login. Include as `Authorization: Bearer <token>`. Requests made with a managed CLI session also include `X-Strix-Workspace: <organization_id>` to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.'
    StrixAuthorization:
      type: apiKey
      in: header
      name: X-Strix-Authorization
      description: 'API token for operations where the standard Authorization header carries a protocol credential. Include as `X-Strix-Authorization: Bearer <token>`.'