List
Lists chat accounts across networks (WhatsApp, Telegram, Twitter/X, etc.) actively connected to this Beeper Desktop instance
Returns
List connected accounts
package main
import (
"context"
"fmt"
"github.com/beeper/desktop-api-go"
"github.com/beeper/desktop-api-go/option"
)
func main() {
client := beeperdesktopapi.NewClient(
option.WithAccessToken("My Access Token"),
)
accounts, err := client.Accounts.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", accounts)
}
[
{
"accountID": "local-whatsapp_ba_EvYDBBsZbRQAy3UOSWqG0LuTVkc",
"network": "WhatsApp",
"user": {
"id": "ba_EvYDBBsZbRQAy3UOSWqG0LuTVkc",
"cannotMessage": true,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "file:///Users/batuhan/Library/Application%20Support/BeeperTexts/local-whatsapp/attachments/113988c2e1d3d59d0171dcd034ca481eb040a3f9c0435c158e584adb4b59dd59",
"isSelf": true,
"phoneNumber": "+15551234567",
"username": "username"
}
},
{
"accountID": "local-telegram_ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI",
"network": "Telegram",
"user": {
"id": "ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI",
"cannotMessage": true,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "file:///Users/batuhan/Library/Application%20Support/BeeperTexts/local-telegram/attachments/e692d0072966c9153e2eb104aca3b8e5c96d869a458d16180a2d62898a935a84",
"isSelf": true,
"phoneNumber": "+15559876543",
"username": "batuhan"
}
},
{
"accountID": "local-twitter_ba_gUU1IHNGo_CsTZLp0vDFUYk9EuE",
"network": "Twitter/X",
"user": {
"id": "ba_gUU1IHNGo_CsTZLp0vDFUYk9EuE",
"cannotMessage": true,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "file:///Users/batuhan/Library/Application%20Support/BeeperTexts/local-twitter/attachments/d68c58266f4529493f2e34079dfa15648abd9ffff3a40ea8bc99ac283353eb53",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "batuhan"
}
}
]
Returns Examples
[
{
"accountID": "local-whatsapp_ba_EvYDBBsZbRQAy3UOSWqG0LuTVkc",
"network": "WhatsApp",
"user": {
"id": "ba_EvYDBBsZbRQAy3UOSWqG0LuTVkc",
"cannotMessage": true,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "file:///Users/batuhan/Library/Application%20Support/BeeperTexts/local-whatsapp/attachments/113988c2e1d3d59d0171dcd034ca481eb040a3f9c0435c158e584adb4b59dd59",
"isSelf": true,
"phoneNumber": "+15551234567",
"username": "username"
}
},
{
"accountID": "local-telegram_ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI",
"network": "Telegram",
"user": {
"id": "ba_QFrb5lrLPhO3OT5MFBeTWv0x4BI",
"cannotMessage": true,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "file:///Users/batuhan/Library/Application%20Support/BeeperTexts/local-telegram/attachments/e692d0072966c9153e2eb104aca3b8e5c96d869a458d16180a2d62898a935a84",
"isSelf": true,
"phoneNumber": "+15559876543",
"username": "batuhan"
}
},
{
"accountID": "local-twitter_ba_gUU1IHNGo_CsTZLp0vDFUYk9EuE",
"network": "Twitter/X",
"user": {
"id": "ba_gUU1IHNGo_CsTZLp0vDFUYk9EuE",
"cannotMessage": true,
"email": "email",
"fullName": "Batuhan İçöz",
"imgURL": "file:///Users/batuhan/Library/Application%20Support/BeeperTexts/local-twitter/attachments/d68c58266f4529493f2e34079dfa15648abd9ffff3a40ea8bc99ac283353eb53",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "batuhan"
}
}
]