Skip to main content

Reply to a LinkedIn inbox message

Continue a LinkedIn conversation after a prospect replies to a direct message or InMail sent through your Woodpecker campaign. First, retrieve the received reply, then use its ID to send your response.

Your response is sent from the LinkedIn account that received the reply. Responses to direct messages are sent as direct messages; responses to InMails are sent as InMails.

Request​

Endpoint​

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

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
idYesintegerPath parameter. ID of the received reply: content[].id from the LinkedIn inbox messages endpoint or [].replied.id from the LinkedIn reply webhook

Body​

{
"message": "Thanks for your reply. Here is a short overview of our project."
}

The request accepts the message text only. You cannot send attachments or select a different sending account or message type.

Body schema​

FieldTypeRequiredDescription
messagestringYesMessage text; cannot be empty or contain only whitespace. Maximum: 6,000 characters for direct messages, or 1,900 for InMails

Sending uses the account's action limits for the corresponding message type, shared between campaigns and API requests. Direct messages count toward a rolling 24-hour limit, while InMails count toward a rolling 31-day limit. The exact limits depend on the LinkedIn account's configuration. If a limit is reached, the API returns 429.

Request samples​

Reply to a received direct message​

The examples use reply ID 123123 from the inbox response example.

curl --request POST \
--url "https://api.woodpecker.co/rest/v2/linkedin/inbox/messages/123123/reply" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"message": "Thanks for your reply. Here is a short overview of our project."
}'

Response​

Response examples​

The LinkedIn reply was sent successfully.

Status: 204
Body: none