API Errors

Any request made to the Sentori API that cannot be completed successfully will result in a 4xx HTTP status code. The response body will contain a JSON object giving more details about the specific error; a unique error code and a human readable message.

Example

HTTP/1.1 403 Forbidden
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Sat, 1 Jan 2000 00:00:00 GMT
Content-Length: 79

{
    "Code":1,
    "Message":"API Key not valid"
}

Error List

API CodeAPI MessageHTTP StatusDescription
-1Bad request400The API request is malformed.
1API Key not valid403The specified API doesn't have access to any Sentori Accounts.
2Failed to set account403The API Key appears valid but the Sentori Account cannot be accessed.
3Account not found403The API Key appears valid but the Sentori Account doesn't appear to exist.
100Email Address not valid400The Email Address in the request isn't a valid email address.
101Contact not found404The Contact specified in the request couldn't be found in the Sentori Account
102Email Address already in use400The Email Address in the request is already in use by another Contact.
103Contact Fields not valid400The Contact Fields (or there values) in the request are not valid for this Sentori Account.
104Email Addresses not valid400The Email Address in the request URI and body must match.
200Mailing List not found404The Mailing List specified in the request couldn't be found in the Sentori Account.
300Document not found404The Document could not be found.
301Document is not of expected type400The Document is not of the expected type. e.g. was expecting an Email but Document is an SMS