Skip to main content
POST
/
v1.0
/
leads
/
assignee
Preview Routing
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.

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Body

application/json

Hypothetical lead info used to resolve assignees.

firstName
string
required

The first name of the lead

Example:

"Bob"

email
string
required

The email address associated with the lead

Example:

"123456789@gmail.com"

lastName
string

The last name of the lead

Example:

"Li"

phone
string

The phone number associated with the lead. (No more than 20 characters per phone)

Example:

"1234567890"

birthday
string

The birthday of the lead(pattern:MMM d, yyyy)

Example:

"Jun 5, 2001"

Response

Assignee matches for the supplied lead info.

leadId
integer<int64>

leadId

leadUserId
integer<int64>

leadUserId

firstName
string

lead firstName

lastName
string

lead lastName

customRoleAssignees
object[]

lead customRoleAssignees