Authentication
The Paisr API uses JWT tokens to authenticate requests. To authenticate your requests, set the Authorization header for each request to Bearer <token>
, where <token>
is a valid access token.
How they work
You can configure access tokens in wo ways:
-
Dashboard
Navigate to the Developers > Access Tokens, create a new token, and select the permissions you want to attach.
-
API
Use the Tokens API to create or manage access tokens programmatically. Click here for a list of available permissions.
Your tokens carry many privileges so keep them secure! Do not share them in publicly visible places, such as committing them to GitHub or deploying them in client-side code. If your tokens are compromised, you must revoke them immediately or reach out to our team.
Rate limits
The API uses a number of safegaurds against bursts of incoming traffic to help maximise its stability. Users who send multiple requests in quick succession might see error responses that show up as status 429
. Up to 250 requests per minute are allowed. Treat these limits as maximums and don’t generate unnecessary load.
We may reduce limits to prevent abuse, or increase limits to enable high-traffic applications. If you suddenly see a rising number of rate limited requests, please contact support.