Skip to main content

Update mailbox

Update the signature of an SMTP email account connected to your account. The signature is added to emails sent from this mailbox.

Request​

Endpoint​

PATCH https://api.woodpecker.co/rest/v2/mailboxes/{smtp_mailbox_id}

You can update an email account using the SMTP email account ID. Use the /mailboxes endpoint to retrieve a list of your SMTP IDs.

Headers​

x-api-key: {YOUR_API_KEY}
Content-type: application/json

For details on how to authenticate your requests, please see the authentication guide.

Body​

The request body contains the mailbox signature to update. Use the footer field to provide the signature HTML.

{
"footer": "<div>Best regards,</div><div>John</div>"
}

Body schema​

FieldTypeRequiredDescription
footerstringYesSignature of the email account in HTML format. Use null or an empty string to remove the footer. Supports the {{UNSUBSCRIBE}} snippet, which generates an unsubscribe link. Remember to wrap it in an <a href> tag

Request samples​

Update a mailbox​

curl --request PATCH \
--url "https://api.woodpecker.co/rest/v2/mailboxes/{smtp_mailbox_id}" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"footer": "<div>Best regards,</div><div>John</div>"
}'

Response​

Response examples​

Request processed successfully.

Status: 200
Body: None