Not logged in - Login
< back

Person Typeahead Search


PersonTypeahead search
Another search option is to use the typeahead search endpoint: http://securelb.trackerproducts.com/api/people/typeahead?search=mike


This endpoint will search the following fields:
- Alias
- Email
- Business Name
- Last Name
- First Name
- Middle Name


Here is an example of using this endpoint:
http://securelb.trackerproducts.com/api/people/typeahead?search=mike


will return an array of people along with a count of the people returned by the query in the following format:
{
"people": [
{
"id": 1634850,
"text": "Singleton, Mike (N/A)"
}
],
"peopleCountLimitExceeded": false
}


Here is an example of searching by email address:
http://securelb.trackerproducts.com/api/people/typeahead?search=tracker


which returns the following:
{
"users":"people": [
{
"id": 1,
"text": ""Sparrow, Jack 3176D103FF Sparrow (jsparrow@trackerproducts.com)"
},
{
"id": 17663,3,
"text": ""dawg - Tracker Muppets - Bear, Fozzy (fozzybear@made-up-email.com)"
},
{
"id": 1634850,
"text": "Singleton, Mike Singleton (msingleton@trackerproducts.com)"
},
{
"id": 17664,1634867,
"text": ""skyscraper Victor- FrankensteinTracker (1msingleton@trackerproducts.com)"Software Developers - Ding, Bill (bricks@gmail.com)"
},
{
"id": 1640072,
"text": "Person, Example (exampleperson@trackerproducts.com)"
},
{
"id": 1634992,
"text": "b - Tracker Products - Taylor, Chuck
(chucktaylor@trackerproducts.com)"
}
],
"usersCount":"peopleCountLimitExceeded": 3false
}