Returns the assignees that would be selected by routing rules for a hypothetical lead matching the supplied name, email and other attributes. Useful for previewing routing before creating the lead.
Notes:
curl --request POST \
--url https://api.lofty.com/v1.0/leads/assignee \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"firstName": "Bob",
"email": "123456789@gmail.com",
"lastName": "Li",
"phone": "1234567890",
"birthday": "Jun 5, 2001"
}
'[
{
"leadId": 123,
"leadUserId": 123,
"firstName": "<string>",
"lastName": "<string>",
"customRoleAssignees": [
{
"agentFullName": "<string>",
"roleId": 123,
"role": "<string>",
"assigneeId": 123,
"assignee": "<string>",
"permissionProfileName": "<string>"
}
]
}
]Documentation Index
Fetch the complete documentation index at: https://developer.lofty.com/llms.txt
Use this file to discover all available pages before exploring further.
Hypothetical lead info used to resolve assignees.
The first name of the lead
"Bob"
The email address associated with the lead
"123456789@gmail.com"
The last name of the lead
"Li"
The phone number associated with the lead. (No more than 20 characters per phone)
"1234567890"
The birthday of the lead(pattern:MMM d, yyyy)
"Jun 5, 2001"
curl --request POST \
--url https://api.lofty.com/v1.0/leads/assignee \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"firstName": "Bob",
"email": "123456789@gmail.com",
"lastName": "Li",
"phone": "1234567890",
"birthday": "Jun 5, 2001"
}
'[
{
"leadId": 123,
"leadUserId": 123,
"firstName": "<string>",
"lastName": "<string>",
"customRoleAssignees": [
{
"agentFullName": "<string>",
"roleId": 123,
"role": "<string>",
"assigneeId": 123,
"assignee": "<string>",
"permissionProfileName": "<string>"
}
]
}
]