ExchangeRebel Spend Governance API

The Spend Governance API from ExchangeRebel — 5 operation(s) for spend governance.

GitHub OpenAPI

Operations 5

POST /toll/spend/check Check a proposed agent spend against the agent's budget policy — the gate… #
POST /toll/spend/policy Create/update an agent spend policy (free). #
GET /toll/spend/policy/{agent_id} Current policy + live usage for an agent. #
GET /toll/spend/audit/{agent_id} Recent spend decisions for an agent (free) #
GET /toll/spend/health Service info + endpoint catalog #

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/exchangerebel-com:exchangerebel-com-spend-governance-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

exchangerebel-com-spend-governance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ExchangeRebel — pay-per-call APIs for AI agents (x402 on…
  version: 1.0.0
  contact:
    name: 'ExchangeRebel (operator: Rebel Data)'
    url: https://exchangerebel.com
    email: sound.money.investing@gmail.com
  x-guidance: 'All paid operations use x402 on Solana: call without payment to get a 402 challenge (SOL recipient + USDC token account + fresh memo), pay with the memo attached via the Solana Memo program, then retry with header X-Payment-Tx: <signature> and ?toll_memo=<memo>. Challenges are dual-version: the PAYMENT-REQUIRED header carries the x402 v2 PaymentRequired object and the response body carries the same challenge in x402 v1 form for compatibility. Free operations (security: []) include each service''s /health catalog with full response shapes. Prices in x-payment-info are USD per call unless the summary says otherwise (RPC is per 1,000-request block; Telegram provisioning is per bot-month; transcription is per minute of audio).'
  description: '67 data and utility APIs behind x402 tolls, settled in SOL or USDC on Solana. Call a paid endpoint without payment to receive a 402 x402 challenge (recipient + fresh memo), pay with the memo attached via the Solana Memo program, then retry with the X-Payment-Tx header and toll_memo query parameter. Free catalog/health endpoints are marked without x-payment-info. Full catalogs: GET /toll/discovery and each service''s /health.'
servers:
- url: https://exchangerebel.com
tags:
- name: Spend Governance
paths:
  /toll/spend/check:
    post:
      tags:
      - Spend Governance
      summary: Check a proposed agent spend against the agent's budget policy — the gate…
      responses:
        '200':
          description: Success. Response shape is documented in the service catalog (GET /health on the service).
          content:
            application/json:
              example:
                approved: true
                remaining_budget_cents: 9750
                policy_applied: active-check,per-tx-limit,daily_limit_cents,blocklist,category-allowlist
                inputs_summary:
                  policy_configured: true
                  checks_applied:
                  - active-check
                  - per-tx-limit
                  - daily_limit_cents
                  - blocklist
                  - category-allowlist
                  budget_windows_configured: 1
                  recipient_supplied: true
                  category: data
                  global_blocklist_checked: true
                paid_via: payai
                envelope:
                  v: 1
                  service: spend-governance
                  as_of: '2026-10-13T00:00:00Z'
                  source: agent spend policy + usage state (KV)
                  grade: derived
                  changes:
                    supported: false
        '402':
          description: 'Payment Required (x402). The PAYMENT-REQUIRED response header carries the x402 v2 PaymentRequired object (base64 JSON: scheme, CAIP-2 network, amount, asset, payTo, plus the bazaar discovery extension); the response body carries the same challenge in x402 v1 form for compatibility, naming the SOL recipient and USDC token account on Solana plus a fresh memo. To pay on this service''s rail: pay with the memo attached (Solana Memo program), then retry with header ''X-Payment-Tx: <transaction signature>'' and query parameter ''toll_memo=<memo>''.'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                agent_id:
                  type: string
                  description: string
                amount_usd_cents:
                  type: integer
                  description: integer
                recipient:
                  type: string
                  description: string (optional)
                category:
                  type: string
                  description: string (optional)
                run_id:
                  type: string
                  description: string (optional)
      x-payment-info:
        protocols:
        - x402
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
      security:
      - x402Payment: []
      operationId: postTollSpendCheck
      x-operation-id-source: derived
  /toll/spend/policy:
    post:
      tags:
      - Spend Governance
      summary: Create/update an agent spend policy (free).
      responses:
        '200':
          description: Success. Response shape is documented in the service catalog (GET /health on the service).
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                agent_id:
                  type: string
                  description: string
                per_tx_limit_cents:
                  type: integer
                  description: integer
                daily_limit_cents:
                  type: integer
                  description: integer
                weekly_limit_cents:
                  type: integer
                  description: integer
                monthly_limit_cents:
                  type: integer
                  description: integer
                per_run_limit_cents:
                  type: integer
                  description: integer
                allowed_categories:
                  type: array
                  description: array
                  items:
                    type: string
                blocked_recipients:
                  type: array
                  description: array
                  items:
                    type: string
                active:
                  type: boolean
                  description: boolean
      security: []
      operationId: postTollSpendPolicy
      x-operation-id-source: derived
  /toll/spend/policy/{agent_id}:
    get:
      tags:
      - Spend Governance
      summary: Current policy + live usage for an agent.
      responses:
        '200':
          description: Success. Response shape is documented in the service catalog (GET /health on the service).
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
        description: Agent id
      security: []
      operationId: getTollSpendPolicyByAgentId
      x-operation-id-source: derived
  /toll/spend/audit/{agent_id}:
    get:
      tags:
      - Spend Governance
      summary: Recent spend decisions for an agent (free)
      responses:
        '200':
          description: Success. Response shape is documented in the service catalog (GET /health on the service).
      parameters:
      - name: agent_id
        in: path
        required: true
        schema:
          type: string
        description: Agent id
      security: []
      operationId: getTollSpendAuditByAgentId
      x-operation-id-source: derived
  /toll/spend/health:
    get:
      tags:
      - Spend Governance
      summary: Service info + endpoint catalog
      responses:
        '200':
          description: Success. Response shape is documented in the service catalog (GET /health on the service).
      security: []
      operationId: getTollSpendHealth
      x-operation-id-source: derived
components:
  securitySchemes:
    x402Payment:
      type: apiKey
      in: header
      name: X-Payment-Tx
      description: 'x402 toll payment proof: the Solana transaction signature of a payment carrying the memo from the 402 challenge; send together with ?toll_memo=<memo>. Payment itself is made on-chain in SOL or USDC to the recipient named in the challenge.'