Skip to main content
POST
Create Label
Integration Prompt for AI Agents
Create a free-standing label for an agent (not attached to any prompt or knowledge base).

Headers

X-Organization-Id
string
X-API-Key
string
required

API key required to authenticate requests.

Path Parameters

agent_id
integer
required

Body

application/json
label_text
string
required

text for the label

Response

Successful Response

A label row plus prompt_id, the pre-rename name of agent_version_id, for older clients.

agent_id
integer
required
label_text
string
required
id
string<uuid> | null
created_at
string<date-time> | null
agent_version_id
string<uuid> | null
knowledge_base_id
string<uuid> | null
color
string | null
prompt_id
string<uuid> | null
deprecated

Deprecated alias of agent_version_id