How to authenticate with the Bleepay API — bearer tokens and API keys.The Bleepay API uses Bearer tokens (JWTs) for most endpoints. The authentication method depends on who you are and what you’re doing.
Authentication methods
Bearer token (JWT)
The most common method. Obtain a token by signing in, then include it in all subsequent requests.Obtaining a token
User sign-in — for payers using a wallet:Using the token
Include it as a Bearer token in theAuthorization header:
Token types
Bleepay JWTs encode the authentication method:
API keys provide scoped access to business resources and widget management endpoints. They cannot access user management endpoints.
Client secret
Widget public endpoints accept either a JWT or a client secret header:Security notice: Never expose client secrets in client-side code, public repositories, or logs. Client secrets are shown only once at the time of widget creation.
HTTP status codes
Rate limits
Each endpoint has its own rate limit. The limits below are per-endpoint (not per scope):
When a limit is exceeded, the API returns
429 Too Many Requests.