---
title: "Create a Stripe Billing Portal session (plan changes, payment methods, cancellation)"
method: POST
path: "/api/rightos/billing/portal"
tags: ["billing"]
---

# Create a Stripe Billing Portal session (plan changes, payment methods, cancellation)

`POST /api/rightos/billing/portal`

## Request

- Base URL: `https://rightos.i-s3.com`
- URL: `https://rightos.i-s3.com/api/rightos/billing/portal`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-rightos-key`

## Response `200`

Portal URL to redirect the user to

- object
  - `url` string

## Other responses

- `401`: Missing or invalid API key (error: missing_api_key | invalid_api_key)
- `403`: demo_org
- `404`: no_billing_account — the organization has no Stripe customer yet
- `503`: billing_not_configured

---

[API](https://skmtc.dev/i-s3/apis/rightos-right-api.md) · [All operations](https://skmtc.dev/i-s3/apis/rightos-right-api/llms.txt) · [OpenAPI document](https://skmtc.dev/i-s3/apis/rightos-right-api/revisions/10020536e345?raw)
