---
title: "Create Portal"
method: POST
path: "/api/billing/portal"
tags: ["billing"]
---

# Create Portal

`POST /api/billing/portal`

## Request

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

Create a Stripe Customer Portal session for managing subscription.

## Request body

- PortalRequest: Request to create a customer portal session.
  - `return_url` string, required

## Response `200`

Successful Response

- PortalResponse: Response with portal URL.
  - `portal_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
