Forge Approvals API

MCP approvals

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 8

GET /api/headless/v1/organizations/{organizationId}/approvals List MCP approvals #
GET /api/headless/v1/organizations/{organizationId}/approvals/mine List my MCP approvals #
POST /api/headless/v1/organizations/{organizationId}/approvals/mcp Create MCP approval #
GET /api/headless/v1/organizations/{organizationId}/approvals/{approvalId} Get MCP approval #
POST /api/headless/v1/organizations/{organizationId}/approvals/{approvalId}/approve Approve MCP approval #
POST /api/headless/v1/organizations/{organizationId}/approvals/{approvalId}/deny Deny MCP approval #
PATCH /api/headless/v1/organizations/{organizationId}/approvals/{approvalId}/mcp/policy-suggestions/{suggestionId} Update MCP approval policy suggestion #
POST /api/headless/v1/organizations/{organizationId}/approvals/{approvalId}/mcp/scanner-runs Run MCP approval scanner #

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/forge:forge-approvals-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

forge-approvals-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Forge Approvals 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
paths:
  /api/headless/v1/organizations/{organizationId}/approvals:
    get:
      operationId: listHeadlessMcpApprovals
      tags:
      - Approvals
      x-forge-audience: public_headless
      x-forge-capability-id: mcp_approvals.read
      x-forge-required-permission: mcp_approvals.review.view
      x-forge-required-scopes:
      - mcp_approvals:read
      x-forge-risk-tier: sensitive_read
      x-forge-stability: beta
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: query
        in: query
        schema:
          type: string
      - name: status
        in: query
        schema:
          type: string
      - name: requesterConsoleUserId
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
      responses:
        '200':
          description: MCP approvals visible to the current reviewer.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessProxyResponse'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
      summary: List MCP approvals
      description: List and inspect MCP approval requests, scanner results, issues, and policy suggestions.
  /api/headless/v1/organizations/{organizationId}/approvals/mine:
    get:
      operationId: listHeadlessMyMcpApprovals
      tags:
      - Approvals
      x-forge-audience: public_headless
      x-forge-capability-id: mcp_approvals.read_own_or_review
      x-forge-required-permission: mcp_approvals.request.view
      x-forge-required-scopes:
      - mcp_approvals:read
      x-forge-risk-tier: sensitive_read
      x-forge-stability: beta
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: query
        in: query
        schema:
          type: string
      - name: status
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
      responses:
        '200':
          description: MCP approvals requested by the current actor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessProxyResponse'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
      summary: List my MCP approvals
      description: List the caller's MCP approval requests and inspect an approval when the caller owns it or has review access.
  /api/headless/v1/organizations/{organizationId}/approvals/mcp:
    post:
      operationId: createHeadlessMcpApproval
      tags:
      - Approvals
      x-forge-audience: public_headless
      x-forge-capability-id: mcp_approvals.request
      x-forge-required-permission: mcp_approvals.request.create
      x-forge-required-scopes:
      - mcp_approvals:write
      x-forge-risk-tier: sensitive_write
      x-forge-stability: beta
      x-forge-idempotency-required: true
      x-forge-reason-required: true
      x-forge-confirmation-required: true
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              required:
              - businessUseCase
              - reason
              - idempotencyKey
              - confirm
              anyOf:
              - required:
                - mcpServerId
              - required:
                - registryItemId
              - required:
                - proposedServer
              properties:
                mcpServerId:
                  type: string
                registryItemId:
                  type: string
                proposedServer:
                  type: object
                  additionalProperties: false
                  required:
                  - name
                  - locator
                  properties:
                    name:
                      type: string
                    locator:
                      type: string
                      format: uri
                    transport:
                      type: string
                      enum:
                      - streamable_http
                      - http
                      - sse
                businessUseCase:
                  type: string
                urgency:
                  type: string
                targetApp:
                  type: string
                targetProjectRef:
                  type: string
                targetTeam:
                  type: string
                requestedExpiryAt:
                  type: string
                  format: date-time
                requestedSubjects:
                  type: array
                  items:
                    type: object
                    additionalProperties: false
                    required:
                    - subjectKind
                    properties:
                      subjectKind:
                        type: string
                      directoryUserId:
                        type: string
                      directoryGroupId:
                        type: string
                      teamRef:
                        type: string
                requestedAgents:
                  type: array
                  items:
                    type: object
                    additionalProperties: false
                    properties:
                      sourceAdapterKey:
                        type: string
                      agentId:
                        type: string
                      appRef:
                        type: string
                runScannerNow:
                  type: boolean
                reason:
                  type: string
                idempotencyKey:
                  type: string
                confirm:
                  type: boolean
      responses:
        '201':
          description: Created MCP approval request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessProxyResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
      summary: Create MCP approval
      description: Create MCP server approval requests with requested subjects, agents, and optional scanner kickoff.
  /api/headless/v1/organizations/{organizationId}/approvals/{approvalId}:
    get:
      operationId: getHeadlessMcpApproval
      tags:
      - Approvals
      x-forge-audience: public_headless
      x-forge-capability-id: mcp_approvals.read_own_or_review
      x-forge-required-permission: mcp_approvals.request.view
      x-forge-required-scopes:
      - mcp_approvals:read
      x-forge-risk-tier: sensitive_read
      x-forge-stability: beta
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: approvalId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: MCP approval detail.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessProxyResponse'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
      summary: Get MCP approval
      description: List the caller's MCP approval requests and inspect an approval when the caller owns it or has review access.
  /api/headless/v1/organizations/{organizationId}/approvals/{approvalId}/approve:
    post:
      operationId: approveHeadlessMcpApproval
      tags:
      - Approvals
      x-forge-audience: public_headless
      x-forge-capability-id: mcp_approvals.manage
      x-forge-required-permission: mcp_approvals.review.manage
      x-forge-required-scopes:
      - mcp_approvals:write
      x-forge-risk-tier: sensitive_write
      x-forge-stability: beta
      x-forge-idempotency-required: true
      x-forge-reason-required: true
      x-forge-confirmation-required: true
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: approvalId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HeadlessSafetyFields'
      responses:
        '200':
          description: Approved MCP approval.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessProxyResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
      summary: Approve MCP approval
      description: Review MCP approval requests, policy suggestions, and scanner evidence with audit metadata.
  /api/headless/v1/organizations/{organizationId}/approvals/{approvalId}/deny:
    post:
      operationId: denyHeadlessMcpApproval
      tags:
      - Approvals
      x-forge-audience: public_headless
      x-forge-capability-id: mcp_approvals.manage
      x-forge-required-permission: mcp_approvals.review.manage
      x-forge-required-scopes:
      - mcp_approvals:write
      x-forge-risk-tier: sensitive_write
      x-forge-stability: beta
      x-forge-idempotency-required: true
      x-forge-reason-required: true
      x-forge-confirmation-required: true
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: approvalId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/HeadlessSafetyFields'
              - type: object
                properties:
                  justification:
                    type: string
      responses:
        '200':
          description: Denied MCP approval.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessProxyResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
      summary: Deny MCP approval
      description: Review MCP approval requests, policy suggestions, and scanner evidence with audit metadata.
  /api/headless/v1/organizations/{organizationId}/approvals/{approvalId}/mcp/policy-suggestions/{suggestionId}:
    patch:
      operationId: updateHeadlessMcpApprovalPolicySuggestion
      tags:
      - Approvals
      x-forge-audience: public_headless
      x-forge-capability-id: mcp_approvals.manage
      x-forge-required-permission: mcp_approvals.review.manage
      x-forge-required-scopes:
      - mcp_approvals:write
      x-forge-risk-tier: sensitive_write
      x-forge-stability: beta
      x-forge-idempotency-required: true
      x-forge-reason-required: true
      x-forge-confirmation-required: true
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: approvalId
        in: path
        required: true
        schema:
          type: string
      - name: suggestionId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/HeadlessSafetyFields'
              - type: object
                required:
                - suggestionPayload
                properties:
                  suggestionPayload:
                    type: object
                    additionalProperties: true
      responses:
        '200':
          description: Updated MCP approval policy suggestion.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessProxyResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
      summary: Update MCP approval policy suggestion
      description: Review MCP approval requests, policy suggestions, and scanner evidence with audit metadata.
  /api/headless/v1/organizations/{organizationId}/approvals/{approvalId}/mcp/scanner-runs:
    post:
      operationId: runHeadlessMcpApprovalScanner
      tags:
      - Approvals
      x-forge-audience: public_headless
      x-forge-capability-id: mcp_approvals.manage
      x-forge-required-permission: mcp_approvals.review.manage
      x-forge-required-scopes:
      - mcp_approvals:write
      x-forge-risk-tier: sensitive_write
      x-forge-stability: beta
      x-forge-idempotency-required: true
      x-forge-reason-required: true
      x-forge-confirmation-required: true
      parameters:
      - $ref: '#/components/parameters/OrganizationId'
      - name: approvalId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/HeadlessSafetyFields'
              - type: object
                properties:
                  directoryUserIds:
                    type: array
                    items:
                      type: string
      responses:
        '201':
          description: Created MCP approval scanner run.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeadlessProxyResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
      summary: Run MCP approval scanner
      description: Review MCP approval requests, policy suggestions, and scanner evidence with audit metadata.
components:
  parameters:
    OrganizationId:
      name: organizationId
      in: path
      required: true
      schema:
        type: string
  schemas:
    HeadlessSafetyFields:
      type: object
      required:
      - reason
      - idempotencyKey
      - confirm
      properties:
        reason:
          type: string
        idempotencyKey:
          type: string
        dryRun:
          type: boolean
        confirm:
          type: boolean
    MessageResponse:
      type: object
      required:
      - message
      properties:
        message:
          type: string
    HeadlessProxyResponse:
      type: object
      additionalProperties: true
  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.
x-forge-audience: public_headless
x-forge-stability: beta