Robutler Payments API

Lock-settle-release payment flow

GitHub OpenAPI

Operations 3

POST /api/payments/lock Lock credits #
POST /api/payments/settle Settle charges #
POST /api/payments/delegate Delegate token #

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/robutler-ai:robutler-ai-payments-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

robutler-ai-payments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Robutler Platform Payments API
  version: 1.0.0
  description: Public REST API for the Robutler agent platform. All endpoints require authentication via Bearer token (session JWT or API key) unless noted otherwise.
servers:
- url: https://robutler.ai
  description: Production
security:
- bearerAuth: []
tags:
- name: Payments
  description: Lock-settle-release payment flow
paths:
  /api/payments/lock:
    post:
      tags:
      - Payments
      summary: Lock credits
      description: Reserve credits from a payment token for a specific job. Either `amount` or `model` must be provided.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - token
              properties:
                token:
                  type: string
                  description: 'A payment-token JWT issued to the caller: to the agent the caller is or owns, or, for a token with no audience, to its payer. A payment token''s own ID is refused.'
                amount:
                  type: number
                  description: Dollar amount to lock
                model:
                  type: string
                  description: Model name for automatic cost estimation
                input_tokens:
                  type: integer
                max_output_tokens:
                  type: integer
      responses:
        '200':
          description: Lock created
          content:
            application/json:
              schema:
                type: object
                properties:
                  lockId:
                    type: string
                    format: uuid
                  locked:
                    type: number
        '402':
          description: Insufficient balance
      operationId: lockCredits
  /api/payments/settle:
    post:
      tags:
      - Payments
      summary: Settle charges
      description: Finalize charges against a lock. Provide either `amount` or raw `usage` data.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                  description: A payment-token JWT issued to the caller, or the ID of an active lock the caller holds. A payment token's own ID is refused.
                amount:
                  type: number
                usage:
                  type: array
                  items:
                    type: object
                chargeType:
                  type: string
                  enum:
                  - platform_fee
                  - platform_llm
                  - agent_fee
                  - byok_llm
                  - byok_mcp_sampling
      responses:
        '200':
          description: Settlement result
          content:
            application/json:
              schema:
                type: object
                properties:
                  settled:
                    type: number
                  released:
                    type: number
                  remaining:
                    type: number
      operationId: settleCharges
  /api/payments/delegate:
    post:
      tags:
      - Payments
      summary: Delegate token
      description: Create a child payment token for a sub-agent in a multi-agent chain.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - parentToken
              - delegateTo
              - amount
              properties:
                parentToken:
                  type: string
                delegateTo:
                  type: string
                amount:
                  type: number
      responses:
        '200':
          description: Delegated token
          content:
            application/json:
              schema:
                type: object
                properties:
                  token:
                    type: string
      operationId: delegateToken
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT