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

# Open the customer billing portal

`POST /v1/billing/portal`

## Request

- Base URL: `https://api.stackdata.io`
- URL: `https://api.stackdata.io/v1/billing/portal`
- Auth: one of:
  - API key in cookie `sd_session`
  - HTTP bearer

## Response `200`

Redirect target.

- object
  - `url` string, uri

## Other responses

- `401`: No valid session (cookie or Bearer token).
- `404`: No billing account yet.
- `502`: Portal could not be opened.

---

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