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

# Resolve forge llmgateway subjects

> Read canonical policy contracts, definitions, revisions, ownership, and validate Rego modules.



## OpenAPI

````yaml /openapi/forge-api.yaml post /api/headless/v1/organizations/{organizationId}/llm-gateway/subjects/resolve
openapi: 3.0.3
info:
  title: Forge API
  version: 0.1.0
  description: >-
    Automate Forge inventory, investigations, findings, governance, fleet,
    policy, configuration, compliance, MCP, service-account, and audit
    workflows.
servers:
  - url: https://api.forge.ai
    description: Forge production API
security:
  - serviceAccountBearer: []
tags:
  - name: approvals
    description: MCP approvals
  - name: audit
    description: Audit
  - name: capabilities
    description: Capabilities
  - name: compliance
    description: Compliance
  - name: findings
    description: Findings
  - name: fleet
    description: Fleet
  - name: governance
    description: Governance
  - name: inventory
    description: Inventory
  - name: investigation
    description: Investigations
  - name: managed-config
    description: Managed configuration
  - name: mcp
    description: MCP sessions
  - name: mcp-registry
    description: MCP and skill registry
  - name: operations
    description: operations
  - name: policies
    description: Policies and violations
  - name: service-accounts
    description: Service accounts
  - name: settings
    description: Automation settings
paths:
  /api/headless/v1/organizations/{organizationId}/llm-gateway/subjects/resolve:
    post:
      tags:
        - policies
      summary: Resolve forge llmgateway subjects
      description: >-
        Read canonical policy contracts, definitions, revisions, ownership, and
        validate Rego modules.
      operationId: resolveHeadlessForgeLLMGatewaySubjects
      parameters:
        - $ref: '#/components/parameters/OrganizationId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForgeLLMGatewaySubjectResolutionRequest'
      responses:
        '200':
          description: Exact active organization-scoped subject resolutions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForgeLLMGatewaySubjectResolutionResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/Error'
components:
  parameters:
    OrganizationId:
      name: organizationId
      in: path
      required: true
      schema:
        type: string
  schemas:
    ForgeLLMGatewaySubjectResolutionRequest:
      type: object
      required:
        - subjects
      properties:
        subjects:
          type: array
          minItems: 1
          maxItems: 256
          items:
            $ref: '#/components/schemas/ForgeLLMGatewayReadableSubject'
    ForgeLLMGatewaySubjectResolutionResponse:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          maxItems: 256
          items:
            $ref: '#/components/schemas/ForgeLLMGatewayResolvedSubject'
    ForgeLLMGatewayReadableSubject:
      type: object
      required:
        - kind
        - name
      properties:
        kind:
          $ref: '#/components/schemas/ForgeLLMGatewaySubjectKind'
        name:
          type: string
          minLength: 1
          maxLength: 4096
          description: >-
            Exact readable selector. Use user email, group name, app name or
            slug, agent name, service-account name, or customer-tenant name or
            slug.
    ForgeLLMGatewayResolvedSubject:
      type: object
      required:
        - kind
        - name
        - subjectId
      properties:
        kind:
          $ref: '#/components/schemas/ForgeLLMGatewaySubjectKind'
        name:
          type: string
        subjectId:
          type: string
          description: >-
            Canonical organization-scoped subject identifier returned after
            readable resolution.
    MessageResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    ForgeLLMGatewaySubjectKind:
      type: string
      enum:
        - user
        - group
        - app
        - agent
        - service_account
        - customer_tenant
  responses:
    Error:
      description: Stable Forge error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageResponse'
  securitySchemes:
    serviceAccountBearer:
      type: http
      scheme: bearer
      bearerFormat: Forge service-account or delegated OAuth access token
      description: >-
        Enter a Forge service-account token or delegated OAuth access token.
        Mintlify adds the Bearer prefix.

````