Outreach
Trigger outreach processing for a lead
Public endpoint authenticated via API key in Authorization header. Accepts lead data and processes it through the configured lead management pipeline.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Lead data payload. Accepts arbitrary additional fields that are mapped to contact dynamic properties. The sending line is the configuration's phoneNumberId, else the API key user's line, else the org default line; the payload never sets it. The SMS conversation is the contact's thread on that line, else a line-less legacy thread (moved onto the line), else a new thread on the line. A thread on another line is never reused or moved, including one named by conversations._id. When no line resolves at all, the contact's most recent SMS conversation is used.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/outreach" \ -H "Content-Type: application/json" \ -d '{ "firstName": "Jamie", "lastName": "Lee", "phoneNumber": "+14155550133", "email": "jamie.lee@example.com", "source": "Facebook Lead Ad" }'{ "success": true, "message": "Data processed successfully", "data": { "contactId": "64b2c3d4e5f60012345678aa", "applicationId": "64d2f9c5e8a1d4e001a0b1c2", "conversationId": "64d2f9c5e8a1d4e001a0b1c3", "phoneNumberId": "64d2f9c5e8a1d4e001a0b1d0", "mergeOutcome": "created", "starterMessage": { "status": "sent", "phoneNumberId": "64d2f9c5e8a1d4e001a0b1d0", "fromPhoneNumber": "+15550000002" } }}