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

Parameters: assign_lead
NameTypeDescription
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
curl -X POST https://cotlet.dev/api/v1/mailshake/leads/1/assign \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("mailshake", "assign_lead", {"lead_id":1})
Node.js
const result = await cotlet.call('mailshake', 'assign_lead', {"lead_id":1});
CLI
cotlet call mailshake assign_lead --data '{"lead_id":1}'

Example response

JSON

{
  "lead_id": 5530,
  "assigned_to": "lucy@northwind.example"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.