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/checkout

Start Checkout

Create a Stripe Checkout session to upgrade your plan.

planstringrequiredbody

Plan to upgrade to: "pro" or "scale".

intervalstringrequiredbody

Billing 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/v1/billing/checkout
Try it
Request Body
Enter your API key above to send requests