Get an agent
const url = 'https://example.com/v1/agents/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/agents/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The agt_<uuidv7> agent ID.
Responses
Section titled “Responses”The agent.
object
The agt_<uuidv7> resource ID.
object
Derived from upstream_url — pending when absent, active once set; inactive after a delete.
A suspended agent stays in the catalog but rejects invocations.
The subject claim of the user who created the agent.
The credential ID injected into upstream calls.
Per-agent requests/second override (spec 0002).
Token-bucket burst depth; defaults to 20 when only the rate is set.
Whether a Treeship trust receipt is emitted after each completed invocation.
Whether request/response bodies are captured on invocations (spec 0003).
Required and validated only when protocol=mcp (spec 0004).
object
Flat per-call price, smallest-unit decimal string.
V1 accepts only “USDC”.
V1 accepts only “base”.
Operator payout address (the gateway holds no key).
Optional per-MCP-tool price overrides, keyed by tool name. Requires the agent’s protocol to be mcp.
object
Example
{ "status": "pending", "protocol": "http", "mcp_transport": "streamable_http", "pricing": { "asset": "USDC", "network": "base" }}Missing or invalid bearer token, or the token’s tenant/user claims are absent. No body.
No resource with this ID exists in the caller’s tenant.
The uniform error body for all 4xx responses that carry one.
object
A coarse, caller-safe message. Never contains internal state (invariant
Examplegenerated
{ "error": "example"}An unexpected server-side error. No body (internal detail is never returned to callers, invariant