Skip to main content

Update mailbox

Update the details of an email account connected to your account. Currently, the property that can be updated is the footer of an SMTP account.

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 an object with the data to update for an email account.

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

Body schema

FieldTypeRequiredDescription
footerstringYesFooter 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