Search
Search contacts
client.accounts.contacts.search(stringaccountID, ContactSearchParams { query } query, RequestOptionsoptions?): ContactSearchResponse { items }
/v1/accounts/{accountID}/contacts
Search contacts across on a specific account using the network's search API. Only use for creating new chats.
Parameters
accountID: string
Account ID this resource belongs to.
Returns
Search contacts
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop({
accessToken: 'My Access Token',
});
const response = await client.accounts.contacts.search('accountID', { query: 'x' });
console.log(response.items);
{
"items": [
{
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
]
}
Returns Examples
{
"items": [
{
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
]
}