When a request fails, data is null and error describes the problem.
{
"data": null,
"error": {
"code": "UNAUTHORIZED",
"message": "API key is invalid or revoked."
}
}Status and error codes
| HTTP | error.code |
When |
|---|---|---|
| 400 | BAD_REQUEST |
A path id is not a UUID. |
| 401 | UNAUTHORIZED |
The key is missing, unknown or revoked. |
| 404 | NOT_FOUND |
The club, team, match or player is not in your club. |
| 405 | BAD_REQUEST |
The method is not allowed on this route. Only the insight URLs accept POST. |
| 500 | INTERNAL_ERROR |
Something failed on our side. Retry after a short wait. |
| 503 | INTERNAL_ERROR |
Insight generation is not configured, or the generator could not be reached. |
Anything outside your club returns 404, not 403, so a key cannot be used to discover other clubs' data.
