---
title: "Create billing portal session"
method: POST
path: "/api/subscriptions/billingPortal"
tags: ["Subscriptions"]
---

# Create billing portal session

`POST /api/subscriptions/billingPortal`

Create a Stripe billing portal session for the authenticated user

## Response `200`

Billing portal URL

- BillingPortal
  - `url` string, required

## Other responses

- `401` — Unauthorized
- `403` — Not available in demo mode
- `409` — User has no Stripe customer
- `422` — Validation failed
- `502` — Stripe upstream failed

---

[API](https://skmtc.net/cobaltpf/apis/cobalt-api.md) · [All operations](https://skmtc.net/cobaltpf/apis/cobalt-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cobaltpf/cobalt-api/revisions/8ef0dfb5d23c/schema)
