When method call fails with HTTP code other than 200, usually a JSON object is returned also with more details:
Field | Type | Description |
---|---|---|
status | Always contains “error” string | |
code | API error code (don’t confuse with HTTP code) | |
message | Human-readable error message in English | |
Below you will find a list of almost all API error codes.
HTTP Code | API Code | Meaning and how to fix |
---|---|---|
400 | 111 | JSON parsing error. Check your JSON request syntax. |
400 | 118 | No DNS TXT records found. Add a DNS verification record to your domain with values returned by domain request |
400 | 121 | Timeout searching domain. DNS request has timed out. Please make sure your DNS provider is online and try again later. |
400 | 122 | DKIM record not found (almost the same as 120). Please add to your domain a DKIM record with key returned by domain request |
400 | 123 | DKIM record malformed. You should properly setup DKIM for your domain. |
400 | 124 | DKIM record does not match expected. Seems like you have changed the record. While it’s technically correct, it doesn’t match the one we expect. You should use DKIM key returned by domain request |
400 | 129 | Unknown DKIM validation error with reason distinct to the ones from 120-124 errors. Please check that you have correctly added a DKIM record with key returned by domain/get-dns-records method and try again. Please contact GMS support if the error still occurs. |
400 | 130 | The domain is not allowed according to Registry policy. Please use another domain. |
400 | 201 | The message body is missing. Check that your message body is being passed properly. |
400 | 202 | Sender email is missing. Enter the sender email. |
400 | 203 | Email subject is missing. Enter the subject. |
400 | 204 | Email recipients are passed improperly. Make sure that the recipient’s list is passed as an array where each recipient is an array with obligatory ‘email’ parameter. |
400 | 205 | Invalid sender email. Make sure the parameter is passed properly. |
400 | 206 | Sender email is not verified. To avoid this error please use an email on a verified domain. |
400 | 207 | MIME file type is incorrect. Check the file and the file type again. |
400 | 208 | Invalid attachment filename. Forbidden symbol ‘$symbol’. Rename files with the forbidden symbols. |
400 | 209 | The attached file names are duplicated. Rename files with the same names. |
400 | 210 | Inline attachment names are duplicated. Rename files with the same names. |
400 | 211 | Invalid inline attachment filename. Forbidden symbol ‘$symbol’. Rename files with the forbidden symbols. |
400 | 212 | Recipients passed improperly (‘substitutions’ array is not set). The possible maximum substitutions number has been exceeded or substitutions have incorrect filetype (string/integer is allowed). |
400 | 216 | Recipients passed improperly. ‘Metadata’ value should be a string or integer. Array for ‘metadata’ key is expected. |
400 | 217 | Too many metadata fields passed. Maximum 10 metadata fields allowed. |
400 | 218 | Recipients passed improperly. Metadata key length should be less than 64. |
400 | 219 | Recipients passed improperly. Metadata value length should less than 1024. |
400 | 220 | Metadata key should not be blank. Make sure the metadata key is passed. |
400 | 221 | The tag does not exist in the request or is invalid. Add the html <body> tag inside the <html> tag. The <body> tag is required to display HTML content. |
400 | 223 | The body is missing in the attachments ‘content’ or the void is transferred. Add the ‘content’ and specify a value for it. |
400 | 224 | Substitution name should contain latin characters, numbers “_” or “-” characters and start whit a letter. Make sure the substitution name is passed correctly. |
400 | 226 | Value of ‘track_links’ and ‘track_read’ must be equal to 0 for “template_engine”:“none”. Set parameters value equal to 0. |
400 | 303 | Events list contains an unsupported value or the event is not supported. Verify that the event list is entered correctly. |
400 | 304 | Webhook with the specified URL has not been found. Make sure the URL is passed correctly. |
400 | 305 | URL is not passed. Make sure the URL is passed correctly. |
400 | 601 | Template has not been found. Check the passed template id. |
400 | 602 | The template name is missing. Check the passed template name. |
400 | 603 | Template name passed in the request already belongs to another template. Use another name for this template. |
400 | 604 | Maximum number of templates has been reached. Delete already created templates to create new ones. The number of templates is limited to 10000. |
400 | 701 | Cause not found. Invalid reason for blocking email. Please contact GMS support. |
400 | 906 | Exceeded the daily email reset limit. You have used the entire available block reset limit. Try it tomorrow or contact GMS support to increase the limit. |
400 | 1000 | Missing recipient address. Specify the recipient address. |
400 | 1001 | Invalid recipient address value. Please enter a valid recipient address. |
400 | 1002 | Missing sender address. Specify the sender address. |
400 | 1003 | Sender address not verified. Verify the sender domain address. |
400 | 1004 | Invalid sender address value. Please enter a valid sender address. |
400 | 1005 | Sender name is too long. The sender name must be shorter. Please correct this value. |
400 | 1006 | Exceeded the daily limit of the email/subscribe method call. Try to repeat the call the next day. |
400 | 1100 | Missing domain name. Specify the domain to be verified. |
400 | 1101 | Invalid domain value. Please enter a valid domain value. |
400 | 1200 | Missing domain name. Specify the domain for validating. |
400 | 1201 | Invalid domain value. Please enter a valid domain value. |
400 | 1202 | Domain is not registered in UniOne. Please ask GMS support to help you solve the domain issue |
400 | 1301 | Invalid domain value. Specify the domain to be verified. |
400 | 1302 | Invalid limit value. The value of limit must be an integer in the range of 1 – 100. |
400 | 1303 | Invalid offset value. The value of offset must be greater than or equal to 0. |
400 | 1304 | Invalid offset value type. The value of offset must be an integer. |
400 | 1305 | Invalid limit value type. The value of limit must be an integer. |
400 | 1400 | Missing domain name. Specify the domain for validating. |
400 | 1401 | Invalid or non-existent domain. Either you have mistyped the domain name and should correct it or DNS changes have not yet propagated through DNS and you should wait a couple of hours and try again. There should be A, AAAA or MX record for domain. |
400 | 1402 | Domain is not registered in UniOne. Please ask GMS support to help you solve the domain issue |
400 | 1506 | Error in ‘headers’ field. This value should have object type. Please check your JSON and use object for ‘headers’ field, not array or string or whatever. |
400 | 1507 | Error in ‘headers’ field. This container should contain over 50 elements. Please limit ‘headers’ to no more than 50 elements. |
400 | 1508 | Error in ‘template_id’ field. There is no template with this ID. Make sure the template ID is correct. |
400 | 1509 | Error in ‘body’ field. This value should have object type. Please check your JSON and use object for ‘body’ field, not array or string or whatever. |
400 | 1510 | Error in ‘body.html’ field. The value should have a string type. Use string type for ‘body.html’ parameter. |
400 | 1511 | Error in ‘body.plaintext’ field. The value should have a string type. Use string type for ‘body.plaintext’ parameter. |
400 | 1512 | Error in ‘body.amp’ field. The value should have a string type. Use string type for ‘body.amp’ parameter. |
400 | 1516 | Error in ‘body.html’ field. Substitutions contain invalid values. Check the correct substitutions in the ‘body.html’ field. |
400 | 1517 | Error in ‘body.plaintext’ field. Substitutions contain invalid values. Check the correct substitutions in the ‘body.plaintext’ field. |
400 | 1518 | Error in ‘body.amp’ field. Substitutions contain invalid values. Check the correct substitutions in the ‘body.amp’ field. |
400 | 1519 | Error in ‘reply_to’ field. The value should have a string type. Use string type for ‘reply_to’ parameter. |
400 | 1520 | Error in ‘reply_to’ field. Invalid email. Check if the email is correct. |
400 | 1521 | Error in ‘from_name’ field. The value should have a string type. Use string type for ‘sender_name’ parameter. |
400 | 1522 | Error in ‘subject’ field. The value should have a string type. Use string type for ‘subject’ parameter. |
400 | 1524 | Error in ‘recipients’ field. This container should contain over 500 elements. Please limit ‘recipients’ to no more than 500 elements. |
400 | 1525 | Error in ‘options.send_at’ field. Make sure the date and time of the scheduled sending is no more than 24 hours in advance. |
400 | 1528 | Error in ‘global_language’ field. Language is not allowed. Please pass only one of ‘ru’, ‘en’, ‘ua’, ‘be’, ‘es’, ‘fr’, ‘pl’, ‘de’, ‘pt’, ‘it’ values. |
400 | 1529 | Error in ‘options.send_at’ field. This value should be greater thancurrent time. Set parameter value greater than current time. |
400 | 1530 | Error in ‘options.send_at’ field. This value should be of type string or this value is not a valid datetime. Use string type for ‘options.send_at’ parameter. Make sure the datetime is passed correctly. |
400 | 1532 | This collection should contain 4 elements or less. Please limit tags to no more than 4 elements. |
400 | 1533 | Error in ‘tags’ field. You can not create any more tags. Max tags number is 10000 Delete already created tags to create new ones. The number of tags is limited to 10000. |
400 | 1534 | One or more tags is too long, max. 50 characters. The tags must be shorter. Please correct this value. |
400 | 1535 | One or more tags contains invalid symbols. Make sure the tags is passed correctly. |
400 | 1601 1701 | Error in the ‘project’ field. Project section is absent. Correct JSON structure. |
400 | 1602 1702 | Error in the ‘name’ field. This value should not be blank. Use non-blank name. |
400 | 1603 1703 | Error in the ‘name’ field. It should have ‘string’ type. Use string type for ‘name’ parameter. |
400 | 1604 1704 | Error in the ‘name’ field. This value is too long. It should have 255 characters or less. Use shorter name. |
400 | 1605 1705 | Error in the ‘name’ field. Project with such a name already exists. Use unique project name or delete existing project first. |
400 | 1606 | Error in the ‘send_enabled’ field. This value should be of type bool. Set parameter value to true or false only. |
400 | 1607 | Error in ‘custom_unsubscribe_url_enabled’ field. This value should be of type bool. Set parameter value to true or false only. |
400 | 1608 1711 | Forbidden to use field ‘custom_unsubscribe_url_enabled’. Please contact GMS support. |
400 | 1609 1716 | Error in ‘country’ field. This value should be of type string. Use string type for ‘country’ parameter. |
400 | 1610 1717 | Error in ‘country’ field. This value is not a valid country. Make sure the ISO-3166 alpha-2 country code is passed correctly. |
400 | 1709 | Error in the ‘send_enabled’ field. The value should have a bool type. Set parameter value to true or false only. |
400 | 1710 | Error in ‘custom_unsubscribe_url_enabled’ field. The value should have a bool type. Set parameter value to true or false only. |
400 | 1714 1806 | Error in ‘project_id’ field. Project with ID:‘NNNN’ not exists. Project id is invalid. Maybe it was deleted or never existed? |
400 | 1715 1807 | Error in ‘project_id’ field. This value is not valid. Please check that you pass the project_id you have received by calling project/create method. |
400 | 1801 | Error in ‘project_api_key’ field. One of the two properties [‘project_api_key’ or ‘project_id’] is required. Don’t forget to send either project_id or project_api_key. |
400 | 1803 1902 | Error in the ‘project_api_key’ field. The value should have a string type. Use string type for ‘project_api_key’. |
400 | 1904 | Error in ‘project_id’ field. This value is not valid. The value should contain digits only. Use correct numbers-only format for ‘project_id’. |
400 | 2500 | Error in ‘editor_type’ field. ‘html’ is required. Make sure the ‘editor_type’ field is passed ‘html’. |
400 | 2501 | The template was created in a visual editor. Make sure the template is created in HTML editor. |
400 | 2502 | Error in ‘editor_type’ field. This value should not be blank. Pass ‘html’ in ‘editor_type’ field. |
400 | 2503 | Error in ‘id’ field. There is no template with this ID. Make sure the template ID is correct. |
400 | 2504 | Error in ‘headers’ field. This value should have object type. Please check your JSON and use object for ‘headers’ field, not array or string or whatever. |
400 | 2505 | Error in ‘headers’ field. This container should contain 50 elements or less. Please limit headers to no more than 50 elements. |
400 | 2600 | Error in ‘limit’ field. This value should be greater than or equal to 0. Set parameter value greater than or equal to 0. |
400 | 2601 | Error in ‘limit’ field. This value should be of type int. Use int type for ‘limit’ parameter. |
400 | 2602 | Error in ‘offset’ field. This value should be greater than or equal to 0. Set parameter value greater than or equal to 0. |
400 | 2603 | Error in ‘offset’ field. This value should be of type int. Use int type for ‘offset’ parameter. |
400 | 2700 | Error in ‘url’ field. This value should be of type string. Use string type for ‘url’ parameter. |
400 | 2701 | Error in ‘url’ field. This value should not be blank. Make sure the URL is passed. |
400 | 2702 | Error in ‘offset’ field. This value should be greater than or equal to 0. Set parameter value greater than or equal to 0. |
400 | 2706 | Error in ‘maxParallel’ field. This value should be of type int. Use int type for ‘maxParallel’ parameter. |
400 | 2707 | Error in ‘maxParallel’ field. This value should be between 5 and 100. Use a valid value of 5 to 100. |
400 | 2708 | Error in ‘events’ field. This value should be of type array. Use array type for ‘events’ parameter. |
400 | 2709 | Error in ‘events’ field. This value should not be blank. Use non-blank events. |
400 | 2710 | Error in ‘events’ field. Field ‘email_status’ is required. Add ‘email_status’ parameter. |
400 | 2711 | Error in ‘email_status’ field. This value ‘test’ is not a valid email_status. Add valid email statuses in the value. |
400 | 2712 | Error in ‘spam_block’ field. This value ‘test’ is not a valid spam_block. Add valid spam blocking events in the value. |
400 | 2713 | Error in ‘url’ field. Webhook domain name not found. Make sure the domain is passed correctly. |
400 | 2714 | Error in ‘status’ field. Invalid value, status could be one of ‘active’ or ‘disabled’. Set status ‘active’ or ‘disabled’. |
400 | 2715 | Error in ‘status’ field. This value should be of type string. Use string type for ‘status’ parameter. |
400 | 2800 | Error in ‘name’ field. This value should not be blank. Make sure the ‘name’ is passed. |
400 | 2801 | Error in ‘name’ field. The value should have a string type. Use string type for ‘name’ parameter. |
400 | 2802 | Error in ‘type’ field. The value should have a string type. Use string type for ‘type’ parameter. |
400 | 2803 | Error in ‘content’ field. The value should have a string type. Use string type for ‘content’ parameter. |
400 | 2804 | The size of the ‘content’ field must not exceed 7MB. Reduce the size of the ‘content’ field to 7MB (9786710 bytes in base64). |
400 | 2900 3000 3100 | Error in ‘email’ field. This value should not be blank. Make sure the email is passed. |
400 | 2901 3001 3101 | Error in ‘email’ field. This value should be of type string. Use string type for ‘email’ parameter. |
400 | 2903 | Error in ‘email’ field. This value is not a valid email address. Verify that email is entered correctly. |
400 | 3003 | Error in ‘email’ field. Email doesn’t exist. Email was not found in the suppression list. |
400 | 3004 | Error in ‘email’ field. Email cannot be deleted. Email cannot be removed from the suppression list. Probably because of the severe reason like ‘blocked’. |
400 | 3103 | Error in ‘cause’ field. This value should not be blank. Make sure the ‘cause’ is passed. |
400 | 3104 3200 | Error in ‘cause’ field. This value should be of type string. Use string type for ‘country’ parameter |
400 | 3106 | Error in ‘cause’ field. Cause ‘test’ not allowed. Please pass only one of the available values. |
400 | 3107 | Error in ‘created’ field. This value is not a valid datetime. Make sure the datetime is passed correctly. |
400 | 3202 | Error in ‘source’ field. This value should be of type string. Use string type for ‘source’ parameter. |
400 | 3203 | Error in ‘source’ field. Source ‘test’ not allowed. Please pass only one of the available values. |
400 | 3204 | Error in ‘start_time’ field. This value should be of type string. Use string type for ‘start_time’ parameter. |
400 | 3205 | Error in ‘start_time’ field. This value is not a valid datetime. Make sure the datetime is passed correctly. |
400 | 3206 | Error in ‘cursor’ field. This value should be of type string. Use string type for ‘cursor’ parameter. |
400 | 3207 | Error in ‘cursor’ field. Cursor ‘test’ not allowed. Please pass only one of the available values. |
400 | 3208 | Error in ‘limit’ field. This value should be of type int. Use int type for ‘limit’ parameter. |
400 | 3209 | Error in ‘limit’ field. This value should be greater than or equal to 0. Set parameter value greater than or equal to 0. |
400 | 3300 | Error in ‘start_time’ field. This value should not be blank. Make sure the ‘start_time’ is passed. |
400 | 3301 | Error in ‘start_time’ field. This value is not a valid datetime. Make sure the datetime is passed correctly. |
400 | 3302 | Error in ‘end_time’ field. This value is not a valid datetime. Make sure the datetime is passed correctly. |
400 | 3303 | Error in ‘limit’ field. This value should be positive. Set parameter value greater than or equal to 0. |
400 | 3304 | Error in ‘format’ field. Incorrect value of the event dump file format. Use ‘csv’ or ‘csv_gzip’ format only. |
400 | 3305 | Error in ‘delimiter’ field. Incorrect value of the event dump file delimiter. Use ‘delimiter’ ‘;’ or ‘,’ only. |
400 | 3308 | Error in ‘all_projects’ field. The user does not have the required roles. Projects methods are disabled by default. To enable them, contact support. |
400 | 3309 | User can have no more than 10 event dumps at a time. Delete already created dumps to create new ones. The number of dumps is limited to 10. |
400 | 3310 | Error in ‘start_time’ field. The interval start date cannot be earlier than ‘$time’. Make sure ‘start_time’ is in the allowed range. |
400 | 3311 | Error in ‘limit’ field. This value should be of type integer. Use int type for ‘limit’ parameter. |
400 | 3312 | Error in ‘delimiter’ field. This value should be of type string. Use string type for ‘delimiter’ parameter. |
400 | 3313 | Error in ‘format’ field. This value should be of type string. Use string type for ‘format’ parameter. |
400 | 3400 | Error in ‘filter’ field. This value should be of type object. Please check your JSON and use object for ‘filter’ field, not array or string or whatever. |
400 | 3401 | Error in ‘filter.job_id’ field. This value should be of type string. Use string type for ‘filter.job_id’ parameter. |
400 | 3402 | Error in ‘filter.status’ field. This value should be of type string. Use string type for ‘filter.status’ parameter. |
400 | 3403 | Error in ‘filter.status’ field. Status ‘dfdfs’ is invalid. Please enter a valid ‘filter.status’ parameter. |
400 | 3404 | Error in ‘filter.email’ field. This value should be of type string. Use string type for ‘filter.email’ parameter. |
400 | 3405 | Error in ‘filter.email’ field. This value ‘ewrewrew@dsfdfdds’ is not a valid email address. Check if the email is correct. |
400 | 3406 | Error in ‘filter.email_from’ field. This value should be of type string. Use string type for ‘filter.email_from’ parameter. |
400 | 3407 | Error in ‘filter.email_from’ field. This value ‘bitko82@gmailcom’ is not a valid email address. Check if the email is correct. |
400 | 3408 | Error in ‘filter.domain’ field. This value should be of type string. Use string type for ‘filter.domain’ parameter. |
400 | 3409 | Error in ‘filter.domain’ field. This value ‘test’ is not a valid domain. Please enter a valid domain value. |
400 | 3410 | Error in ‘filter.domain’ field. Domain ‘gmail.com’ different from the domain in the email. Make sure the domain is passed correctly. |
400 | 3411 | Error in ‘filter.delivery_status’ field. This value should be of type string. Use string type for ‘filter.delivery_status’ parameter. |
400 | 3412 | Error in ‘filter.delivery_status’ field. Status ‘63’ is invalid. Please enter a valid ‘filter.delivery_status’ parameter. |
400 | 3413 | Error in ‘filter.campaign_id’ field. This value should be of type string. Use string type for ‘filter.campaign_id’ parameter. |
400 | 3414 | Error in ‘filter.campaign_id’ field. Value ‘340282366920938463463374607431768211255999’ is invalid number. The data in request should be no more than 128 bit. |
400 | 3500 3600 | Error in ‘dump_id’ field. This value should not be blank. Make sure the ‘dump_id’ is passed. |
400 | 3501 3601 | Error in ‘dump_id’ field. This is not a valid UUID. Make sure the ‘dump_id’ is passed correctly. |
400 | 3502 3602 | Error in ‘dump_id’ field. Event dump with ID ‘NNNN’ does not exist. Dump ID is invalid. Maybe it was deleted or never existed? |
400 | 3700 | This value should not be blank. Make sure the ‘tag_id’ is passed. |
400 | 3701 | This value should be of type int. Use int type for ‘tag_id’ parameter. |