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

# Create Portal Session

`POST /billing/portal`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/billing/portal`
- Auth: none declared

## Query parameters

- `return_to` string, nullable

## Response `200`

Successful Response

- PortalResponse
  - `url` string, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-04** `eb694aedc555`: 2 info
  - added the new optional `query` request parameter `return_to`
  - added the non-success response with the status `422`

[Operation history](https://skmtc.dev/stardrift/apis/stardrift-api/changes/billing/portal/post.md)

---

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