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

# Create Portal Session

`POST /api/v1/billing/portal-session`

## Request body

- PortalSessionRequest
  - `return_url` string, required — Absolute URL Stripe returns to when the user leaves the billing portal. Must be https on an inkbox.ai host (localhost allowed in dev).

## Response `200`

Successful Response

- PortalSessionResponse
  - `url` string, required — Stripe billing portal session URL.

## Other responses

- `422` — Validation Error
- `4XX` — Client error with Support Agent information.
- `5XX` — Server error with Support Agent information.

---

[API](https://skmtc.dev/inkbox/apis/inkbox-api.md) · [All operations](https://skmtc.dev/inkbox/apis/inkbox-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/inkbox/inkbox-api/revisions/31f357e7e6f8/schema)
