API ReferenceBilling
Open the Stripe billing portal
POST
A dashboard session gets the Stripe billing portal URL. Any other caller gets a single-use /go/ link. A person whose Sendly Pro was bought through a mobile store gets a link to that store's subscription page.
Requires the billing:write scope — Start a checkout, change spending limits, open the billing portal, cancel or refund.
cookie
better-auth.session_token<token>BetterAuth session cookie. Used by the dashboard / browser clients. When present, the active project is taken from the x-project-id header.
id*stringProject id.
OK
application/json- response
url*stringFormat
uristatus?"action_required"Value in
"action_required"expires_in?integerSeconds the /go/ link stays valid.
what?stringinstruction?stringcurl -X POST 'https://api.sendly.now/api/users/me/projects/string/billing-portal'Example Response
{ "url": "http://example.com", "status": "action_required", "expires_in": 0, "what": "string", "instruction": "string"}