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

# API reference

> Every operation, grouped by what it works on

Every operation is listed in the sidebar under the thing it works on. Each page has the
parameters, the responses with an example, the errors and a playground.

```text theme={null}
https://api.donate.gg/api/v2
```

* Operations marked with a key need `donate-api-key`. The rest are public.
  [Authentication](https://docs.donate.gg/api/authentication.md)
* An error is `{ "code", "message" }`, and a status means one thing on every operation.
  [Errors](https://docs.donate.gg/api/errors.md)
* A list is `{ "items", "nextCursor" }`, a recipient inside another response is a reference
  `{ "type", "id" }`, and money is a whole number in a string.
  [Pagination and formats](https://docs.donate.gg/api/pagination-and-formats.md)
* The last group in the sidebar, **Earlier version (v1)**, holds the v1 operations. Each has its
  own page and names the v2 operation that does its job. [Versions](https://docs.donate.gg/api/versions.md) explains when
  you need one.

## Find the operation for a task

| You want to | Operation |
| - | - |
| Find a charity or campaign by name | [`GET /v2/beneficiaries?term=`](https://docs.donate.gg/api-reference/beneficiaries/list) |
| Turn references into names, images and links | [`GET /v2/beneficiaries/lookup?ids=`](https://docs.donate.gg/api-reference/beneficiaries/list-by-ids) |
| List every charity, for a directory or a ranking | [`GET /v2/charities`](https://docs.donate.gg/api-reference/charities/list) |
| Show a charity in full | [`GET /v2/charities/{charityId}`](https://docs.donate.gg/api-reference/charities/get) |
| Show a charity's messages | [`GET /v2/charities/{charityId}/messages`](https://docs.donate.gg/api-reference/charities/list-messages) |
| List campaigns | [`GET /v2/campaigns`](https://docs.donate.gg/api-reference/campaigns/list) |
| Show a campaign in full, with its total | [`GET /v2/campaigns/{campaignId}`](https://docs.donate.gg/api-reference/campaigns/get) |
| Show a campaign's messages | [`GET /v2/campaigns/{campaignId}/messages`](https://docs.donate.gg/api-reference/campaigns/list-messages) |
| List the chains a campaign takes deposits on | [`GET /v2/campaigns/{campaignId}/deposit-chains`](https://docs.donate.gg/api-reference/campaigns/list-deposit-chains) |
| Get a deposit address for a campaign | [`POST /v2/campaigns/{campaignId}/deposit-addresses`](https://docs.donate.gg/api-reference/campaigns/create-deposit-address) |
| Follow a deposit to a campaign address | [`GET /v2/campaigns/{campaignId}/deposits/{chainId}/{transactionHash}`](https://docs.donate.gg/api-reference/campaigns/get-deposit) |
| Create a config | [`POST /v2/configs`](https://docs.donate.gg/api-reference/configs/create) |
| Read any config | [`GET /v2/configs/{configId}`](https://docs.donate.gg/api-reference/configs/get) |
| List your configs | [`GET /v2/configs`](https://docs.donate.gg/api-reference/configs/list) |
| Quote the fee a donation pays | [`GET /v2/configs/{configId}/fee`](https://docs.donate.gg/api-reference/configs/get-fee) |
| See what your config has received | [`GET /v2/configs/{configId}/stats`](https://docs.donate.gg/api-reference/configs/get-stats) |
| Rank the donors to your config | [`GET /v2/configs/{configId}/donors`](https://docs.donate.gg/api-reference/configs/list-donors) |
| See who a coin pays and what it has donated | [`GET /v2/coins/{chainId}/{address}`](https://docs.donate.gg/api-reference/coins/get) |
| Break a coin's total down by config | [`GET /v2/coins/{chainId}/{address}/stats`](https://docs.donate.gg/api-reference/coins/get-stats) |
| List donating coins, ranked | [`GET /v2/coins`](https://docs.donate.gg/api-reference/coins/list) |
| Rank coin creators | [`GET /v2/coin-creators`](https://docs.donate.gg/api-reference/coins/coin-creators/list) |
| Rank the coins of your donation source | [`GET /v2/donation-sources/{chainId}/{address}/coins`](https://docs.donate.gg/api-reference/coins/donation-sources/list-coins) |
| Show the donations to a charity | [`GET /v2/charities/{charityId}/donations`](https://docs.donate.gg/api-reference/charities/list-donations) |
| Show the donations to a campaign | [`GET /v2/campaigns/{campaignId}/donations`](https://docs.donate.gg/api-reference/campaigns/list-donations) |
| Follow a donation that crosses chains | [`GET /v2/donation-transfers`](https://docs.donate.gg/api-reference/donations/donation-transfers/list) |
| Read one transfer by its id | [`GET /v2/donation-transfers/{transferId}`](https://docs.donate.gg/api-reference/donations/donation-transfers/get) |
| List the registers a charity can be requested from | [`GET /v2/registers`](https://docs.donate.gg/api-reference/charity-requests/registers/list) |
| Search a register | [`GET /v2/registers/{registerId}/entries`](https://docs.donate.gg/api-reference/charity-requests/registers/list-entries) |
| Ask for a charity that is not listed | [`POST /v2/charity-requests`](https://docs.donate.gg/api-reference/charity-requests/create) |
| Read where a charity request stands | [`GET /v2/charity-requests/{registerId}/{registrationNumber}`](https://docs.donate.gg/api-reference/charity-requests/get) |
| List the chains a donation can be made on | [`GET /v2/chains`](https://docs.donate.gg/api-reference/reference/chains/list) |
| List campaign categories | [`GET /v2/categories`](https://docs.donate.gg/api-reference/reference/categories/list) |

The [guides](https://docs.donate.gg/quickstart.md) show these calls in order, with example responses.

## Machine-readable

| File | URL |
| - | - |
| OpenAPI 3.1 | `https://api.donate.gg/api/openapi` |
| Postman collection | `https://api.donate.gg/api/postman` |


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