SendLayer API Error Codes

If your API call is unsuccessful, an error code and message will be returned in JSON. Below is a list of the error codes:

CodeMessage
1Missing SenderAPIKey
2Missing FromName
3Missing FromEmail
4Missing ReplyToName
5Missing ReplyToEmail
6Missing ToName
7Missing ToEmail
8Missing Subject
9Missing ContentType
10Missing HTMLContent
11Missing PlainContent
12Invalid user
13Invalid sender API key
14Recipient email is suppressed
15Invalid TemplateID
16Invalid TargetListID
17Email quota reached
18Recipient name or email address is missing
19Recipient email address is invalid
20There is no recipient set for the email OR The number of recipients exceeds the allowed recipient email address count
21CC name or email address is missing
22CC email address is invalid
23Invalid from email address format
24BCC email addresses must be set as an array
25BCC name or email address is missing
26BCC email address is invalid
27The number of BCC email addresses exceed the allowed email address count
28Reply-To email addresses must be set as an array
29Reply-To name or email address is missing
30Reply-To email address is invalid
31The number of Reply-To email addresses exceed the allowed email address count
32Domain is not activated
404Resource not found
422Invalid request parameters
429Too many requests

Example Error Response

{
    "Errors": [
        {
            "Code": 13,
            "Message": "Invalid SenderAPIKey"
        }
    ]
}