curl --request POST \
--url https://api.mnemom.ai/v1/orgs/{org_id}/billing/portal-session \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"return_url": "<string>"
}
'{
"url": "<string>"
}Mints a single-use URL into Stripe’s hosted Customer Portal where the org admin can view invoices, download PDFs, update payment methods, change billing details, and manage their subscription. The portal is the primary surface for invoice access — there is no direct invoice API. owner and admin only (the portal is a mixed read+mutate surface; auditors have a separate read-only path via GET /orgs/{org_id}/billing/summary).
curl --request POST \
--url https://api.mnemom.ai/v1/orgs/{org_id}/billing/portal-session \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"return_url": "<string>"
}
'{
"url": "<string>"
}Supabase JWT token in Authorization: Bearer header
Organization identifier (e.g. org-abc12345)
Where Stripe redirects the customer after they finish in the portal. Must be https://*.mnemom.ai. Defaults to the dashboard billing page.
Portal session created. Redirect the customer to url.