const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: 'John Doe',
email: 'john@example.com',
phone: '+14155551234',
ssn: '123-45-6789',
cursor: '<string>',
limit: 25,
sort: 'created_at',
order: 'desc'
})
};
fetch('https://api.getpalm.com/v1/user/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"has_more": true,
"next_cursor": "crs_7g8h9i0j1k2l3m4n",
"data": [
"<array>"
]
}Search for users in your organization with optional filters. Filter by display_name (partial match), or by email, phone, or SSN (exact match). Returns paginated results using cursor-based pagination.
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: 'John Doe',
email: 'john@example.com',
phone: '+14155551234',
ssn: '123-45-6789',
cursor: '<string>',
limit: 25,
sort: 'created_at',
order: 'desc'
})
};
fetch('https://api.getpalm.com/v1/user/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "list",
"has_more": true,
"next_cursor": "crs_7g8h9i0j1k2l3m4n",
"data": [
"<array>"
]
}Enter your API key in the format: sk_test_xxxxx or sk_live_xxxxx
Filter by display name (partial match, case-insensitive)
"John Doe"
Filter by email address (exact match). Value is hashed for secure lookup.
"john@example.com"
Filter by phone number (exact match). Value is hashed for secure lookup.
"+14155551234"
Filter by SSN (exact match). Value is hashed for secure lookup.
"123-45-6789"
Pagination cursor from previous response
Maximum number of results to return (1-100)
Field to sort by
created_at, name, risk_level, last_verified Sort order direction
asc, desc Search results returned successfully
Object type identifier, always "list"
list "list"
Whether there are more results available
true
Cursor to use for fetching the next page of results. Only present when has_more is true.
"crs_7g8h9i0j1k2l3m4n"
Array of resources for the current page
Was this page helpful?