Skip to main content

Reply to a message

This endpoint allows you to reply to a message retrieved from the Woodpecker inbox.

You can define the reply content, subject, and recipients. By default, the reply will be sent from the same mailbox that received the original message, but you can specify a different connected SMTP mailbox.

Request

Endpoint

POST https://api.woodpecker.co/rest/v2/inbox/messages/{id}/reply

Headers

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

Parameters

ParameterRequiredTypeDescription
idYesintegerPath parameter - ID of the prospect's response that will be replied to

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

Body

{
"mailbox_id": 123456,
"to": "recipient@gmail.com",
"cc": "cc1@gmail.com,cc2@gmail.com",
"bcc": "bcc1@gmail.com,bcc2@gmail.com",
"subject": "Re: Example subject",
"body": {
"html": "<p>Example response here</p>"
}
}
FieldRequiredTypeDescription
mailbox_idNointegerDefaults to the mailbox that received the original message. When specified, identifies the SMTP ID of a mailbox used to send the reply. Use /mailboxes endpoint to fetch mailbox details
toNostringBy default, the reply will be sent to the original author of the message. If provided, this field specifies the recipient's email addresses
ccNostringComma-separated list of email addresses to include in CC
bccNostringComma-separated list of email addresses to include in BCC. If not provided, the BCC addresses configured in the mailbox settings (if any) will be used
subjectNostringSubject of the reply message. If not provided, the subject of the original message will be used, prefixed with Re: if not already present
bodyYesobjectObject containing the message content
└─ htmlYesstringContent of the response email in HTML format

Request sample

Reply to a message

curl --request POST \
--url "https://api.woodpecker.co/rest/v2/inbox/messages/{id}/reply" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"body": {
"html": "<p>Example response here</p>"
}
}'

Response

Response examples

Message passed to SMTP for delivery

Status: 200
Body: none