Operations 7
POST
/api/v1/billing/credits/checkout
One-time Checkout for a prepaid credit pack (card or stablecoin)
#
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/overwing-ai:overwing-ai-billing-api"
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.
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: 3.2.0
info:
title: Overwing Billing API
version: 0.21.0
contact:
name: Overwing
email: support@overwing.ai
url: https://overwing.ai
x-guidance: 'To check text before it is sent or acted on, POST /api/x402/evaluate with {"input": "<text>"} and pay $0.002 in USDC over x402; branch on recommended_action in the response (block, redact, review, allow). The text can be in any language; responses are in English, and GET /api/v1/languages lists the languages tested. Add rule_set "outbound-message" and a context object (recipient, channel, owns_contact_info) when the text is a message to a known recipient. To identify a bot, GET /api/x402/atlas/lookup?user_agent=<string> for $0.001. To try either with no payment and no key, call POST /api/v1/evaluate or GET /api/v1/atlas/lookup with no Authorization header, 10 a day each. Everything under /api/v1 other than those two needs a key from POST /api/v1/signup. Full guide: /llms.txt.'
summary: Guardrails that check text before an agent sends it, open data on AI agents (Atlas), a check of whether a site is reachable by agents (Beacon), and clearance for agents on legacy systems (Tower).
description: 'Overwing makes five products, all in this API. Preflight (/api/v1/preflight): one check of an unsigned Solana transaction against the caller''s policy, answering allow or refuse before an agent signs it. Guardrails (/api/v1/evaluate): send any text and a rule set slug; receive a pass/fail/review verdict per rule and in aggregate, one recommended action (block, redact, review, allow) and calibrated confidence, typically in under 500 ms. Atlas (/api/v1/atlas): a registry of AI crawlers, fetchers and browser agents, and a lookup that says what a User-Agent claims to be and whether the claim can be verified. Beacon (/api/v1/beacon): one paid lookup that says whether a site is reachable by agents, that is whether they can find it, read it and use it; $1 over x402 at /api/x402/beacon, or $5 by card. Tower (/api/v1/tower): typed operations on legacy business systems, where each write is executed, sent to a person for review, or refused, with a signed receipt for every step; in pilot, against a mock adapter. POST /api/v1/evaluate and GET /api/v1/atlas/lookup work with no key, 10 calls a day each; everything else takes `Authorization: Bearer ow_live_...` from POST /api/v1/signup (Tower actions take an agent key, `ow_agent_...`). Every error is `{ "error": "..." }`. The same operations are available over MCP (hosted at /mcp, or the overwing-mcp npm package) and, for evaluate and lookup, over A2A at /a2a. Plain-text guide at /llms.txt; human-readable reference at /docs.'
servers:
- url: https://overwing.ai
security:
- bearerAuth: []
tags:
- name: Billing
description: Plans and subscriptions (Stripe)
paths:
/api/v1/plans:
get:
tags:
- Billing
operationId: listPlans
summary: Public plan catalog with limits and prices
security: []
responses:
'200':
description: Plans
content:
application/json:
schema:
$ref: '#/components/schemas/PlanCatalog'
/api/v1/billing:
get:
tags:
- Billing
operationId: getBilling
summary: Current plan, limit and subscription status
responses:
'200':
description: Billing status
content:
application/json:
schema:
$ref: '#/components/schemas/BillingStatus'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
delete:
tags:
- Billing
operationId: cancelSubscription
summary: Cancel at the end of the current period
responses:
'200':
description: Scheduled
content:
application/json:
schema:
type: object
properties:
plan:
type: string
cancels_at:
type:
- string
- 'null'
subscription_status:
type: string
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: No active subscription
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: Billing not enabled
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/billing/checkout:
post:
tags:
- Billing
operationId: createCheckout
summary: Hosted Stripe Checkout URL for a person to complete
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- plan
properties:
plan:
type: string
enum:
- starter
- growth
- scale
success_url:
type: string
format: uri
cancel_url:
type: string
format: uri
responses:
'201':
description: Checkout session
content:
application/json:
schema:
type: object
properties:
url:
type: string
format: uri
plan:
type: string
expires_in_seconds:
type: integer
'400':
description: Invalid plan or URLs
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Already subscribed; use subscribe or portal
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: Billing not enabled
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/billing/subscribe:
post:
tags:
- Billing
operationId: subscribe
summary: Subscribe or switch plans with no browser
description: New subscriptions need a Stripe payment method id (pm_...), created with Stripe.js, a Stripe test token, or an agent payment provider. Switching an existing subscription needs only the plan and is prorated. Returns 202 with payment_url when the bank requires an extra confirmation step.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- plan
properties:
plan:
type: string
enum:
- starter
- growth
- scale
payment_method:
type: string
pattern: ^pm_[A-Za-z0-9]+$
responses:
'201':
description: Active
content:
application/json:
schema:
$ref: '#/components/schemas/SubscribeResponse'
'202':
description: Requires action
content:
application/json:
schema:
$ref: '#/components/schemas/SubscribeResponse'
'400':
description: Validation error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
description: Payment method rejected
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: Already on that plan
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: Billing not enabled
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/billing/credits/checkout:
post:
tags:
- Billing
operationId: createCreditCheckout
summary: One-time Checkout for a prepaid credit pack (card or stablecoin)
description: 'Credits are spent after the day''s plan allowance is used and never expire. Packs: small (10,000 for $19), medium (100,000 for $149), large (1,000,000 for $999). Evaluate responses carry X-Credits-Remaining and X-Quota-Source: credits when credits are used.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- pack
properties:
pack:
type: string
enum:
- small
- medium
- large
success_url:
type: string
format: uri
cancel_url:
type: string
format: uri
responses:
'201':
description: Checkout session
content:
application/json:
schema:
type: object
properties:
url:
type: string
format: uri
pack:
type: string
credits:
type: integer
price_usd:
type: number
expires_in_seconds:
type: integer
'400':
description: Invalid pack or URLs
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: Billing not enabled
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/v1/billing/portal:
post:
tags:
- Billing
operationId: createPortal
summary: Stripe customer portal URL (invoices, cards, cancel)
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
return_url:
type: string
format: uri
responses:
'201':
description: Portal session
content:
application/json:
schema:
type: object
properties:
url:
type: string
format: uri
'401':
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'409':
description: No billing account yet
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'503':
description: Billing not enabled
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: string
description: Human-readable message
BillingStatus:
type: object
properties:
plan:
type: string
plan_name:
type: string
price_monthly_usd:
type: number
daily_limit:
type: integer
credit_balance:
type: integer
subscription_status:
type: string
enum:
- none
- trialing
- active
- past_due
- canceled
- incomplete
- unpaid
current_period_end:
type:
- string
- 'null'
format: date-time
has_payment_customer:
type: boolean
billing_enabled:
type: boolean
SubscribeResponse:
type: object
properties:
plan:
type: string
daily_limit:
type: integer
subscription_status:
type: string
current_period_end:
type:
- string
- 'null'
requires_action:
type: boolean
payment_url:
type:
- string
- 'null'
notice:
type: string
PlanCatalog:
type: object
properties:
currency:
type: string
billing_enabled:
type: boolean
plans:
type: array
items:
type: object
properties:
id:
type: string
name:
type: string
price_monthly_usd:
type: number
daily_eval_limit:
type: integer
per_minute_limit:
type: integer
description:
type: string
purchasable:
type: boolean
how_to_upgrade:
type: object
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: ow_live_<32 hex>
description: 'API key from the dashboard, from POST /api/v1/api-keys, or from POST /api/v1/signup (one call, no browser). A key has a scope: full (every endpoint) or evaluate (POST evaluate and evaluate/batch, GET rule-sets, me, usage and the Atlas reads; everything else answers 403). Give agents an evaluate key.'