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

# API reference

> Base URLs, authentication and conventions for every endpoint

| Environment | Base URL | Key |
| - | - | - |
| Sandbox | `https://sandbox-api.luminpay.co` | `lmp_test_...` |
| Live | `https://api.luminpay.co` | `lmp_live_...` |

Send `Authorization: Bearer <key>` on every request and `Content-Type: application/json` on requests with a body. See [Authentication](https://docs.luminpay.co/authentication.md).

## Conventions

* **Money is sent as strings of digits**, never numbers, so nothing is lost to rounding. Naira amounts you send are whole naira (`"25000"`); naira amounts LuminPay returns are kobo (`"2500000"`). Coin amounts are in the coin's smallest unit; divide by 10 to the power of `scale`.
* **Ids are UUIDs.** A malformed id returns `400`.
* **Lists** return at most 100 items. Charges are paged with `cursor`.
* **Errors** follow one format. See [Errors](https://docs.luminpay.co/guides/errors.md).
* **Rate limit:** 100 requests a minute per IP address.

The pages in this section are generated from [openapi.json](https://raw.githubusercontent.com/LuminPay-Innovation-Lab/docs/main/openapi.json), which you can also import into Postman. See [Postman collection](https://docs.luminpay.co/guides/postman.md).


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