Skip to main content
GET
Get an agent

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Path Parameters

agentId
string
required
Required string length: 1 - 128

Query Parameters

branch_id
string

Read this branch instead of Main.

Required string length: 1 - 128
version_id
string

Read this published version.

Required string length: 1 - 128
include_draft
enum<string>

Read the key creator's own draft of the branch, if any.

Available options:
true,
false

Response

Success.

data
object
required

An agent that was never versioned answers with the agent record alone.