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

# Read current workspace settings



## OpenAPI

````yaml /api-reference/openapi-runtime-security.yaml get /api/runtime-security/config
openapi: 3.1.0
info:
  title: Blindsight Runtime Security API
  version: 1.0.0
  summary: LLM firewall — prompt-injection, PII, and agent tool-call protection.
  description: |
    Drop-in firewall for LLM traffic. Three integration modes:

      * **Scan API** — explicit `/scan/input` and `/scan/output` calls.
      * **Reverse proxy** — wire-compatible with the OpenAI and Anthropic
        SDKs; swap the SDK's `base_url` to enable scanning at the network
        boundary.
      * **Tool-call scan** — sub-millisecond regex check on agent tool
        arguments before execution.

    See `runtime-security-guide.md` for prose docs, SDK examples, and a
    walk-through of verdicts and configuration.
  contact:
    name: Blindsight Support
    url: https://blindsight.example.com/support
  license:
    name: Proprietary
servers:
  - url: https://api.blindsight.example.com
    description: Production
  - url: https://api.staging.blindsight.example.com
    description: Staging
security:
  - ApiKeyAuth: []
  - BlindsightKeyAuth: []
  - SessionCookieAuth: []
tags:
  - name: Scan
    description: Single-call scan endpoints for input, output, batch, and tool calls.
  - name: Proxy
    description: Wire-compatible reverse-proxy endpoints for OpenAI and Anthropic.
  - name: Configuration
    description: Workspace-scoped firewall settings.
  - name: Analytics
    description: Read-only analytics, event log, and drift dashboard endpoints.
  - name: Health
    description: Liveness and ECS service status.
paths:
  /api/runtime-security/config:
    get:
      tags:
        - Configuration
      summary: Read current workspace settings
      operationId: getConfig
      responses:
        '200':
          description: Current settings
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuntimeSecurityConfig'
components:
  schemas:
    RuntimeSecurityConfig:
      type: object
      properties:
        enabled:
          type: boolean
          default: true
        injection_model:
          type: string
          description: Hugging Face model id for the injection classifier.
        block_threshold:
          type: number
          minimum: 0
          maximum: 1
          default: 0.85
        redact_threshold:
          type: number
          minimum: 0
          maximum: 1
          default: 0.55
        max_text_length:
          type: integer
          minimum: 256
          maximum: 200000
          default: 32000
        log_events:
          type: boolean
          default: true
        pre_prompt:
          type: string
          maxLength: 20000
          nullable: true
        pre_prompt_placement:
          type: string
          enum:
            - prepend
            - append
            - sandwich
          default: prepend
        agentic:
          $ref: '#/components/schemas/AgenticPolicyConfig'
    AgenticPolicyConfig:
      type: object
      properties:
        tool_allowlist:
          type: array
          items:
            type: string
        tool_denylist:
          type: array
          items:
            type: string
        max_arg_bytes:
          type: integer
          minimum: 256
          maximum: 1000000
          default: 32000
        allow_private_network:
          type: boolean
          default: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Blindsight workspace API key (`ak_live_…`). Use this header for the
        scan API and the OpenAI proxy routes. The required permission
        scope is `runtime_security.scan` for scan endpoints,
        `runtime_security.view` for read-only analytics, and
        `runtime_security.manage` for configuration changes.
    BlindsightKeyAuth:
      type: apiKey
      in: header
      name: X-Blindsight-Key
      description: |
        Alternative header for Anthropic proxy callers — `x-api-key` is
        reserved for the upstream provider on those routes. Accepts an
        Blindsight API key or `Bearer <jwt>`.
    SessionCookieAuth:
      type: apiKey
      in: cookie
      name: blindsight_session
      description: In-app dashboard session — for browser callers only.

````