Managing resources: viewing a list of resources, creating and deleting resources, and changing resource names. Managing domains: adding and deleting domains from a resource, viewing a list of domains in a resource, and checking domain verification status. Viewing resource mailing statistics. Removing emails from a stop list. The maximum number of requests to SMTP is 10,000 per minute. If the limit is exceeded, the method will return error 429. The average execution time for one request is 500 ms.
Get a list of resources in the project
limit | integer <integer> Default: 100 Limit |
offset | integer <integer> Default: 0 Offset |
{- "limit": 0,
- "next_offset": 0,
- "resources": [
- {
- "created_at": "2024-05-26T15:16:53+00:00",
- "dedicated_sender": true,
- "dns_key": "xncFjGLFGkeq",
- "domains": [
- "domain1.ru",
- "domain2.ru"
], - "id": "448355c9-8c3a-4706-8ca4-ed2970fce631",
- "login": "1010",
- "name": "My SES Resource",
- "password": "NtV4FQscV5BQ",
- "project_id": "5c4272d6c6274435ae913cff6eceaf22",
- "status": "active",
- "updated_at": "2024-05-27T15:16:53+00:00"
}
]
}
Create resource
The scheme for creating a resource
name required | string |
{- "name": "string"
}
{- "created_at": "2024-05-26T15:16:53+00:00",
- "dedicated_sender": true,
- "dns_key": "xncFjGLFGkeq",
- "id": "448355c9-8c3a-4706-8ca4-ed2970fce631",
- "login": "1010",
- "name": "My SES Resource",
- "password": "NtV4FQscV5BQ",
- "project_id": "5c4272d6c6274435ae913cff6eceaf22",
- "status": "active",
- "updated_at": "2024-05-27T15:16:53+00:00"
}
Get the resource by its identifier
ses_id required | string <uuid> Resource ID |
{- "resource": {
- "created_at": "2024-05-26T15:16:53+00:00",
- "dedicated_sender": true,
- "dns_key": "xncFjGLFGkeq",
- "id": "448355c9-8c3a-4706-8ca4-ed2970fce631",
- "login": "1010",
- "name": "My SES Resource",
- "password": "NtV4FQscV5BQ",
- "project_id": "5c4272d6c6274435ae913cff6eceaf22",
- "status": "active",
- "updated_at": "2024-05-27T15:16:53+00:00"
}
}
Change the name of the created resource by its identifier
ses_id required | string <uuid> Resource ID |
The scheme for updating a resource
name required | string |
{- "name": "string"
}
{- "created_at": "2024-05-26T15:16:53+00:00",
- "dedicated_sender": true,
- "dns_key": "xncFjGLFGkeq",
- "id": "448355c9-8c3a-4706-8ca4-ed2970fce631",
- "login": "1010",
- "name": "My SES Resource",
- "password": "NtV4FQscV5BQ",
- "project_id": "5c4272d6c6274435ae913cff6eceaf22",
- "status": "active",
- "updated_at": "2024-05-27T15:16:53+00:00"
}
Generate new password for the created resource by its identifier
ses_id required | string <uuid> Resource ID |
{- "created_at": "2024-05-26T15:16:53+00:00",
- "dedicated_sender": true,
- "dns_key": "xncFjGLFGkeq",
- "id": "448355c9-8c3a-4706-8ca4-ed2970fce631",
- "login": "1010",
- "name": "My SES Resource",
- "password": "NtV4FQscV5BQ",
- "project_id": "5c4272d6c6274435ae913cff6eceaf22",
- "status": "active",
- "updated_at": "2024-05-27T15:16:53+00:00"
}
Transfer created resource to other project by resource identifier
ses_id required | string <uuid> Resource ID |
The scheme for transfering a resource
project_id required | string |
{- "project_id": "string"
}
{- "created_at": "2024-05-26T15:16:53+00:00",
- "dedicated_sender": true,
- "dns_key": "xncFjGLFGkeq",
- "id": "448355c9-8c3a-4706-8ca4-ed2970fce631",
- "login": "1010",
- "name": "My SES Resource",
- "password": "NtV4FQscV5BQ",
- "project_id": "5c4272d6c6274435ae913cff6eceaf22",
- "status": "active",
- "updated_at": "2024-05-27T15:16:53+00:00"
}
Get complaints on messages by period
ses_id required | string <uuid> Resource ID |
date_from required | string <date> Example: date_from=2024-05-25 Start date |
date_to required | string <date> Example: date_to=2024-05-26 End date |
limit | integer Default: 100 Example: limit=5 Limit |
cursor_next | integer Default: 0 Example: cursor_next=20 Offset |
{- "pagination": {
- "cursor_next": 0
}, - "report": [
- {
- "date": "2024-02-20 15:09:49",
- "domain": "domain.com",
- "email": "email1@inbox.ru",
- "issuen": 123456,
- "x_track_id": "299_20230621_135411"
}
], - "status": "ok"
}
Get undelivered messages by period
ses_id required | string <uuid> Resource ID |
date_from required | string <date> Example: date_from=2024-05-25 Start date |
date_to required | string <date> Example: date_to=2024-05-26 End date |
limit | integer Default: 100 Example: limit=5 Limit |
cursor_next | integer Default: 0 Example: cursor_next=20 Offset |
{- "pagination": {
- "cursor_next": 0
}, - "report": [
- {
- "code": 550,
- "date": "2024-02-20 15:09:49",
- "email": "email1@inbox.ru",
- "issuen": 123456,
- "message": "Unrouteable address",
- "x_track_id": "299_20230621_135411"
}
], - "status": "ok"
}
Get the delivered message status by message_id or x_track_id
ses_id required | string <uuid> Resource ID |
message_id | string <string> Message ID |
x_track_id | string <string> X-Track-ID |
{- "messages": [
- {
- "created_at": 1697746906,
- "message_id": "1qBv3w-0007Ls-CS11",
- "reason": "H=mx02.mail.icloud.com [17.56.9.29] CV=yes: 550 5.1.1 <example@icloud.com>: user does not exist",
- "status": "failed",
- "x_track_id": "299_20230621_135411"
}
], - "status": "ok"
}
View the statistics of sent messages of the resource
ses_id required | string <uuid> Resource ID |
date_from required | string <date> Example: date_from=2024-05-25 Date start |
date_to required | string <date> Example: date_to=2024-05-26 Date end |
{- "limit": 0,
- "next_offset": 0,
- "statistics": {
- "statistics_by_dates": [
- {
- "date": "string",
- "issuen": 0,
- "stat": {
- "bad": 0,
- "click_link": 0,
- "dup": 0,
- "fbl": 0,
- "gen_ok": 0,
- "open_msg": 0,
- "send_fail": 0,
- "send_ok": 0,
- "stop": 0,
- "total": 0,
- "trap": 0
}, - "status": "string"
}
], - "total": {
- "bad": 0,
- "click_link": 0,
- "dup": 0,
- "fbl": 0,
- "gen_ok": 0,
- "open_msg": 0,
- "send_fail": 0,
- "send_ok": 0,
- "stop": 0,
- "total": 0,
- "trap": 0
}
}
}
Unlink domain from the resource
ses_id required | string <uuid> Resource ID |
name required | string Domain name |
{- "description": "string",
- "message": "string"
}
Get a list of domains of the resource
ses_id required | string <uuid> Resource ID |
limit | integer <integer> Default: 16 Limit |
offset | integer <integer> Default: 0 Offset |
{- "domains": [
- "string"
], - "limit": 0,
- "next_offset": 0
}
Link a domain to the resource
ses_id required | string <uuid> Resource ID |
The scheme for adding a domain
name required | string |
{- "name": "string"
}
{- "domain": "string"
}
Check the correctness of SPF, DKIM, and DMARC domain record
ses_id required | string <uuid> Resource ID |
name required | string <string> Domain name |
{- "verification": {
- "dkim_status": true,
- "dmarc_status": true,
- "dns_status": true,
- "spf_status": true,
- "verification_status": true
}
}
Remove email from the stop list
ses_id required | string <uuid> Resource ID |
mail_from required | string <email> Sender's email address |
email required | string <email> Email address to be removed from the stop list |
{- "description": "string",
- "message": "string"
}
Search email in the stop list
ses_id required | string <uuid> Resource ID |
email required | string <email> Email address to be searched in the stop list |
{- "bounces": [
- {
- "bounce": "string",
- "date": "string"
}
], - "domains": [
- "string"
], - "fbl_report": [
- {
- "date": "string",
- "domain": "string"
}
], - "status": "string",
- "user_unsubscribe": [
- {
- "date": "string",
- "domain": "string"
}
]
}
Add email to the stop list
ses_id required | string <uuid> Resource ID |
mail_from required | string <email> Sender's email address |
email required | string <email> Email address to be added to the stop list |
{- "description": "string",
- "message": "string"
}