> For the complete documentation index, see [llms.txt](https://startbutton.gitbook.io/startbutton-product-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://startbutton.gitbook.io/startbutton-product-api/getting-started/authentication.md).

# Authentication

Startbutton uses two types of API keys, depending on the endpoint you're calling:

| Key type     | Used for                                                                                                       | Header format                      |
| ------------ | -------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| Public key   | Collection-type endpoints (Accept Payments, all Server-to-Server Integration methods except Card)              | `Authorization: Bearer PUBLIC_KEY` |
| Secret key   | Payout, wallet, and account-management endpoints (Transfer, Get Wallet Balance, Subscriptions, Re-charge Card) | `Authorization: Bearer SECRET_KEY` |
| Content-type |                                                                                                                | `application/json`                 |

Each endpoint's reference page states which key type it requires. Both keys are available from **Settings → API Keys** on your Startbutton dashboard.
