Contacts
Search contacts
search.contacts(straccount_id, SearchContactsParams**kwargs) -> SearchContactsResponse
/v1/search/contacts/{accountID}
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.search.contacts(
account_id="local-whatsapp_ba_EvYDBBsZbRQAy3UOSWqG0LuTVkc",
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"
}
]
}