Skip to content
Download Beeper

List labels

$client->labels->list(): list<Label>
GET/v1/labels

List the labels the user has created for organizing chats. Filter chats by label via GET /v1/chats/search with labelID.

ReturnsExpand Collapse
list<Label>
string id

Unique identifier of the label.

string name

Display name of the label.

List labels

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(accessToken: 'My Access Token');

$labels = $client->labels->list();

var_dump($labels);
[
  {
    "id": "id",
    "name": "name"
  }
]
Returns Examples
[
  {
    "id": "id",
    "name": "name"
  }
]