Get bridge
client.bridges.retrieve(stringbridgeID, RequestOptionsoptions?): BridgeRetrieveResponse { id, accounts, activeAccountCount, 7 more }
GET/v1/bridges/{bridgeID}
Get one bridge, including the chat accounts connected through it.
Get bridge
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop({
accessToken: process.env['BEEPER_ACCESS_TOKEN'], // This is the default and can be omitted
});
const bridge = await client.bridges.retrieve('local-whatsapp');
console.log(bridge.id);{
"id": "id",
"accounts": [
{
"accountID": "accountID",
"bridge": {
"id": "id",
"provider": "cloud",
"type": "type"
},
"status": "connected",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
},
"capabilities": {
"foo": "bar"
},
"loginID": "loginID",
"network": "network",
"statusText": "statusText"
}
],
"activeAccountCount": 0,
"displayName": "displayName",
"provider": "cloud",
"status": "available",
"supportsMultipleAccounts": true,
"type": "type",
"network": "network",
"statusText": "statusText"
}Returns Examples
{
"id": "id",
"accounts": [
{
"accountID": "accountID",
"bridge": {
"id": "id",
"provider": "cloud",
"type": "type"
},
"status": "connected",
"user": {
"id": "id",
"cannotMessage": true,
"email": "email",
"fullName": "fullName",
"imgURL": "imgURL",
"isSelf": true,
"phoneNumber": "phoneNumber",
"username": "username"
},
"capabilities": {
"foo": "bar"
},
"loginID": "loginID",
"network": "network",
"statusText": "statusText"
}
],
"activeAccountCount": 0,
"displayName": "displayName",
"provider": "cloud",
"status": "available",
"supportsMultipleAccounts": true,
"type": "type",
"network": "network",
"statusText": "statusText"
}