## Get bridge capabilities `client.Bridges.GetCapabilities(ctx, bridgeID) (*ProvisioningCapabilities, error)` **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. ### Parameters - `bridgeID string` Bridge ID. ### Returns - `type ProvisioningCapabilities struct{…}` Advanced network capabilities for account lookup and group creation. - `GroupCreation map[string, GroupTypeCapabilities]` - `TypeDescription string` - `Avatar GroupFieldCapability` Group creation field capability. - `Allowed bool` - `MaxLength int64` - `MinLength int64` - `Required bool` - `Settings DisappearingTimerCapability` Disappearing-message timer capability. - `Types []string` - `const DisappearingTimerCapabilityTypeEmpty DisappearingTimerCapabilityType = ""` - `const DisappearingTimerCapabilityTypeAfterRead DisappearingTimerCapabilityType = "after_read"` - `const DisappearingTimerCapabilityTypeAfterSend DisappearingTimerCapabilityType = "after_send"` - `OmitEmptyTimer bool` - `const DisappearingTimerCapabilityOmitEmptyTimerTrue DisappearingTimerCapabilityOmitEmptyTimer = true` - `Timers []int64` - `Disappear GroupFieldCapability` Group creation field capability. - `Name GroupFieldCapability` Group creation field capability. - `Parent GroupFieldCapability` Group creation field capability. - `Participants GroupFieldCapability` Group creation field capability. - `Topic GroupFieldCapability` Group creation field capability. - `Username GroupFieldCapability` Group creation field capability. - `ResolveIdentifier ResolveIdentifierCapabilities` Identifier lookup capabilities for this bridge. - `AnyPhone bool` - `ContactList bool` - `CreateDM bool` - `LookupEmail bool` - `LookupPhone bool` - `LookupUsername bool` - `Search bool` - `ImagePackImport bool` ### Example ```go 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"), ) provisioningCapabilities, err := client.Bridges.GetCapabilities(context.TODO(), "local-whatsapp") if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", provisioningCapabilities.ResolveIdentifier) } ``` #### Response ```json { "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 } ```