---
title: "Create a Stripe Customer Portal session"
method: POST
path: "/v1/billing/portal"
tags: ["billing"]
---

# Create a Stripe Customer Portal session

`POST /v1/billing/portal`

## Request

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

Returns a Stripe-hosted customer-portal URL where the caller can manage payment methods, switch plans, and cancel. Requires that the API key already has a linked Stripe customer (i.e. has completed at least one checkout).

## Cookies

- `ctix_session` string, nullable

## Response `200`

Successful Response

- PortalResponse
  - `portal_url` string, required

## Other responses

- `422`: Validation Error

---

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