Unified Responses

All json success responses are wrapped in an extra Data object. In practice it may look like this:

{
    "Data":
    {
        "Token": "Some token value",
        "User": {  }
    }
}

Likewise, the error responses have their own wrap object Errors. This is, as the name implies, an array of errors, where each contains a Message and optionally additional ErrorData. An error response can look like this:

 {
    "Errors":
    [
        {
            "Message": "An explanation of the error",
            "ErrorData": {  }
        },
        {
            "Message": "An explanation of another error",
        }
    ]
}