An invalid request

Here's an example response to a request with an invalid API key.

For a more detailed look at the various error subcodes, their meaning and parent HTTP status codes, please refer to this List of error codes, which will be periodically updated as the API's error handling evolves

$ curl -i -X GET "https://onfleet.com/api/v2/auth/test" \
       -u "thisIsNotAValidAPIKey:"
HTTP/1.1 401 Unauthorized

{
  "code": "InvalidCredentials",
  "message": {
    "error": 1102,
    "message": "The API key provided is invalid.",
    "request": "ec76efd0-b8c0-484a-ad5f-725c5bbee869",
    "cause": "This key does not exist or is no longer active."
  }
}