Api / Agents

GET/v1/agents/:id

Auth: tenant — Status: stable

Fetch one agent's constitution. :id = "index" returns the built-in master; any other id is looked up against the tenant's stored catalog.

Request

Path paramTypeDescription
idstringAgent id. "index" for the master, or a stored agent's caller-chosen id.
curl -H "Authorization: Bearer atr_…" \
  http://arbiter.example.com/v1/agents/researcher

Response

200 OK

Same shape as a list entry — see GET/v1/agents. Stored agents include created_at and updated_at; the built-in index does not.

Failure modes

StatusWhenBody
401Missing / invalid bearer; tenant disabled.{"error": "..."}
404Id not found in the tenant's catalogue (and not "index").{"error": "no agent '<id>' for this tenant"}

Inline agents from agent_def are not catalogued — they exist for one call (or are snapshotted onto a conversation), neither of which surfaces here.

See also