Skip to content
Download Beeper

List login flows

client.Bridges.LoginFlows.List(ctx, bridgeID) (*BridgeLoginFlowListResponse, error)
GET/v1/bridges/{bridgeID}/login-flows

List connect and reconnect flow options for a bridge. Use a flowID when creating a bridge login session.

ParametersExpand Collapse
bridgeID string

Bridge ID.

minLength1
ReturnsExpand Collapse
type BridgeLoginFlowListResponse struct{…}
Items []LoginFlow
ID string

Flow ID to pass when creating a bridge login session.

Description stringOptional

Short explanation for when to use this flow, when provided.

Name stringOptional

Display name for the flow, when provided.

List login flows

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"),
  )
  loginFlows, err := client.Bridges.LoginFlows.List(context.TODO(), "local-whatsapp")
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", loginFlows.Items)
}
{
  "items": [
    {
      "id": "id",
      "description": "description",
      "name": "name"
    }
  ]
}
Returns Examples
{
  "items": [
    {
      "id": "id",
      "description": "description",
      "name": "name"
    }
  ]
}