Introduction
Get started with the Quark API
Base URL
Getting a token
In order to identify and authenticate people who are using the API, all requests must include must include the Authorization
header as shown:
This token can be obtained from your server dashboard.
Ratelimits
Ratelimits exist across the entirety of the Quark API in order to prevent abuse. Currently the limit is set to 500 requests every minute, across all the endpoints of the API.
Ratelimiting is done per-token on all endpoints which require authentication. Some endpoints do not require authentication, so ratelimits are done by IP address in this case. Endpoints requiring authentication do not count towards the same ratelimit counter as endpoints that do not require authentication.
Handling ratelimits
With every request made, the Quark API exposes headers in the returned responses which provide information about the status of the ratelimits.
X-RateLimit-Limit
is the total number of requests which may be made in a 60 second period and X-RateLimit-Remaining
is how many remaining requests may be made in the current 60 second period before a 429
response is returned.
Was this page helpful?