API key header
Include your API key in every request using thedonate-api-key header:
Error responses
If authentication fails, the API returns one of the following errors:| Status | Code | Description |
|---|---|---|
400 | MISSING_API_KEY | The donate-api-key header was not included in the request |
403 | INVALID_API_KEY | The provided API key does not match any developer account |
Keeping your key secure
- Store your API key in environment variables, never hardcoded
- Do not commit it to version control
- If your key is compromised, contact us at support@donate.gg to have it rotated
Don't have an API key yet?
Apply for API access