List contacts
client.accounts.contacts.list(stringaccountID, ContactListParams { cursor, direction, limit, query } query?, RequestOptionsoptions?): CursorSearch<User { id, cannotMessage, email, 5 more } >
GET/v1/accounts/{accountID}/contacts/list
List merged contacts for a specific account with cursor-based pagination.
Parameters
accountID: string
Account ID this resource belongs to.
Returns
List contacts
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop();
// Automatically fetches more pages as needed.
for await (const user of client.accounts.contacts.list('accountID')) {
console.log(user.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"
}