> ## Documentation Index
> Fetch the complete documentation index at: https://docs.krypta-pay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API reference

> Every public KryptaPay endpoint, with request and response examples.

## Base URLs

| Environment | Base URL |
| - | - |
| Sandbox | `https://staging.api.krypta-pay.com` |
| Production | `https://api.krypta-pay.com` |

## Authentication

Send your secret key as a bearer token on every request. See [Authentication](https://docs.krypta-pay.com/authentication.md) for environments and scopes.

```bash theme={null}
curl https://staging.api.krypta-pay.com/v1/wallets \
  -H "Authorization: Bearer $KRYPTAPAY_API_KEY"
```

## Conventions

* Responses are wrapped in `{ "ok": true, "data": … }` or `{ "ok": false, "error": { "code", "message" } }`.
* Amounts are decimal strings in major units (`"1500"`, `"12.50"`).
* Lists are cursor-paginated with `limit`, `cursor` and `nextCursor`.
* Payouts and conversions accept an `Idempotency-Key` header for safe retries.

Details in [Requests and responses](https://docs.krypta-pay.com/requests-and-responses.md) and [Errors](https://docs.krypta-pay.com/errors.md).

## Try it

Each endpoint page has a playground. Pick **Sandbox** as the server and paste a `kp_sandbox_…` key to send real requests to the sandbox.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.