---
title: "Create customer portal session"
method: POST
path: "/api/v1/billing/portal"
tags: ["billing"]
---

# Create customer portal session

`POST /api/v1/billing/portal`

## Request

- Base URL: `https://api.cadencz.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cadencz.com/api/v1/billing/portal`
- Auth: HTTP bearer

Creates a Dodo Payments customer portal link for the authenticated workspace.

## Request body

- PortalRequest
  - `return_url` string, nullable

## Response `200`

Successful Response

- PortalResponse
  - `link` string, required

## Other responses

- `401`: Missing or invalid Supabase bearer token.
- `422`: Validation Error
- `503`: Required infrastructure or provider config is unavailable.

---

[API](https://skmtc.dev/cadencz/apis/cadencz-api.md) · [All operations](https://skmtc.dev/cadencz/apis/cadencz-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cadencz/apis/cadencz-api/revisions/3392fe5e93db?raw)
