---
title: "POST /billing/portal"
method: POST
path: "/billing/portal"
---

# POST /billing/portal

`POST /billing/portal`

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/billing/portal`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Request body

- object: Request body for generating a Stripe customer portal link
  - `returnUrl` string, uri: URL to redirect to when the user exits the billing portal

## Response `200`

OK

- object: Response containing a Stripe checkout or portal session URL
  - `url` string, uri, nullable, required: Stripe-hosted session URL, null if session creation failed

---

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