Get Label
GET
/v0/labels/{label_id}
curl -s "https://api.yoagent.dev/v0/labels/lbl_01je56wqswfmn9pgbc1wq8tjgq" \ -H "Authorization: Bearer $YOAGENT_KEY"const response = await fetch("https://api.yoagent.dev/v0/labels/lbl_01je56wqswfmn9pgbc1wq8tjgq", { headers: { Authorization: `Bearer ${process.env.YOAGENT_KEY}`, },});if (!response.ok) throw new Error(await response.text());const data = await response.json();import os
import requests
response = requests.get( "https://api.yoagent.dev/v0/labels/lbl_01je56wqswfmn9pgbc1wq8tjgq", headers={"Authorization": f"Bearer {os.environ['YOAGENT_KEY']}"}, timeout=60,)response.raise_for_status()data = response.json()Get a project’s label (its name: a folder of the dashboard is named by the label’s id).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”label_id
required
Label Id
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
LabelOut
A project’s own label.
object
version
required
Version
Goes up by one on every change: of two copies, the one with the higher version is the newer.
integer
label_id
required
Label Id
string
project_id
required
Project Id
string
name
required
Name
string
Example
{ "version": 1, "label_id": "lbl_01je56wqswfmn9pgbc1wq8tjgq", "project_id": "prj_01je56wqswfmn9pgbc1wq8tjgq", "name": "verified"}default
Section titled “default”An error (400, 401, 403, 404, 405, 409, 413, 429, 500, 503), in the one shape every call answers: Errors.