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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/skysay-ai:skysay-ai-billing-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
openapi: 3.2.0
info:
description: 'Agent-native telephony API for customer onboarding, credits, numbers, webhooks, gateways, and policy-gated calls. Request bodies are UTF-8. Send JSON: a body that is absent or whitespace-only reads as an empty object, and a JSON body that is not valid JSON, is not a JSON object, or is not UTF-8 returns 400. A request carrying any Content-Encoding other than identity returns 415 — this API does not accept compressed request bodies. A required field that is missing, null or blank returns 400 naming the field.'
title: Skysay Billing API
version: 0.1.0
servers:
- url: https://api.skysay.ai
security:
- ApiKeyBearer: []
tags:
- description: Wallet, usage, invoices and pricing.
name: Billing
paths:
/v1/agent/onboarding/headless/payments:
post:
description: Bound to the authenticated workspace. Available to email/social customers without a phone identity. Owner approval is required before payment. Only a signed matching Stripe webhook creates purchased funds. Browser welcome credit cannot fund numbers, PSTN or SMS. The existing URL is retained for pending-payment retries; it does not provide headless signup.
operationId: createHeadlessPayment
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/HeadlessPayment'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/HeadlessPaymentResult'
description: Payment result; pending is not wallet credit
'400':
description: Invalid input or payment approval missing
'401':
description: Workspace authentication required
'402':
description: Owner approval challenge
'409':
description: Conflicting or uncertain payment retry
'503':
description: Payment method unavailable
security:
- ApiKeyBearer: []
summary: Approve a wallet top-up with hosted checkout or a shared payment token
tags:
- Billing
x-required-scopes:
- wallet:write
/v1/billing/invoices:
get:
description: 'One bounded page, newest first by `created_at`, ties by creation order, as an object: the items under `invoices` and `pagination`. Follow `pagination.next_cursor` while `pagination.has_more` is true; a walk returns every row that exists for the whole walk exactly once. Top-up ledger entries only.'
operationId: listInvoices
parameters:
- description: Optional. Defaults to the key's own organization; naming another organization is refused.
in: query
name: organization_id
required: false
schema:
type: string
- description: Page size, 1 to 500; 100 when omitted. A value outside that range or not a whole number is a 400, never shortened.
in: query
name: limit
required: false
schema:
default: 100
maximum: 500
minimum: 1
type: integer
- description: The previous page's `pagination.next_cursor`, exactly as received. Anything else is a 400.
in: query
name: cursor
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
count:
description: Invoices on this page.
minimum: 0
type: integer
currency:
type: string
invoices:
description: At most `limit` items, at most 500.
items:
type: object
type: array
organization_id:
type: string
pagination:
$ref: '#/components/schemas/ListPagination'
required:
- invoices
- pagination
- organization_id
- currency
- count
type: object
description: One page. Server-Timing and X-Skysay-Query-Count describe the read; Cache-Control is no-store.
'400':
description: '`limit` outside its range or missing where required, a `cursor` that is not a `next_cursor`, or a project of another organization.'
summary: List wallet top-ups with their receipt and invoice links
tags:
- Billing
/v1/billing/settings:
get:
operationId: getBillingSettings
responses:
'200':
description: Billing settings
summary: Read wallet billing settings and auto-recharge readiness
tags:
- Billing
patch:
operationId: updateBillingSettings
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/BillingSettings'
required: true
responses:
'200':
description: Billing settings
summary: Update safe auto-recharge settings without triggering a live charge
tags:
- Billing
/v1/billing/stripe/topup-sessions:
post:
description: Optional number_request_id must belong to the authenticated workspace/project and still be payment_required (requires numbers:read in addition to wallet:write). Return selection is rebuilt from this validated request and the configured website origin. Only a signed Stripe webhook credits funds. A still-payable or uncertain checkout with a different return context is refused; no second checkout is created.
operationId: createTopupSession
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/StripeTopup'
required: true
responses:
'201':
description: Stripe checkout session or disabled status
'404':
description: Request not found in workspace project
'409':
description: Stale request or conflicting open checkout (reason topup_context_conflict, known checkout_url when available)
summary: Create a Stripe checkout topup session when enabled
tags:
- Billing
/v1/pricing/catalog:
get:
description: 'Anonymous, retail prices only. `public_price_book` (`public_launch_pricing_v1`) holds the plans and usage prices. `model_rates` (`public_model_rates_v1`) holds the platform `runtime` rate, the call `languages` (with `languages_truncated`, true when at most 1,024 were enumerated; false today), the `cascade` transcribers (`stt`), language models (`llm`) and voices (`tts`) a customer can pick now, the `conversational` engines, and the `defaults` the pricing page opens on. Each model has `key`, `display`, `languages` (a list, or `any`) and `rates`, one row per billed `dimension` with its `unit`, `price_micro_usd_per_unit` and `reference_units_per_minute`, the usage billing reserves per connected minute; a call settles on its actual usage. A cascade model''s `billing` is `skysay`, or `your_own_key` for a language model run on your own provider key: it has no rates, its provider bills you, and Skysay charges $0 for it. `carrier_rates` (`public_carrier_rates_v1`) is `null` when it cannot be read; otherwise `countries` has one row per ISO country with `outbound` and `inbound` (`min_price_micro_usd_per_min` and `max_price_micro_usd_per_min`, or `null` when no price is listed), `number` (`number_type`, `monthly_minor`, `setup_minor` of the cheapest number a customer can buy there, local preferred, or `null` when none is sold) and `outbound_number`, the same shape for the cheapest of those that can place outbound calls (`null` when none can), plus `billing_increment` `60/60` and `truncated`. The outbound price depends only on the country called; sanctioned destinations, where calls are always refused, have no outbound price. `model_rates` changes only with a Skysay release; `carrier_rates` refreshes within about 10 minutes of a price change.'
operationId: getPricingCatalog
responses:
'200':
description: 'Catalog: public_price_book, model_rates and carrier_rates'
security: []
summary: List pricing plans
tags:
- Billing
/v1/pricing/estimate:
post:
operationId: estimatePricing
responses:
'200':
description: Estimate
security: []
summary: Estimate monthly platform cost on the public price book…
tags:
- Billing
/v1/usage:
get:
operationId: getUsage
responses:
'200':
description: Usage
summary: Get usage summary
tags:
- Billing
/v1/usage-records:
get:
description: 'One bounded page, newest first by `created_at`, ties by creation order, as an object: the items under `usage_records` and `pagination`. Follow `pagination.next_cursor` while `pagination.has_more` is true; a walk returns every row that exists for the whole walk exactly once.'
operationId: listUsageRecords
parameters:
- description: Optional. Defaults to the key's own organization; naming another organization is refused.
in: query
name: organization_id
required: false
schema:
type: string
- description: Only this project's rows. A project of another organization is a 400.
in: query
name: project_id
required: false
schema:
type: string
- description: Page size, 1 to 500; 100 when omitted. A value outside that range or not a whole number is a 400, never shortened.
in: query
name: limit
required: false
schema:
default: 100
maximum: 500
minimum: 1
type: integer
- description: The previous page's `pagination.next_cursor`, exactly as received. Anything else is a 400.
in: query
name: cursor
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
pagination:
$ref: '#/components/schemas/ListPagination'
usage_records:
description: At most `limit` items, at most 500.
items:
type: object
type: array
required:
- usage_records
- pagination
type: object
description: One page. Server-Timing and X-Skysay-Query-Count describe the read; Cache-Control is no-store.
'400':
description: '`limit` outside its range or missing where required, a `cursor` that is not a `next_cursor`, or a project of another organization.'
summary: List usage records
tags:
- Billing
/v1/usage/daily:
get:
operationId: getDailyUsage
responses:
'200':
description: Daily usage
summary: Get daily usage summary
tags:
- Billing
/v1/usage/monthly:
get:
operationId: getMonthlyUsage
responses:
'200':
description: Monthly usage
summary: Get monthly usage summary
tags:
- Billing
/v1/wallet:
get:
operationId: getWallet
responses:
'200':
description: Wallet summary
summary: Read wallet balance and low-balance readiness against recurring and reserved…
tags:
- Billing
/v1/wallet/ledger:
get:
description: 'One bounded page, newest first by `created_at`, ties by creation order, as an object: the items under `entries` and `pagination`. Follow `pagination.next_cursor` while `pagination.has_more` is true; a walk returns every row that exists for the whole walk exactly once. `totals` cover the entries on this page only.'
operationId: listWalletLedger
parameters:
- description: Optional. Defaults to the key's own organization; naming another organization is refused.
in: query
name: organization_id
required: false
schema:
type: string
- description: Page size, 1 to 500; 100 when omitted. A value outside that range or not a whole number is a 400, never shortened.
in: query
name: limit
required: false
schema:
default: 100
maximum: 500
minimum: 1
type: integer
- description: The previous page's `pagination.next_cursor`, exactly as received. Anything else is a 400.
in: query
name: cursor
required: false
schema:
type: string
responses:
'200':
content:
application/json:
schema:
properties:
count:
description: Entries on this page.
minimum: 0
type: integer
currency:
type: string
entries:
description: At most `limit` items, at most 500.
items:
type: object
type: array
limit:
minimum: 1
type: integer
organization_id:
type: string
pagination:
$ref: '#/components/schemas/ListPagination'
totals:
description: Credit, debit, reserved and available deltas summed over this page's entries, in minor units (each also as *_cents).
type: object
required:
- entries
- pagination
- organization_id
- limit
- count
- currency
- totals
type: object
description: One page. Server-Timing and X-Skysay-Query-Count describe the read; Cache-Control is no-store.
'400':
description: '`limit` outside its range or missing where required, a `cursor` that is not a `next_cursor`, or a project of another organization.'
summary: List the most recent org-level wallet ledger entries and linked usage/call refs
tags:
- Billing
components:
schemas:
HeadlessPayment:
additionalProperties: false
properties:
amount_minor:
description: Top-up in the wallet currency's minor units; current server top-up bounds apply.
minimum: 1
type: integer
currency:
description: Exact owner-approved currency; must match the workspace wallet reported by account_overview.
pattern: ^[A-Z]{3}$
type: string
idempotency_key:
description: Opaque key unique to this purchase. Retry the same key and parameters after uncertain outcomes; never include payment credentials.
maxLength: 128
minLength: 1
type: string
method:
enum:
- card_checkout
- shared_payment_token
type: string
payment_approved:
description: True only after the owner explicitly approves this amount and currency for purchased Skysay calling credit. Scope consent is not purchase approval. Optional while requesting SPT approval metadata.
type: boolean
request_challenge:
description: For SPT, return 402 with amount/currency/Stripe seller profile for a compatible wallet to request owner approval. This is JSON metadata, not MPP, native checkout or MCP elicitation.
type: boolean
shared_payment_token:
description: Granted spt_ token approved by the owner for this seller and amount. Omit when requesting the challenge. Never submit card numbers.
maxLength: 1024
type: string
required:
- method
- amount_minor
- currency
- idempotency_key
type: object
BillingSettings:
properties:
auto_recharge_enabled:
type: boolean
organization_id:
type: string
payment_provider:
enum:
- stripe
type: string
recharge_amount_minor:
type: integer
threshold_minor:
type: integer
required:
- organization_id
type: object
HeadlessPaymentResult:
description: Card checkout returns the standard Stripe checkout URL/amount result. SPT returns pending or paid; only a signed matching webhook makes purchased wallet credit available.
properties:
amount_minor:
type: integer
checkout_url:
format: uri
type: string
currency:
type: string
next_action:
type: string
payment_id:
type: string
status:
type: string
wallet_credit_timing:
type: string
type: object
ListPagination:
additionalProperties: false
properties:
has_more:
description: True while older rows remain. A page is the whole list only when this is false.
type: boolean
limit:
description: The page size used.
minimum: 1
type: integer
next_cursor:
description: Send as `cursor` to read the next page; null on the last page.
type:
- string
- 'null'
returned:
description: Items on this page.
minimum: 0
type: integer
required:
- limit
- returned
- has_more
- next_cursor
type: object
StripeTopup:
anyOf:
- required:
- amount_minor
- required:
- amount_cents
properties:
amount_cents:
minimum: 1
type: integer
amount_minor:
minimum: 1
type: integer
cancel_url:
format: uri
type: string
currency:
description: Must match wallet settlement currency when provided.
type: string
idempotency_key:
description: Request-aware checkout uses the persisted claim even when a caller supplies a key.
type: string
number_request_id:
description: Optional exact request context; never confirms, purchases or reserves a number.
type: string
organization_id:
type: string
project_id:
type: string
receipt_email:
format: email
type: string
success_url:
format: uri
type: string
required:
- organization_id
type: object
securitySchemes:
ApiKeyBearer:
description: 'A scoped sky_ API key, sent as Authorization: Bearer sky_...'
scheme: bearer
type: http