Pull agent definition (config-as-code)
Return the canonical config-as-code definition and provenance for an agent by name — the absorb-drift direction of the ensure protocol. The contentHash is recomputed from the live agent state, so it is accurate even immediately after a dashboard edit.
Authentication
AuthorizationBearer
API key or Clerk session token
Query parameters
name
Response
Canonical definition + provenance
agentId
capabilities
The agent's capabilities in display order, in the shape ensure's capabilities accepts. parametersSchema appears only when it differs from the one ensure would derive.
contentHash
definition
lastModifiedSource
skills
The agent's skill bindings in load order, in the shape ensure's skills accepts.
updatedAt
versionId
warnings
Present only when a raw tool_… reference could not be emitted as a portable tool:<name> (the tool was deleted, or its name is shadowed by an older same-named tool). Those references are left as raw ids, which the ensure surface rejects; each warning explains how to fix it.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error