Search contacts
accounts.contacts.search(straccount_id, ContactSearchParams**kwargs) -> ContactSearchResponse
/v1/accounts/{accountID}/contacts
Search contacts across on a specific account using the network's search API. Only use for creating new chats.
Parameters
account_id: str
Account ID this resource belongs to.
query: str
Text to search users by. Network-specific behavior.
minLength1
Returns
Search contacts
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token="My Access Token",
)
response = client.accounts.contacts.search(
account_id="accountID",
query="x",
)
print(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"
}
]
}