Every request to the SpherePay API must be authenticated using an API key. SpherePay uses Bearer token authentication — you pass your key in theDocumentation Index
Fetch the complete documentation index at: https://docs.spherepay.co/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header of every request. This page covers how to generate a key, how to use it, and how to handle authentication errors.
Obtain your API key
API keys are generated from the SpherePay dashboard:- Log in to spherepay.co/dashboard.
- Navigate to Developers → API Keys.
- Select Create New API Key.
- Copy the key immediately — it will not be shown again after you leave the page.
Make an authenticated request
Pass your API key as a Bearer token in theAuthorization header on every request:
Request headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer YOUR_API_KEY |
Content-Type | Yes for POST/PATCH | application/json |
Authentication errors
If your API key is missing, malformed, or invalid, the API returns a403 Forbidden response:
- The
Authorizationheader is formatted asBearer YOUR_API_KEYwith a single space betweenBearerand the key — no extra characters or quotes. - The key has not been revoked. Log in to the dashboard under Developers → API Keys to verify its status.
- You are sending the request over HTTPS, not HTTP.

