Welcome to the Trable API Documentation. This GitHub Repo describes the API provided by the main Trable application which is used by the frontend and client mobile apps.
This project is still very early in the design phase and is subject to change. New changes will be progressively added to this documentation and some functionality may be completely scrapped.
Most API routes require authentication. This is done via JWT (JSON Web Tokens) authentication. The key is provided via the Authorization header as described below:
Authorization: Bearer <JWT>
The JWT payload contains this data:
key | description |
---|---|
id | The user/entity id |
iat | Timestamp when the token was issued, used to invalidate old tokens |
The API will send responses in the JSON format. When an error occurrs while executing an API request, a JSON payload including a status code (which corresponds to the HTTP status code) and an error message will be returned. See example below:
{
"status": 500,
"message": "A description of the error occurred"
}
Browse available API routes doucmentation by clicking on the link below