Call the REST API
Every endpoint is a POST with a JSON body. An absent body counts as {}; a field the endpoint does not know is refused.
Base address
https://api.manitu.de/v1
Authentication
Send exactly one - two credentials in one request are refused, never resolved:
X-API-KeyAn API key from the customer panel.AuthorizationBearer <token> - an OAuth token or an API key.Answers
Success and failure each have one frame. The endpoint's own answer is in data. Branch on the error's code - never on its message, which may be reworded or translated.
Success
{
"status": {
"type": "success",
"code": 200
},
"warnings": [
{
"level": "warning",
"reason": "string",
"pointer": "string",
"params": {},
"message": "string"
}
],
"meta": {},
"data": {
"…": "…"
}
}Failure
{
"status": {
"type": "error",
"code": 400
},
"errors": [
{
"code": "INVALID_INPUT",
"reason": "required",
"pointer": "string",
"params": {},
"message": "string",
"doc": "string",
"parameter": "string",
"options": [
{
"value": "string",
"label": "string"
}
],
"supply_in": {}
}
],
"warnings": [
{
"level": "warning",
"reason": "string",
"pointer": "string",
"params": {},
"message": "string"
}
],
"meta": {}
}Statuses each endpoint lists the ones it can answer
200Success.400The input is wrong, or the request itself (INVALID_INPUT). Each entry names its field and its reason - correct the input and call again.401No credential was presented, or it was not recognised (UNAUTHENTICATED).403The credential is valid, but may not do this (PERMISSION_DENIED). The reason says why - another credential is the way, not a repeat.404What the call names does not exist, or not for this caller (NOT_FOUND). Look it up again - do not guess another.409Not possible in the current state (PRECONDITION_FAILED). The reason says what stands in the way; the same call may succeed once it has changed.429Too many calls. The Retry-After header says when to try again.500The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.503The channel this operation forwards through is unavailable.How many calls the API takes, and what a 429 says: Rate limits.
Every class and reason a failure or a warning names, with its params: Errors.
OpenAPI
The full description as openapi.json (OpenAPI 3.1) - generate a client from it, or try the endpoints in the browser.