انتقل إلى المحتوى الرئيسي

Create a lead

POST 

/v1/agents/:agentId/leads

x-scope: "leads:write"

The lead starts in the agent's starting status (new unless your team chose another), unassigned. phone, when sent, must be a valid number in E.164 (+201001234567); the lead is linked to the agent's contact with that number, or to a new contact. With conversation_id, the lead is the conversation's. A conversation can hold several leads, as it can hold several tickets, so this always creates a new lead and never changes one the conversation already has (updateLead does that); listConversationLeads reads them. A retried request creates a second lead: check the list before you retry after a lost response.

Request​

Responses​

The lead.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.