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

# Google Vertex AI proxy

> `action` is `generateContent` or `streamGenerateContent`. Send your
Google OAuth token in `Authorization: Bearer`. Authenticate to
Blindsight with `X-API-Key` (permission `runtime:scan`). The proxy
routes to `https://{location}-aiplatform.googleapis.com`.




## OpenAPI

````yaml /api-reference/openapi-runtime-security.yaml post /api/runtime-security/proxy/vertex/v1/projects/{project}/locations/{location}/publishers/{publisher}/models/{model}:{action}
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, Anthropic, Gemini,
        Vertex and Bedrock APIs; swap the SDK's `base_url` to enable scanning
        at the network boundary.
      * **Tool-call scan**, a check of agent tool arguments before execution.

    **Authentication.** Send a Blindsight API key in the `X-API-Key` header.

    Each key carries permissions, and an endpoint needs one of them:


    | Permission | Value | Endpoints |

    | --- | --- | --- |

    | Scan prompts and responses | `runtime:scan` | `/scan/*` and `/proxy/*` |

    | Read threat events | `runtime:events:read` | `/events`,
    `/events/{uuid}/explain`, `/analytics`, `/drift`, `/health`,
    `/service-status` and the other read endpoints |

    | Read firewall configuration | `runtime:config:read` | `GET /config` |

    | Write firewall configuration | `runtime:config:write` | `PUT /config` |


    `runtime:*` (Full Runtime Access) and full platform access cover all of

    them. A key acts as the person who created it and can never do more than

    that person can.


    All timestamps are UTC, ISO 8601, ending in `Z`, unless an endpoint says

    otherwise.


    See the Runtime Security guides 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://platform.blindsight.io
    description: Production
security:
  - ApiKeyAuth: []
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, Anthropic, Gemini,
      Vertex and Bedrock.
  - name: Configuration
    description: Workspace-scoped firewall settings.
  - name: Analytics
    description: Read-only analytics, event log, and drift endpoints.
  - name: Health
    description: Firewall readiness and service status.
paths:
  /api/runtime-security/proxy/vertex/v1/projects/{project}/locations/{location}/publishers/{publisher}/models/{model}:{action}:
    post:
      tags:
        - Proxy
      summary: Google Vertex AI proxy
      description: |
        `action` is `generateContent` or `streamGenerateContent`. Send your
        Google OAuth token in `Authorization: Bearer`. Authenticate to
        Blindsight with `X-API-Key` (permission `runtime:scan`). The proxy
        routes to `https://{location}-aiplatform.googleapis.com`.
      operationId: proxyVertex
      parameters:
        - $ref: '#/components/parameters/AppId'
        - name: project
          in: path
          required: true
          schema:
            type: string
        - name: location
          in: path
          required: true
          schema:
            type: string
          example: us-central1
        - name: publisher
          in: path
          required: true
          schema:
            type: string
          example: google
        - name: model
          in: path
          required: true
          schema:
            type: string
        - name: action
          in: path
          required: true
          schema:
            type: string
            enum:
              - generateContent
              - streamGenerateContent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The Vertex response, or an SSE stream
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
            text/event-stream:
              schema:
                type: string
        '400':
          description: Blocked, invalid body, or unsupported path
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '502':
          description: Upstream error, or the reply was blocked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleError'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  parameters:
    AppId:
      name: X-Blindsight-App-Id
      in: header
      required: false
      schema:
        type: string
      description: |
        UUID of the App the traffic belongs to. Optional: a key limited to one
        App, or a workspace with exactly one App, uses that App. A key limited
        to several Apps must send it.
  schemas:
    GoogleError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            status:
              type: string
              description: >-
                `blindsight_blocked`, `upstream_error`, `upstream_blocked` or
                `unsupported_endpoint`.
            message:
              type: string
  responses:
    Unauthorized:
      description: The API key is missing, invalid, expired or disabled
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
    Forbidden:
      description: >-
        The key does not have the permission this endpoint needs, or its owner
        no longer holds it
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
    Unavailable:
      description: The firewall is disabled or still starting
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Blindsight API key (`ak_...`). The permissions it needs are listed in
        the API description and on each operation: `runtime:scan` for scan and
        proxy routes, `runtime:events:read` for events, analytics, drift,
        health and service status, `runtime:config:read` to read the
        configuration and `runtime:config:write` to change it.

````

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