Skip to main content
POST
/
api
/
v1
/
billing
/
portal
Create Portal
curl --request POST \
  --url https://roughy-api-staging.fly.dev/api/v1/billing/portal \
  --header 'Authorization: Bearer <token>'
{
  "url": "https://billing.stripe.com/p/session/test_YWNjdF8xVFFUVWpJYXNJbjhwdmdxLF9TaGtaNnEyMG"
}

Documentation Index

Fetch the complete documentation index at: https://docs.roughy.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Either your Supabase session JWT (UI flows) or an API key minted via POST /api-keys (programmatic flows). Pass it as Authorization: Bearer <token>. The server inspects the token format and routes to JWT or API-key verification automatically.

Response

Successful Response

Response to POST /billing/portal. Frontend redirects to url.

url
string
required

Stripe-hosted Customer Portal URL. Redirect the user here to manage subscriptions, payment methods, and invoices. Stripe redirects back to the configured portal_return_url when the user is done.