Lit Protocol Billing API
The Billing API from Lit Protocol — 4 operation(s) for billing.
The Billing API from Lit Protocol — 4 operation(s) for billing.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/lit-protocol-billing-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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: 3.2.0
info:
title: lit-api-server Account Management Billing API
description: Lit Express Node API Server
version: 0.1.0
servers:
- url: /core/v1/
description: Lit Protocol Express API (Core v1)
tags:
- name: Billing
paths:
/billing/stripe_config:
get:
tags:
- Billing
description: GET /billing/stripe_config — returns the Stripe publishable key. No auth required; the publishable key is safe to expose.
operationId: billing_stripe_config
responses:
default:
description: ''
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/StripeConfigResponse'
- $ref: '#/components/schemas/ErrMessage'
/billing/balance:
get:
tags:
- Billing
description: GET /billing/balance — returns the current credit balance for the authenticated user.
operationId: billing_balance
parameters:
- name: X-Api-Key
in: header
description: 'API-mode auth: account or usage API key (alternatively `Authorization: Bearer <key>`). OR — for ChainSecured callers — omit X-Api-Key entirely and send `X-Wallet-Auth: <base64(JSON{typed_data, signature})>` where `typed_data` is EIP-712 with `primaryType: "BillingAuth"`. The signature proves wallet possession; the typed data must include the connected wallet address and an issuedAt timestamp within ±5 minutes.'
schema:
type: string
responses:
default:
description: ''
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/BillingBalanceResponse'
- $ref: '#/components/schemas/ErrMessage'
/billing/create_payment_intent:
post:
tags:
- Billing
description: POST /billing/create_payment_intent — creates a Stripe PaymentIntent and returns the client_secret for use with Stripe.js `confirmCardPayment`.
operationId: billing_create_payment_intent
parameters:
- name: X-Api-Key
in: header
description: 'API-mode auth: account or usage API key (alternatively `Authorization: Bearer <key>`). OR — for ChainSecured callers — omit X-Api-Key entirely and send `X-Wallet-Auth: <base64(JSON{typed_data, signature})>` where `typed_data` is EIP-712 with `primaryType: "BillingAuth"`. The signature proves wallet possession; the typed data must include the connected wallet address and an issuedAt timestamp within ±5 minutes.'
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePaymentIntentRequest'
required: true
responses:
default:
description: ''
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/CreatePaymentIntentResponse'
- $ref: '#/components/schemas/ErrMessage'
/billing/confirm_payment:
post:
tags:
- Billing
description: POST /billing/confirm_payment — verifies a succeeded PaymentIntent and credits the account.
operationId: billing_confirm_payment
parameters:
- name: X-Api-Key
in: header
description: 'API-mode auth: account or usage API key (alternatively `Authorization: Bearer <key>`). OR — for ChainSecured callers — omit X-Api-Key entirely and send `X-Wallet-Auth: <base64(JSON{typed_data, signature})>` where `typed_data` is EIP-712 with `primaryType: "BillingAuth"`. The signature proves wallet possession; the typed data must include the connected wallet address and an issuedAt timestamp within ±5 minutes.'
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ConfirmPaymentRequest'
required: true
responses:
default:
description: ''
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/AccountOpResponse'
- $ref: '#/components/schemas/ErrMessage'
components:
schemas:
BillingBalanceResponse:
description: GET /billing/balance — current credit balance for the authenticated API key.
type: object
required:
- balance_cents
- balance_display
properties:
balance_cents:
description: Balance in cents. Negative means credits are available; zero means exhausted.
type: integer
format: int64
balance_display:
description: Human-readable, e.g. "$5.00 credit".
type: string
ConfirmPaymentRequest:
description: POST /billing/confirm_payment
type: object
required:
- payment_intent_id
properties:
payment_intent_id:
type: string
AccountOpResponse:
description: Response for account config operations (add_pkp_to_group, remove_pkp_from_group, add_usage_api_key, remove_usage_api_key).
type: object
required:
- success
properties:
success:
type: boolean
ErrMessage:
type: string
CreatePaymentIntentResponse:
description: POST /billing/create_payment_intent — client secret for Stripe.js confirmCardPayment.
type: object
required:
- client_secret
- payment_intent_id
properties:
client_secret:
type: string
payment_intent_id:
type: string
StripeConfigResponse:
description: GET /billing/stripe_config — returns the Stripe publishable key for Stripe.js.
type: object
required:
- publishable_key
properties:
publishable_key:
type: string
CreatePaymentIntentRequest:
description: POST /billing/create_payment_intent
type: object
required:
- amount_cents
properties:
amount_cents:
description: Amount to charge in US cents (minimum 500 = $5.00).
type: integer
format: int64