Skip to main content
POST
/
v1
/
settings
/
billing
/
portal
Create a Stripe Billing Portal session
curl --request POST \
  --url https://api.trulayer.ai/v1/settings/billing/portal \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "return_url": "<string>"
}
'
{
  "url": "<string>"
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Body

application/json
return_url
string<uri>
required

Redirect target after the user exits the portal.

Response

Portal session URL

url
string
required

Stripe-hosted billing portal session URL.