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

# Create Portal Session

`POST /api/v1/billing/portal`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/billing/portal`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Create Stripe Billing Portal session.

## Request body

- CreatePortalSessionRequest: Request schema for creating billing portal session.
  - `return_url` string, required: URL to return to from billing portal

## Response `200`

Successful Response

- CreatePortalSessionResponse: Response schema for billing portal session.
  - `portal_url` string, required: Stripe Billing Portal URL

## Other responses

- `422`: Validation Error

---

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