Get bridge capabilities
client.bridges.retrieveCapabilities(stringbridgeID, RequestOptionsoptions?): ProvisioningCapabilities { group_creation, resolve_identifier, image_pack_import }
GET/v1/bridges/{bridgeID}/capabilities
Get advanced network capabilities for a bridge. This endpoint is intended for clients that build custom connect or chat-creation flows.
Get bridge capabilities
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 provisioningCapabilities = await client.bridges.retrieveCapabilities('local-whatsapp');
console.log(provisioningCapabilities.resolve_identifier);{
"group_creation": {
"foo": {
"type_description": "type_description",
"avatar": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"disappear": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"name": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"parent": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"participants": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"topic": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"username": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
}
}
},
"resolve_identifier": {
"any_phone": true,
"contact_list": true,
"create_dm": true,
"lookup_email": true,
"lookup_phone": true,
"lookup_username": true,
"search": true
},
"image_pack_import": true
}Returns Examples
{
"group_creation": {
"foo": {
"type_description": "type_description",
"avatar": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"disappear": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"name": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"parent": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"participants": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"topic": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
},
"username": {
"allowed": true,
"max_length": 0,
"min_length": 0,
"required": true,
"settings": {
"types": [
""
],
"omit_empty_timer": true,
"timers": [
0
]
}
}
}
},
"resolve_identifier": {
"any_phone": true,
"contact_list": true,
"create_dm": true,
"lookup_email": true,
"lookup_phone": true,
"lookup_username": true,
"search": true
},
"image_pack_import": true
}