Get bridge capabilities
bridges.retrieve_capabilities(strbridge_id) -> ProvisioningCapabilities
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 os
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token=os.environ.get("BEEPER_ACCESS_TOKEN"), # This is the default and can be omitted
)
provisioning_capabilities = client.bridges.retrieve_capabilities(
"local-whatsapp",
)
print(provisioning_capabilities.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
}