Connect Managed Agents
- Create an Anthropic API key with access to the workspace that owns your agents.
- In the Anthropic Console, create a webhook with endpoint
https://automate.ax/api/v1/events/anthropic. - Enable the agent, environment, and session events your automations use. Enabling every supported event lets you add triggers without revisiting the webhook.
- Connect Anthropic in Automate.ax with Managed Agents. Enter the API key, the webhook signing key that begins with
whsec_, and a workspace ID when the key can access more than one workspace.
Run one durable turn
automations/run-claude-agent.automation.ts
anthropic.runAgent starts the session in the initiating context. The matching idle or terminated webhook starts an ordinary root context. Automate.ax correlates both by session ID and resumes in their shared child; the webhook never inherits hidden causal ancestry.
Sessions and control
- Start a session, get it, list sessions, or update one.
- Send a message, define an outcome, confirm a tool, return a custom-tool result, or interrupt execution.
- Send ordered provider events when one request must contain multiple events, including a user event immediately followed by system context.
- Inspect session events, threads, thread events, and resources.
Agents and environments
- Create an agent, update it, and inspect immutable versions.
- Create a hosted environment and control packages plus unrestricted networking or networking restricted to specified domains.
- Session creation accepts GitHub repositories, uploaded-file references, memory-store references, vault IDs, budgets, metadata, initial messages, outcome definitions, agent overrides, MCP servers, skills, and multi-agent rosters.
All actions
- Create Agent
- Get Agent
- List Agents
- Update Agent
- Archive Agent
- List Agent Versions
- Create Environment
- Get Environment
- List Environments
- Update Environment
- Archive Environment
- Delete Environment
- Start Session
- Run Agent
- Get Session
- List Sessions
- Update Session
- Archive Session
- Delete Session
- List Session Events
- Send Session Events
- Send Message
- Send System Context
- Define Outcome
- Confirm Tool
- Submit Custom Tool Result
- Interrupt Session
- List Session Threads
- Get Session Thread
- Archive Session Thread
- List Session Thread Events
- Add Session File
- Get Session Resource
- List Session Resources
- Update Repository Token
- Delete Session Resource
All triggers
- On Agent Event
- On Agent Created
- On Agent Updated
- On Agent Archived
- On Agent Deleted
- On Environment Event
- On Environment Created
- On Environment Updated
- On Environment Archived
- On Environment Deleted
- On Session Event
- On Session Run Started
- On Session Idled
- On Session Budget Reached
- On Session Rescheduled
- On Session Terminated
- On Session Thread Created
- On Session Thread Idled
- On Session Thread Terminated
- On Session Outcome Evaluation Ended
- On Session Updated
- On Session Deleted