List the labels the user has created for organizing chats. Filter chats by label via GET /v1/chats/search with labelID.
List labels
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"),
)
labels, err := client.Labels.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", labels)
}
[
{
"id": "id",
"name": "name"
}
]Returns Examples
[
{
"id": "id",
"name": "name"
}
]