Retrieve an agent
Agents
Retrieve an agent
Get the full specification of a single agent.
GET
Retrieve an agent
Retrieves the complete Agent object, including its full specification: environments, skills, instructions, and subagent configuration.
Returns the Agent object if the name is valid and you have access. Returns
404 otherwise.
Path parameters
The agent’s
name (e.g., h/web or my-custom-bot). Slash-containing names are supported.Examples
Retrieve an H catalog agent
Response
Retrieve a custom agent
Use case: inspect before using
Before using an agent in a session, you can inspect its capabilities:Errors
| Status | Cause |
|---|---|
404 | Agent not found, or you don’t have access (e.g., querying another team’s custom agent). |