---
title: "Top up. Unpaid returns an x402 challenge; present tx_hash to settle."
method: POST
path: "/api/credits"
---

# Top up. Unpaid returns an x402 challenge; present tx_hash to settle.

`POST /api/credits`

## Request

- Base URL: `https://genie.locker`
- URL: `https://genie.locker/api/credits`
- Auth: none declared

## Request body

- object
  - `usd` number: Amount to quote
  - `tx_hash` string: A settled Base transaction. Credits exactly once.

## Response `200`

Credited

## Other responses

- `402`: x402 challenge

---

[API](https://skmtc.dev/genie/apis/genie-locker.md) · [All operations](https://skmtc.dev/genie/apis/genie-locker/llms.txt) · [OpenAPI document](https://skmtc.dev/genie/apis/genie-locker/revisions/9ace85ce8948?raw)
