Skip to main content

Update mailbox profile picture

Add or update the profile picture for an existing mailbox. This helps recipients recognize the sender more easily. Currently, this feature is supported for Google mailboxes.

Request

Endpoint

PATCH https://api.woodpecker.co/rest/v2/domains/{domain_name}/mailboxes/{mailbox_email}/profile_picture

Headers

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

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

Parameters

ParameterRequiredTypeDescription
domain_nameYesstringDomain name
mailbox_emailYesstringMailbox email address. The mailbox must belong to the domain in domain_name. URL-encode the mailbox email address, for example richard%40piedpiper.com

Body

{
"avatar": "ikAtLQMKKAFooAWkoELVrT4w92..."
}

Body schema

FieldTypeRequiredDescription
avatarstringYesPNG or JPEG image encoded as Base64. Send only the Base64 content, without a Data URL prefix such as data:image/png;base64,

The decoded image can be up to 5 MB or 4096x4096 pixels. We recommend using smaller, lightweight images when possible.

Request samples

Update profile picture

curl --request PATCH \
--url "https://api.woodpecker.co/rest/v2/domains/piedpiper.com/mailboxes/richard%40piedpiper.com/profile_picture" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"avatar": "iVBORw0KGgoAAAANSUhEUgAA..."
}'

Response

Response examples

The profile picture has been updated

{
"success": true
}

Body schema

FieldTypeDescription
successbooleanWhether the profile picture update succeeded