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

# Create Portal

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

## Request

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

Create a Stripe Customer Portal session.
Only admins can access billing portal.

## Request body

- PortalSessionRequest
  - `return_url` string, required

## Response `200`

Successful Response

- PortalSessionResponse
  - `portal_url` string, required

## Other responses

- `422`: Validation Error

---

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