Assign lead
Give an open lead to a teammate, or set it to unassigned so anyone can take it.
POST https://cotlet.dev/api/v1/mailshake/leads/{lead_id}/assign
write
Changes who owns a lead in Lead Catcher. New leads go to the teammate the campaign is assigned to; this changes one lead. The assignee must be a user of your Mailshake team. It reaches no one outside your team and one more call reverses it, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| lead_id integer required | integer | Lead ID from list_leads. |
| assignee_email string | string | Email of a teammate. Leave out to set the lead to unassigned. |
Request
curl -X POST https://cotlet.dev/api/v1/mailshake/leads/1/assign \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("mailshake", "assign_lead", {"lead_id":1}) const result = await cotlet.call('mailshake', 'assign_lead', {"lead_id":1}); cotlet call mailshake assign_lead --data '{"lead_id":1}' Example response
{
"lead_id": 5530,
"assigned_to": "lucy@northwind.example"
}