---
title: "Open the Stripe billing portal"
method: POST
path: "/v1/billing/portal"
tags: ["billing"]
---

# Open the Stripe billing portal

`POST /v1/billing/portal`

## Request

- Base URL: `https://api.hyperresearch.ai`
- URL: `https://api.hyperresearch.ai/v1/billing/portal`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `hr_session`

Creates a Stripe-hosted billing portal session and returns its URL. The browser returns to an allowlisted console path. No Stripe.js or publishable key is needed.

## Request body

- BillingSessionBody
  - `return_path` string

## Response `200`

Portal URL

- BillingSessionUrl
  - `url` string, required

## Other responses

- `400`: Invalid request
- `401`: Authentication failed
- `403`: Insufficient scope or plan
- `404`: Not found
- `429`: Rate limited or over quota
- `500`: Internal error

---

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