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

# Create Portal

`POST /api/stripe/portal-session`

Create a Stripe Billing Portal session.

Errors if user is in an org (admin-managed billing).

Returns:
    Portal session URL to redirect the user.

## Query parameters

- `frontend_origin` string, nullable

## Response `200`

Successful Response

- PortalSessionResponse — Response with portal session URL.
  - `url` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-18** `abf76937a751` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/api/stripe/portal-session/post.md)

---

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