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.
openapi: 3.2.0
info:
title: ONCE REST Credits API
version: 1.0.0
description: Human-friendly HTTP API for ONCE music distribution. Same capabilities, authentication, billing, and validation as the ONCE MCP server.
servers:
- url: https://once.app/v1
security:
- bearerAuth: []
tags:
- name: Credits
paths:
/credits/checkout:
post:
summary: Create a Stripe checkout session to buy credits
description: 'Body: { credits } for a custom $1/credit amount, or { package_id } to buy a discounted bulk bundle (see GET /pricing). Optional { save_payment_method, ui_mode, success_path }.'
responses:
'200':
description: Checkout session
tags:
- Credits
operationId: postCreditsCheckout
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT or once_pat_*