Skip to Content
SendlySendly
API ReferenceBilling

Open the Stripe billing portal

POST
/api/users/me/projects/{id}/billing-portal

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.

cookiebetter-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*string

Project id.

Response Body

OK

application/json
  1. response
url*string
Formaturi
status?"action_required"
Value in"action_required"
expires_in?integer

Seconds the /go/ link stays valid.

what?string
instruction?string
Example Request
curl -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"}