---
title: "Purchase credit pack via Stripe"
method: POST
path: "/api/v1/agent/credits/purchase"
tags: ["agent"]
---

# Purchase credit pack via Stripe

`POST /api/v1/agent/credits/purchase`

## Request

- Base URL: `https://api.trueight.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.trueight.com/api/v1/agent/credits/purchase`
- Auth: none declared

Create a Stripe Checkout session for a one-time credit pack purchase.

Returns a redirect URL — send the user or agent operator to this URL
to complete payment. Credits are added to the account automatically
after successful payment.

**Available packs:** 20 or 100 (in GBP).

**Rate limit:** 10/minute

## Request body

- CreditPurchaseRequest: Purchase a prepaid credit pack via Stripe Checkout.
  - `pack` string, required: Credit pack size: '20' (£3.00) or '100' (£15.00)

## Response `200`

Stripe Checkout session URL

- CheckoutSessionResponse: Stripe Checkout session for credit pack purchase.
  - `sessionId` string, required: Stripe Checkout session ID
  - `url` string, required: Redirect URL — send the user here to complete payment

## Other responses

- `400`: Invalid pack size
- `422`: Validation Error
- `503`: Credit packs not yet configured

---

[API](https://skmtc.dev/trueight/apis/tru8-evidence-research-api.md) · [All operations](https://skmtc.dev/trueight/apis/tru8-evidence-research-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trueight/apis/tru8-evidence-research-api/revisions/5684065fa01a?raw)
