BrainstormRouter Approvals API

The approvals API from BrainstormRouter — 7 operation(s) for approvals.

Operations 7

GET /auth/approvals/pending List pending approval records (auto-expires past expiresAt) #
POST /auth/approvals/{id}/approve Approve a pending approval record #
POST /auth/approvals/{id}/reject Reject a pending approval record #
GET /v1/approvals/pending List pending approval requests for the tenant #
POST /v1/approvals/queue Submit a deferred action for human review #
POST /v1/approvals/{id}/approve Approve a pending request and execute its deferred action #
POST /v1/approvals/{id}/reject Reject a pending request without executing its action #

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/brainstormrouter-com:brainstormrouter-com-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

brainstormrouter-com-approvals-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: BrainstormRouter Approvals API
  version: 1.0.0
  description: 'Autonomous AI API Engine — multi-tenant gateway that intelligently routes

    AI traffic across providers with built-in memory, cost optimization, and

    autonomous background processing.


    All `/v1/*` endpoints require an API key via `Authorization: Bearer `.'
  contact:
    name: BrainstormRouter
    url: https://brainstormrouter.com
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
- url: https://api.brainstormrouter.com
  description: Production
security:
- BearerAuth: []
tags:
- name: Approvals
paths:
  /auth/approvals/pending:
    get:
      operationId: authApprovalsPending
      summary: List pending approval records (auto-expires past expiresAt)
      tags:
      - Approvals
      x-br-capability-id: auth.approvals.pending
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/approvals/{id}/approve:
    post:
      operationId: authApprovalsApprove
      summary: Approve a pending approval record
      tags:
      - Approvals
      x-br-capability-id: auth.approvals.approve
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                reviewerId:
                  type: string
                note:
                  type: string
              required: []
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /auth/approvals/{id}/reject:
    post:
      operationId: authApprovalsReject
      summary: Reject a pending approval record
      tags:
      - Approvals
      x-br-capability-id: auth.approvals.reject
      x-br-version: v1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                reviewerId:
                  type: string
                note:
                  type: string
              required: []
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - SupabaseJwt: []
  /v1/approvals/pending:
    get:
      operationId: systemApprovalsPending
      summary: List pending approval requests for the tenant
      tags:
      - Approvals
      x-br-capability-id: system.approvals.pending
      x-br-version: v1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/approvals/queue:
    post:
      operationId: systemApprovalsQueue
      summary: Submit a deferred action for human review
      tags:
      - Approvals
      x-br-capability-id: system.approvals.queue
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                type:
                  type: string
                  enum:
                  - mcp_tool_call
                  - memory_write
                  - budget_override
                  - tool_call
                  - custom
                requesterId:
                  type: string
                requesterType:
                  type: string
                  enum:
                  - agent
                  - user
                  - system
                summary:
                  type: string
                details:
                  type: object
                  propertyNames:
                    type: string
                  additionalProperties: {}
                action: {}
                expiryMs:
                  type: number
              required:
              - type
              - summary
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/approvals/{id}/approve:
    post:
      operationId: systemApprovalsApprove
      summary: Approve a pending request and execute its deferred action
      tags:
      - Approvals
      x-br-capability-id: system.approvals.approve
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                reviewerId:
                  type: string
                note:
                  type: string
                scope:
                  type: string
                  enum:
                  - exact
                  - tool
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
  /v1/approvals/{id}/reject:
    post:
      operationId: systemApprovalsReject
      summary: Reject a pending request without executing its action
      tags:
      - Approvals
      x-br-capability-id: system.approvals.reject
      x-br-version: v1
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: http://json-schema.org/draft-07/schema#
              type: object
              properties:
                reviewerId:
                  type: string
                note:
                  type: string
                scope:
                  type: string
                  enum:
                  - exact
                  - tool
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
      security:
      - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key (e.g. `br_live_...`)
    SupabaseJWT:
      type: http
      scheme: bearer
      description: Supabase JWT token (dashboard auth)