POST /v1/billing/portal
Tags: billing
Responses
200 — Stripe Billing Portal URL
JSON
{
"$ref": "#/components/schemas/PortalResponse"
}401 — CONFIRMATION_REQUIRED — sudo grant missing/expired
402 — BILLING_NOT_CONFIGURED
Code samples
TypeScript
TypeScript
import { firecase } from "@firecase/sdk";
const result = await firecase.post("/billing/portal", { /* body */ });
console.log(result);Python
Python
import firecase
result = firecase.post("/billing/portal", json={})
print(result)curl
Bash
curl -X POST https://api.firecase.ai/v1/billing/portal \
-H "Authorization: Bearer $FIRECASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'