List the labels the user has created for organizing chats. Filter chats by label via GET /v1/chats/search with labelID.
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"
}
]