credits

Purchase Overage Pack

DISABLED. This used to grant credits directly with no payment — a faucet that, with free accounts now active, would let anyone self-grant unlimited credits. Credit packs are now retired entirely (POST /v1/billing/credit-pack 410s too). Kept as a 410 so any stale client gets a clear message.

post/v1/credits/purchase

Request

  • Base URL: https://api.theagentc.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.theagentc.io/v1/credits/purchase
  • Auth: HTTP bearer

Request body

packstring required

Size of overage pack to purchase

Example request

{
  "pack": "medium"
}

Response

Successful Response

successboolean required

Whether purchase was successful

new_balanceinteger required

Updated credit balance

credits_addedinteger required

Credits added by this pack

price_centsinteger required

Price paid in cents

messagestring required

Confirmation message

Example response

{
  "credits_added": 300,
  "message": "Successfully purchased 300 credits for $60.00",
  "new_balance": 400,
  "price_cents": 6000,
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.