Skip to main content
POST
/
orgs
/
{org_id}
/
billing
/
portal-session
Open the Stripe Customer Portal for this org
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>"
}

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Path Parameters

org_id
string
required

Organization identifier (e.g. org-abc12345)

Body

application/json
return_url
string<uri>

Where Stripe redirects the customer after they finish in the portal. Must be https://*.mnemom.ai. Defaults to the dashboard billing page.

Response

Portal session created. Redirect the customer to url.

url
string<uri>