> ## 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.

# Scan Batch



## OpenAPI

````yaml /api-reference/openapi.json post /api/runtime-security/scan/batch
openapi: 3.1.0
info:
  title: Blindsight API
  version: 0.1.0
  description: >-
    The full Blindsight REST surface, generated from the running application.
    Replace the server host with your own deployment.


    For the Runtime Security integration surface (scan, proxy, tool calls) see
    the Runtime Security spec, which is hand written and carries worked
    examples.
servers:
  - url: https://api.your-blindsight.com
    description: Your Blindsight deployment
security: []
paths:
  /api/runtime-security/scan/batch:
    post:
      tags:
        - runtime-security
      summary: Scan Batch
      operationId: scan_batch_api_runtime_security_scan_batch_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScanBatchRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScanBatchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ScanBatchRequest:
      properties:
        items:
          items:
            $ref: '#/components/schemas/ScanBatchItem'
          type: array
          maxItems: 32
          minItems: 1
          title: Items
      type: object
      required:
        - items
      title: ScanBatchRequest
    ScanBatchResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/ScanResponse'
          type: array
          title: Results
      type: object
      required:
        - results
      title: ScanBatchResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ScanBatchItem:
      properties:
        text:
          type: string
          title: Text
          description: Prompt or LLM response text to scan.
        direction:
          type: string
          pattern: ^(input|output)$
          title: Direction
          default: input
        source_app:
          anyOf:
            - type: string
              maxLength: 128
            - type: 'null'
          title: Source App
        provider:
          anyOf:
            - type: string
              maxLength: 32
            - type: 'null'
          title: Provider
        model:
          anyOf:
            - type: string
              maxLength: 128
            - type: 'null'
          title: Model
        metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Metadata
      type: object
      required:
        - text
      title: ScanBatchItem
    ScanResponse:
      properties:
        uuid:
          type: string
          title: Uuid
        verdict:
          type: string
          title: Verdict
        injection:
          additionalProperties: true
          type: object
          title: Injection
        pii:
          additionalProperties: true
          type: object
          title: Pii
        untrusted:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Untrusted
        redacted_text:
          type: string
          title: Redacted Text
        blocked_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Blocked Reason
        latency_ms:
          type: integer
          title: Latency Ms
        text_length:
          type: integer
          title: Text Length
      type: object
      required:
        - uuid
        - verdict
        - injection
        - pii
        - redacted_text
        - latency_ms
        - text_length
      title: ScanResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````