Introduction
This documentation aims to provide all the information you need to work with our API.
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>
Authenticating requests
To authenticate requests, include an
Authorization
header with the value
"Bearer {YOUR_AUTH_KEY}"
.
All authenticated endpoints are marked with a
requires authentication
badge in the documentation below.
You can retrieve your token by visiting your dashboard and clicking Generate API token .
Endpoints
GET api/user
Example request:
curl --request GET \
--get "http://localhost:8000/api/user" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/user"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response :
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
GET api/healthcheck
Example request:
curl --request GET \
--get "http://localhost:8000/api/healthcheck" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"http://localhost:8000/api/healthcheck"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"status": "up",
"services": {
"database": "up",
"redis": "up"
}
}
Received response :
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.