All requests below will use this key. Your API key is sent directly to api.cueapi.ai and never stored by the docs site.
POST
/v1/billing/portalBilling Portal
Create a Stripe Customer Portal session to manage your subscription.
Opens the Stripe Customer Portal where you can update payment methods, view invoices, or cancel your subscription.
Note
Requires an active Stripe customer. If you haven't upgraded from the free plan, this returns an error.
Request
bash
curl -X POST https://api.cueapi.ai/v1/billing/portal \
-H "Authorization: Bearer cue_sk_YOUR_KEY"Response
json
{
"portal_url": "https://billing.stripe.com/p/session/..."
}json
{
"error": {
"code": "no_stripe_customer",
"message": "No billing account found. Upgrade first.",
"status": 400
}
}POST
Try it/v1/billing/portalRequest Body
Enter your API key above to send requests