---
title: "Top up prepaid credit: pay once with x402 and get the token that debits on any API of the house."
method: POST
path: "/api/credito"
---

# Top up prepaid credit: pay once with x402 and get the token that debits on any API of the house.

`POST /api/credito`

## Request

- Base URL: `https://okfindex.com`
- URL: `https://okfindex.com/api/credito`
- Auth: none declared

Returns: { token, saldo_usd, guarde, usar, saldo_em }

## Query parameters

- `usd` number, required

## Response `200`

{ token, saldo_usd, guarde, usar, saldo_em }

- object
  - `token` string, required: Bearer token for the balance (`cred_…`). Shown ONCE — it cannot be recovered.
  - `saldo_usd` string, required: Credited balance.
  - `guarde` string, required: Warning that the token is the bearer of the credit.
  - `usar` string, required: How to present the token on paid routes.
  - `saldo_em` string, required: Where to check balance and statement.

## Other responses

- `400`: Package outside the list (0.1, 1, 5, 10 or 25).
- `402`: Unpaid — the body carries the x402 `accepts[]`.

---

[API](https://skmtc.dev/okfindex/apis/okf-index.md) · [All operations](https://skmtc.dev/okfindex/apis/okf-index/llms.txt) · [OpenAPI document](https://skmtc.dev/okfindex/apis/okf-index/revisions/4b13ca3c739f?raw)
