POST/inbox/messages

Send a LinkedIn DM to an existing campaign lead (synchronous).

POST /inbox/messages
X-API-Key: sk_live_...
Content-Type: application/json
{
  "campaignId": "search_abc",
  "leadId": "lead_xyz",
  "text": "Hi Jane — following up on our conversation.",
  "accountId": "acc_abc"
}
FieldRequiredNotes
campaignIdYes
leadIdYes
textYesMax 8000 chars
accountIdNoDefaults from lead / product rules when omitted
{
  "ok": true,
  "chatId": "chat_...",
  "messageId": "msg_..."
}
Error codeWhen
validation_errorMissing/invalid fields
not_foundCampaign / lead
account_disconnectedAccount not usable
rate_limited / linkedin_daily_quotaCaps
send_failedSend failed

Sending may hand the conversation to human/agent rules as in the product inbox.