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

# API reference

> REST endpoints for scraping, mapping and your account.

The API lives at `https://api.gainflow.ai`. Requests and responses are JSON in `snake_case`.

```bash theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://api.gainflow.ai/v1/account/balance \
  -H "Authorization: Bearer $GAINFLOW_API_KEY"
```

* **Auth:** `Authorization: Bearer gf_live_...`. See [Authentication](https://docs.gainflow.ai/authentication.md).
* **Errors:** RFC 9457 problem details with a stable `code`. See [Errors](https://docs.gainflow.ai/errors.md).
* **Pagination:** list endpoints take `limit` (1 to 100, default 50) and `cursor`, and return `has_more` and `next_cursor`.
* **Retries:** send `Idempotency-Key` on paid `POST` requests. See [Idempotency](https://docs.gainflow.ai/idempotency.md).

Each endpoint page has a playground: paste your API key and send a real request.


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