getAiCoworker

View as Markdown

Get an AI Coworker.

Returns the full agent definition with v1 state-machine fields. Behavior depends on the caller’s role:

  • Admin (MANAGE_AGENT_SETTINGS): returns the full agent. - Non-admin: returns the agent with segment access enforcement.

Parameters

NameTypeRequiredDescription
agentIdintegerYes