Managed Agents
Published Managed Agent discovery and execution
List published Managed Agents
Returns only Managed Agents with a published production version in the authorized sub-account.
Get a published Managed Agent
Returns public metadata for a published production Managed Agent. Unknown, unpublished, and cross-location identifiers return 404.
Execute a published Managed Agent
Runs one JSON turn against the published production snapshot. Omit sessionId on the first turn and pass the returned sessionId on subsequent turns. Reuse the same Idempotency-Key only when retrying the exact same logical turn. For a 429 response, retry that key only when retryable is true and Retry-After is present.
Start or continue a Managed Agent build
Builds a new Managed Agent, or edits one, from a plain-language request, using the same builder as the app. Returns 202 at once with a buildId; poll Get build until it finishes. To continue a build, send its buildId with answers to its questions, or with a follow-up message. The result is a saved draft; publish it with Publish a Managed Agent.
Get a Managed Agent build
Returns the state of a build: still running, waiting for answers or a reply, or finished. nextAction says what to do next. Builds are kept for 24 hours; the agent and its build history stay after that.
Publish a Managed Agent
Publishes the current draft, exactly as the app does, and records who published it. A draft that still needs setup (for example a trigger, calendar or reply channel) is refused with a 400 that says what is missing.
Unpublish a Managed Agent
Unpublishes the agent, exactly as the app does: its triggers stop and scheduled runs are cancelled. The draft is kept and can be published again.