Appearance
Getting Started
Access Tokens
You will get the access token from us. (JWT)
Don't have one? Contact us
WARNING
Please use this token only for server to server comunication. Don't use it for api requestes on the client.
Once you have your access token, there are two ways to pass it to the API, via the access_token query parameter, or in the request's Authorization Header.
Query Parameter
?access_token=<token>
Authorization Header
Authorization: Bearer <token>
Endpoints
REST
https://bcpro.be/cms
GraphQL
https://bcpro.be/cms/client/graphql
Rate Limiting
Up to 20 requests per second are allowed.
WARNING
The request must be completed within 5 seconds, otherwise it will be aborted.
Error Codes
| Error Code | HTTP Status | Description |
|---|---|---|
INVALID_CREDENTIALS | 401 | Username / password or access token is wrong |
TOKEN_EXPIRED | 401 | Provided token is valid but has expired |
ROUTE_NOT_FOUND | 404 | Endpoint does not exist |
REQUESTS_EXCEEDED | 429 | Hit the rate limit |
SERVICE_UNAVAILABLE | 503 | Could not use external service |