---
title: "Stripe session secrets"
method: POST
path: "/v2/billing/session"
tags: ["billing"]
---

# Stripe session secrets

`POST /v2/billing/session`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/billing/session`
- Auth: HTTP bearer

Create Stripe Customer Session and SetupIntent client secrets.

## Response `200`

Successful Response

- SessionResponse: Stripe client secrets needed by the billing UI.
  - `client_secret` string, required: Customer Session client secret for Stripe Elements.
  - `setup_intent_client_secret` string, required: Off-session SetupIntent client secret to confirm a new payment method.
  - `expires_at` integer, required: Unix epoch seconds when the session expires.

---

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