Skip to main content
POST
Create Upgrade Link

Authorizations

Authorization
string
header
required

API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → Developers → API Keys.

Body

application/json
plan
enum<string>

User-chosen plan for new subscription checkout. Omit for an existing Stripe customer's billing portal. Passing plan for an active existing subscription can change it and charge immediately; requires explicit charge approval.

Available options:
basic,
premium,
business,
basic_annual,
premium_annual,
business_annual

Response

Billing link created

success
boolean
required
data
object
error
string | null
Last modified on October 3, 2026