Snapvisor Billing API
Read a team's plan and usage, list plans, and start an upgrade, a cancellation or a spend limit change. Payment pages open through single-use links.
Read a team's plan and usage, list plans, and start an upgrade, a cancellation or a spend limit change. Payment pages open through single-use links.
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/snapvisor-io:snapvisor-io-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: Snapvisor Billing API
version: 2.0.0
contact:
name: Snapvisor Support
url: https://snapvisor.io
email: support@snapvisor.io
termsOfService: https://snapvisor.io/terms
description: Read a team's plan and usage, list plans, and start an upgrade, a cancellation or a spend limit change. Payment pages open through single-use links.
servers:
- url: https://api.snapvisor.io/v2
description: API Endpoint
security:
- projectToken: []
tags:
- name: Billing
description: Read a team's plan and usage, list plans, and start an upgrade, a cancellation or a spend limit change. Payment pages open through single-use links.
x-page-icon: credit-card
paths:
/accounts/{accountSlug}/billing:
get:
operationId: billingStatus
x-mcp:
name: billing_status
covers:
- graphql:Account.invoices
summary: Get a team's plan, usage and subscription
description: Get the plan, subscription status, trial end, this period's screenshot usage, spend limit and (for administrators) recent invoices of an account. Personal accounts are always on the Free plan. Use it when the user asks what they pay or how much they used, and before upgrade_plan or manage_subscription.
tags:
- Billing
security:
- personalAccessToken: []
- oauth2:
- profile
parameters:
- in: path
name: accountSlug
schema:
type: string
minLength: 1
description: Slug of the team.
required: true
description: Slug of the team.
responses:
'200':
description: Billing status
content:
application/json:
schema:
$ref: '#/components/schemas/BillingStatus'
'400':
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-gitbook-mcp: true
/accounts/{accountSlug}/billing/upgrade:
post:
operationId: upgradePlan
x-mcp:
name: upgrade_plan
covers:
- express:POST /stripe/create-checkout-session
- rest:startAppStorePurchase
summary: Get a checkout link to upgrade a team
description: 'Get a single-use checkout link, valid 15 minutes, that upgrades the team: checkout opens prefilled, the user enters a card and confirms. A team that never had a trial gets the trial. Show the link to the user; it opens only for them. Use it when the user wants to upgrade a team to a paid plan.'
tags:
- Billing
security:
- personalAccessToken: []
- oauth2:
- billing:manage
parameters:
- in: path
name: accountSlug
schema:
type: string
minLength: 1
description: Slug of the team.
required: true
description: Slug of the team.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
plan:
type: string
enum:
- pro
description: Plan id from list_plans.
required:
- plan
responses:
'200':
description: Checkout handoff
content:
application/json:
schema:
$ref: '#/components/schemas/Handoff'
'400':
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-gitbook-mcp: true
/accounts/{accountSlug}/billing/subscription:
post:
operationId: manageSubscription
x-mcp:
name: manage_subscription
covers:
- express:POST /stripe/create-customer-portal-session
- graphql:extendTrial
summary: Cancel, resume, refund or open the billing portal
description: 'Change the team''s subscription. cancel stops it at the end of the period; resume undoes a pending cancel; refund refunds the last payment and ends it now; portal returns a single-use link to the billing portal (invoices, card, tax ids). cancel and refund ask for confirmation once (confirmToken). A subscription bought in the iOS app or on GitHub Marketplace is managed by that store: those actions return a link to the store''s subscription page. extend is refused: upgrade with upgrade_plan instead. Use it when the user wants to cancel, resume or refund a subscription, or see invoices and change the card.'
tags:
- Billing
security:
- personalAccessToken: []
- oauth2:
- billing:manage
parameters:
- in: path
name: accountSlug
schema:
type: string
minLength: 1
description: Slug of the team.
required: true
description: Slug of the team.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
action:
type: string
enum:
- cancel
- resume
- extend
- refund
- portal
required:
- action
responses:
'200':
description: Result
content:
application/json:
schema:
$ref: '#/components/schemas/ManageSubscriptionResult'
'400':
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-gitbook-mcp: true
/accounts/{accountSlug}/spend-limit:
patch:
operationId: setSpendLimit
x-mcp:
covers:
- graphql:updateAccount.meteredSpendLimitByPeriod
- graphql:updateAccount.blockWhenSpendLimitIsReached
summary: Set a team's spend limit
description: Set the most the team may spend on additional screenshots in one billing period, and whether builds stop when it is reached. The team's owners are notified when the new limit is already partly used. Use it when the user wants to cap a team's spend limit or lift it.
tags:
- Billing
security:
- personalAccessToken: []
- oauth2:
- billing:manage
parameters:
- in: path
name: accountSlug
schema:
type: string
minLength: 1
description: Slug of the team.
required: true
description: Slug of the team.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SpendLimit'
responses:
'200':
description: Saved
content:
application/json:
schema:
$ref: '#/components/schemas/SpendLimitOutput'
'400':
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-gitbook-mcp: true
/plans:
get:
operationId: listPlans
x-mcp:
name: list_plans
summary: List the plans a team can subscribe to
description: List the plans a team can subscribe to, with their monthly price in your currency (USD where there is no local price) and included screenshots. Use it when the user compares plans; pass a plan id to upgrade_plan.
tags:
- Billing
security:
- personalAccessToken: []
- oauth2:
- profile
responses:
'200':
description: Plans
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PlanOption'
'400':
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
x-gitbook-mcp: true
components:
schemas:
PlanOption:
type: object
properties:
id:
type: string
enum:
- free
- pro
name:
type: string
monthlyPrice:
type: object
properties:
amount:
type: number
description: In the currency's major unit.
currency:
type: string
required:
- amount
- currency
additionalProperties: false
includedScreenshots:
type: number
additionalScreenshotPrice:
anyOf:
- type: object
properties:
amount:
type: number
description: In the currency's major unit.
currency:
type: string
required:
- amount
- currency
additionalProperties: false
- type: 'null'
required:
- id
- name
- monthlyPrice
- includedScreenshots
- additionalScreenshotPrice
additionalProperties: false
ManageSubscriptionResult:
type: object
properties:
action:
type: string
status:
type: string
cancelAtPeriodEnd:
type: boolean
refundedAmount:
description: In the currency's minor unit (cents).
type: number
handoff:
$ref: '#/components/schemas/Handoff'
required:
- action
additionalProperties: false
SpendLimitOutput:
type: object
properties:
monthlyLimit:
anyOf:
- type: integer
minimum: 0
maximum: 9007199254740991
- type: 'null'
description: Most the team may spend on additional screenshots per billing period, in whole units of the subscription's currency; null removes the limit.
blockWhenReached:
type: boolean
description: Whether new builds are refused once the limit is reached.
required:
- monthlyLimit
- blockWhenReached
additionalProperties: false
Error:
type: object
properties:
error:
type: string
details:
type: array
items:
type: object
properties:
message:
type: string
required:
- message
additionalProperties: false
required:
- error
additionalProperties: false
description: Error response
BillingStatus:
type: object
properties:
accountSlug:
type: string
plan:
type: object
properties:
id:
type: string
name:
type: string
paid:
type: boolean
required:
- id
- name
- paid
additionalProperties: false
subscription:
anyOf:
- type: object
properties:
provider:
type: string
enum:
- stripe
- revenuecat
- github
status:
type: string
trialEndsAt:
anyOf:
- type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- type: 'null'
endsAt:
anyOf:
- type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
- type: 'null'
description: When a cancelled subscription stops; null while it renews.
required:
- provider
- status
- trialEndsAt
- endsAt
additionalProperties: false
- type: 'null'
period:
type: object
properties:
start:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
end:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
required:
- start
- end
additionalProperties: false
usage:
type: object
properties:
screenshots:
type: number
includedScreenshots:
type: number
consumptionRatio:
type: number
additionalScreenshotsCost:
type: number
required:
- screenshots
- includedScreenshots
- consumptionRatio
- additionalScreenshotsCost
additionalProperties: false
spendLimit:
type: object
properties:
monthly:
type:
- number
- 'null'
blockWhenReached:
type: boolean
required:
- monthly
- blockWhenReached
additionalProperties: false
invoices:
type: array
items:
type: object
properties:
number:
type:
- string
- 'null'
status:
type: string
total:
type: number
description: In the currency's minor unit (cents).
currency:
type: string
createdAt:
type: string
format: date-time
pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
hostedInvoiceUrl:
description: The app's session-authenticated invoice route, which redirects to a fresh Stripe URL; null when Stripe has no hosted document.
type:
- string
- 'null'
required:
- number
- status
- total
- currency
- createdAt
- hostedInvoiceUrl
additionalProperties: false
description: The 10 latest Stripe invoices; empty unless you administer the team.
required:
- accountSlug
- plan
- subscription
- period
- usage
- spendLimit
- invoices
additionalProperties: false
SpendLimit:
type: object
properties:
monthlyLimit:
anyOf:
- type: integer
minimum: 0
maximum: 9007199254740991
- type: 'null'
description: Most the team may spend on additional screenshots per billing period, in whole units of the subscription's currency; null removes the limit.
blockWhenReached:
type: boolean
description: Whether new builds are refused once the limit is reached.
required:
- monthlyLimit
- blockWhenReached
Handoff:
type: object
properties:
url:
type: string
format: uri
description: Single-use link; opens only for the same signed-in user. Show it to the user.
expires_in:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
description: Seconds until the link expires (900).
what:
type: string
description: What the link does, in one line.
required:
- url
- expires_in
- what
additionalProperties: false
securitySchemes:
projectToken:
type: http
scheme: bearer
bearerFormat: Project Token
description: 'Authenticate as a **project** with a project token.
Send it as a bearer token in the `Authorization` header:
```http
Authorization: Bearer <project-token>
```
You can find your project token in your Snapvisor project settings.
Project tokens are used by CI and the SDK to create builds and
deployments.'
personalAccessToken:
type: http
scheme: bearer
bearerFormat: Personal Access Token
description: 'Authenticate as a **user** with a personal access token.
Send it as a bearer token in the `Authorization` header:
```http
Authorization: Bearer <personal-access-token>
```
Personal access tokens act on behalf of the user that created them
and are required by endpoints that perform user actions, such as
reviewing builds and posting comments.'
oauth2:
type: oauth2
description: 'Authenticate as a **user** via an OAuth 2.1 access token obtained
through the authorization-code (+ PKCE) flow. Used by the CLI and by
MCP clients/agents. The token acts on behalf of the authorizing user,
limited to the granted scopes and organizations.'
flows:
authorizationCode:
authorizationUrl: https://app.snapvisor.io/oauth/authorize
tokenUrl: https://app.snapvisor.io/oauth/token
refreshUrl: https://app.snapvisor.io/oauth/token
scopes:
profile: Read your Snapvisor profile and the list of teams you belong to.
projects:read: Read your projects, builds, screenshots, diffs, tests, and analytics.
projects:write: Create and configure projects and their settings.
builds:write: Create and upload builds and screenshots.
reviews:write: Approve, reject, or dismiss build reviews and ignore changes.
comments:read: Read build comments and threads.
comments:write: Post, edit, and delete comments, add reactions, and manage subscriptions.
media:read: Read the images and videos uploaded to your teams.
media:write: Upload images and videos, and delete the ones already uploaded.
account:admin: Manage organization settings and members.
data:delete: Delete projects, media and comments, transfer projects and remove contributors. Each deletion is confirmed once by the agent.
billing:manage: Start a checkout, open the billing portal, cancel, resume or refund a team subscription, and set spend limits.
account:manage: Edit your profile, emails, notification preferences, sessions and passkeys, export your data, and delete your account.
connections:manage: Connect, verify and disconnect GitHub, GitLab, Slack, Discord and Microsoft Teams, and link repositories to projects.
support:write: Open support requests on your behalf.
keys:manage: Create, rotate and revoke personal access tokens, project upload tokens and authorized apps.
externalDocs:
description: Snapvisor API reference
url: https://snapvisor.io/docs/api-reference
x-gitbook-mcp-url: https://mcp.snapvisor.io