List contacts
accounts.contacts.list(straccount_id, ContactListParams**kwargs) -> SyncCursorSearch[User]
GET/v1/accounts/{accountID}/contacts/list
List merged contacts for a specific account with cursor-based pagination.
Parameters
account_id: str
Account ID this resource belongs to.
cursor: Optional[str]
Opaque pagination cursor; do not inspect. Use together with 'direction'.
limit: Optional[int]
Maximum contacts to return per page.
minimum1
maximum200
query: Optional[str]
Optional search query for blended contact lookup.
minLength1
Returns
List contacts
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop()
page = client.accounts.contacts.list(
account_id="accountID",
)
page = page.items[0]
print(page.id){
"hasMore": true,
"items": [
{
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
],
"newestCursor": "newestCursor",
"oldestCursor": "oldestCursor"
}Returns Examples
{
"hasMore": true,
"items": [
{
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
}
],
"newestCursor": "newestCursor",
"oldestCursor": "oldestCursor"
}