Submit a batch of mailboxes (manual connections)
To submit a batch of mailboxes to your Woodpecker account, use the following request:
POST https://api.woodpecker.co/rest/v2/mailboxes/manual_connection/bulk
{
"mailboxes": [
{
"smtp_email": string,
"smtp_login": string,
"smtp_password": string,
"smtp_server": string,
"smtp_port": integer,
"smtp_from_name": string,
"imap_email": string,
"imap_password": string,
"imap_server": string,
"imap_port": integer,
"footer": string,
"bcc": string
"open_tracking_domain": string,
"click_tracking_domain": string,
"unsubscribe_tracking_domain": string,
"sending_wait_time_from": integer,
"sending_wait_time_to": integer,
"daily_sending_limit": integer
}
],
"completion_notification_types": [
"MAIL"
]
}
Request type data:
Field | Data Type | Requirements |
|
| Provided and valid email address. |
|
| If provided, it must not be blank. |
|
| Provided and not blank. |
|
| Provided and not blank. |
|
| Provided and in range <1; 65535>. |
|
| If provided, must not be blank. |
|
| Provided and valid email address. |
|
| Provided and not blank. |
|
| Provided and not blank. |
|
| Provided and in range <1; 65535>. |
|
| If provided, it must not be blank. |
|
| If provided, it must be a valid email address. |
|
| If provided must be a valid domain. |
|
| If provided must be a valid domain. |
|
| If provided must be a valid domain. |
|
| If provided must be in range <10,9999> and smaller than |
|
| If provided must be in range <20,9999> and bigger than |
|
| If provided must be in range <1,5500>. |
|
| Determine whether to send a notification after this batch processing. Possible values:
When |
Successful response
HTTP: 202 ACCPETED
BODY:
{
"batch_id": integer
}
Response type data:
Field | Data Type | Description |
|
| The ID of the successfully submitted batch. It could be further used to get batch summaries. |
Unsuccessful response
HTTP: 400 BAD REQUEST | 409 CONFLICT | 500 INTERNAL SERVER ERROR
BODY:
{
"code": string,
"details": [
string
]
}
Response data type:
Field | Data Type | Description |
|
| Informative code that describes the request problem. Could be one of the following:
|
|
| List of strings with error details. |
Get batch summary
To get a status/summary of adding the batch of mailboxes, use the following request:
GET https://api.woodpecker.co/rest/v2/mailboxes/manual_connection/bulk/{batch_id}/summary
Request data type:
batch_id – batch identifier;
Successful response
HTTP: 200 OK
BODY:
{
"processing_finished": boolean,
"batch_size": integer,
"pending_mailboxes_count": integer,
"connected_mailboxes_count": integer,
"conditionally_connected_mailboxes_count": integer,
"conditionally_connected_mailboxes": [
{
"connection_request_id": integer,
"smtp_email": string,
"smtp_login": string,
"imap_email": string,
}
]
"failed_mailboxes": [
{
"connection_request_id": integer,
"smtp_email": string,
"smtp_login": string,
"imap_email": string,
"error_message": string
}
]
}
Response data type:
Field | Data Type | Description |
|
| Indicates whether this batch processing was already finished or not. |
|
| Defines how many mailboxes there were in batch. |
|
| Defines how many mailboxes are still pending for processing. |
|
| Defines how many mailboxes were successfully connected. |
|
| Unique ID of individual failed mailbox connection request. |
|
| Smtp email of conditionally connected mailbox connection request. |
|
| Smtp login of conditionally connected mailbox connection request (might be null if not provided in request). |
|
| IMAP email of a conditionally connected mailbox connection request. |
|
| Unique ID of individual failed mailbox connection request. |
|
| Smtp email of failed mailbox connection request. |
|
| Smtp login of failed mailbox connection request (might be null if not provided in request). |
|
| Imap email of failed mailbox connection request. |
|
| Error reason related to failed mailbox connection request. |
Unsuccessful response
HTTP: 404 NOT FOUND
When the batch with the given ID was not found.