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/checkoutStart Checkout
Create a Stripe Checkout session to upgrade your plan.
planstringrequiredbodyPlan to upgrade to: "pro" or "scale".
intervalstringrequiredbodyBilling interval: "monthly" or "annual".
Request
bash
curl -X POST https://api.cueapi.ai/v1/billing/checkout \
-H "Authorization: Bearer cue_sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"plan": "pro", "interval": "monthly"}'Response
json
{
"checkout_url": "https://checkout.stripe.com/c/pay/cs_live_..."
}json
{
"error": {
"code": "invalid_plan",
"message": "Invalid plan: enterprise",
"status": 400
}
}POST
Try it/v1/billing/checkoutRequest Body
Enter your API key above to send requests