Smileline
InboxConversationsIdLead

Create a lead from a conversation

Creates a patient and a journey for the chosen treatment and links this unlinked conversation to both, in one step; the creator takes the chat when their role can hold chats. Phone and email are optional here: the conversation is the way to reach this person. Needs conversation:update, patient:create and journey:create. 402 LEAD_LIMIT_REACHED on a full free plan; 409 CONVERSATION_ALREADY_LINKED when the conversation is linked, CONTACT_PARTY_SUBJECT_CONFLICT when its contact already represents a patient — link that patient instead; and DUPLICATE_CONTACT when the email or mobile already belongs to a patient — link them instead.

Loading the API reference…