---
title: "Create a customer Stripe Billing Portal session"
method: POST
path: "/subscriptions/{id}/portal"
tags: ["Subscriptions"]
---

# Create a customer Stripe Billing Portal session

`POST /subscriptions/{id}/portal`

## Request

- Base URL: `https://api.madethis.com/v1`
- URL: `https://api.madethis.com/v1/subscriptions/{id}/portal`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `returnUrl` string, uri

## Response `201`

Success envelope.

- object
  - `data` object, required
    - `url` string, uri, required
  - `hint` string: One-sentence orientation for agents.
  - `next_action` string: The literal next call an agent would chain.

## Other responses

- `default`: Error envelope — machine-readable `code` plus a docs link.

---

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