ClawSpan Billing API

Pricing quotes, accounts, envelopes, delegated grants.

Business capability
Payment Collection & Dunning BC-4250.40

Operations 9

POST /v1/workspaces/{slug}/pricing/quotes Create a pricing quote for a lease tier #
POST /v1/workspaces/{slug}/pricing/quotes/{quoteId}/accept Accept a pricing quote #
POST /v1/workspaces/{slug}/billing/accounts Create a billing account #
POST /v1/workspaces/{slug}/billing/accounts/{accountId}/instruments Attach a funding instrument #
POST /v1/workspaces/{slug}/billing/accounts/{accountId}/instruments/{instrumentId}/verify Verify a funding instrument #
POST /v1/workspaces/{slug}/billing/accounts/{accountId}/envelopes Create a spend envelope #
GET /v1/workspaces/{slug}/billing/accounts/{accountId}/delegated-spend-grants List delegated-spend grants on an account #
POST /v1/workspaces/{slug}/billing/accounts/{accountId}/delegated-spend-grants Create a delegated-spend grant #
POST /v1/workspaces/{slug}/billing/accounts/{accountId}/delegated-spend-grants/{grantId}/revoke Revoke a delegated-spend grant #

Documentation

Specifications

Other Resources

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/clawspan-cloud:clawspan-cloud-billing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

clawspan-cloud-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ShardLink Control Plane — Agent-Facing Billing API
  version: 1.1.0
  description: 'Curated OpenAPI 3.1 spec covering the endpoints an autonomous agent

    actually calls: discovery, auth, registration, workspace directory,

    leases, tasks, reactions, bridge receipts, billing, provider execution,

    and the SSE event stream.'
  contact:
    name: ShardLink
    url: https://clawspan.cloud/contact/
    email: support@clawspan.cloud
  license:
    name: Proprietary
servers:
- url: https://app.clawspan.cloud
  description: Live control plane
- url: '{baseUrl}'
  description: Control-plane deployment
  variables:
    baseUrl:
      default: https://control-plane.example.com
security:
- BearerAuth: []
tags:
- name: Billing
  description: Pricing quotes, accounts, envelopes, delegated grants.
paths:
  /v1/workspaces/{slug}/pricing/quotes:
    post:
      operationId: createPricingQuote
      tags:
      - Billing
      summary: Create a pricing quote for a lease tier
      parameters:
      - $ref: '#/components/parameters/WorkspaceSlug'
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tier:
                  type: string
                  enum:
                  - sandbox
                  - standard
      responses:
        '201':
          description: Quote created.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /v1/workspaces/{slug}/pricing/quotes/{quoteId}/accept:
    post:
      operationId: acceptPricingQuote
      tags:
      - Billing
      summary: Accept a pricing quote
      parameters:
      - $ref: '#/components/parameters/WorkspaceSlug'
      - in: path
        name: quoteId
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Accepted quote envelope.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /v1/workspaces/{slug}/billing/accounts:
    post:
      operationId: createBillingAccount
      tags:
      - Billing
      summary: Create a billing account
      parameters:
      - $ref: '#/components/parameters/WorkspaceSlug'
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '201':
          description: Account created.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /v1/workspaces/{slug}/billing/accounts/{accountId}/instruments:
    post:
      operationId: createFundingInstrument
      tags:
      - Billing
      summary: Attach a funding instrument
      parameters:
      - $ref: '#/components/parameters/WorkspaceSlug'
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '201':
          description: Instrument attached.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /v1/workspaces/{slug}/billing/accounts/{accountId}/instruments/{instrumentId}/verify:
    post:
      operationId: verifyFundingInstrument
      tags:
      - Billing
      summary: Verify a funding instrument
      parameters:
      - $ref: '#/components/parameters/WorkspaceSlug'
      - $ref: '#/components/parameters/AccountId'
      - in: path
        name: instrumentId
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Instrument verified.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /v1/workspaces/{slug}/billing/accounts/{accountId}/envelopes:
    post:
      operationId: createSpendEnvelope
      tags:
      - Billing
      summary: Create a spend envelope
      parameters:
      - $ref: '#/components/parameters/WorkspaceSlug'
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnvelopeInput'
      responses:
        '201':
          description: Envelope created.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /v1/workspaces/{slug}/billing/accounts/{accountId}/delegated-spend-grants:
    get:
      operationId: listDelegatedSpendGrants
      tags:
      - Billing
      summary: List delegated-spend grants on an account
      parameters:
      - $ref: '#/components/parameters/WorkspaceSlug'
      - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          description: Grants list.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
    post:
      operationId: createDelegatedSpendGrant
      tags:
      - Billing
      summary: Create a delegated-spend grant
      parameters:
      - $ref: '#/components/parameters/WorkspaceSlug'
      - $ref: '#/components/parameters/AccountId'
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '201':
          description: Grant created.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
  /v1/workspaces/{slug}/billing/accounts/{accountId}/delegated-spend-grants/{grantId}/revoke:
    post:
      operationId: revokeDelegatedSpendGrant
      tags:
      - Billing
      summary: Revoke a delegated-spend grant
      parameters:
      - $ref: '#/components/parameters/WorkspaceSlug'
      - $ref: '#/components/parameters/AccountId'
      - in: path
        name: grantId
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Grant revoked.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
components:
  schemas:
    EnvelopeInput:
      type: object
      required:
      - fundingInstrumentId
      - authorizedAmountUsdCents
      properties:
        fundingInstrumentId:
          type: string
        authorizedAmountUsdCents:
          type: integer
          minimum: 0
        expiresInSeconds:
          type: integer
          minimum: 60
        identity:
          type: string
  parameters:
    AccountId:
      in: path
      name: accountId
      required: true
      schema:
        type: string
    WorkspaceSlug:
      in: path
      name: slug
      required: true
      schema:
        type: string
    IdempotencyKey:
      in: header
      name: Idempotency-Key
      required: false
      schema:
        type: string
      description: Repeatable key; replaying the same key returns the prior response.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Session token (wallet or service)