API

AgentManager

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/organizations/{organization_id}/agents/{id}/managers create Agent with its current managers
DELETE /api/v1/organizations/{organization_id}/agents/{id}/managers/{user_id} remove The teammate no longer manages the agent

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

created, err := client.AgentManager(nil).Create(map[string]any{"agent_id": "example", "organization_id": "example", "user_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
removed, err := client.AgentManager(nil).Remove(map[string]any{"agent_id": "example", "id": "example_id", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local created, err = client:AgentManager():create({ agent_id = "example", organization_id = "example", user_id = "example" })
local removed, err = client:AgentManager():remove({ agent_id = "example", id = "example_id", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$created = $client->AgentManager()->create(["agent_id" => "example", "organization_id" => "example", "user_id" => "example"]);
$client->AgentManager()->remove(["agent_id" => "example", "id" => "example_id", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

created = client.AgentManager().create({ "agent_id": "example", "organization_id": "example", "user_id": "example" })
client.AgentManager().remove({"agent_id": "example", "id": "example_id", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

created = client.AgentManager.create({ "agent_id" => "example", "organization_id" => "example", "user_id" => "example" })
client.AgentManager.remove({ "agent_id" => "example", "id" => "example_id", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const created = await client.AgentManager().create({ agent_id: "example", organization_id: "example", user_id: "example" })
await client.AgentManager().remove({ agent_id: "example", id: "example_id", organization_id: "example" })

Fields

Field Type Required Description
attention one,string,null Yes Whether this agent waits on its viewer, decided from its provisioning, decisions awaiting an answer, the outcome of its last reported run and the model's verdict on its last reply (question when reply_triage is needs_you).
avatar one,string,null No Emoji or up to two visible grapheme clusters, at most 64 UTF-8 bytes, without control or bidi override characters.
can_delete boolean No Whether this viewer may delete this v2 agent.
can_edit_configuration boolean Yes Can Edit Configuration
can_manage boolean Yes Can Manage
can_manage_sharing boolean No Can Manage Sharing
can_name_managers boolean No Whether the viewer may name managers now.
can_queue_input boolean No Current V2 authority to admit a durable input independently of native readiness.
can_reconcile_save boolean Yes May reconcile an identical previously accepted save; this does not authorize new configuration edits.
configuration any Yes Configuration
configuration_revision integer Yes Configuration Revision
configuration_version one,string,null Yes Opaque version token.
control_connections_available boolean No Whether this viewer may manage their own external Control connections, including cleanup while the agent is paused.
controlling_user_id string Yes Controlling User Id
coordination_available boolean No Durable task controls remain available even when native conversation history is unavailable.
created_at string Yes Created At
direct_chat_available boolean No Advisory availability of direct V1 chat.
has_unread_updates boolean Yes Has Unread Updates
id string Yes Id
last_reply_at one,string,null Yes When the agent's latest projected reply arrived, for grouping recent replies.
lifecycle_actions array Yes Currently authorized lifecycle actions for the saved revision and observed state.
lifecycle_version one,string,null Yes Opaque version token.
local_agent_control_available boolean No Whether this organization exposes paired local coding-agent control.
managers array No Teammates named as managers beside the owner.
model_change_action one,string,null No Advisory composer action.
name string Yes Name
organization_id string Yes Organization Id
persona any No Persona
preview any No Preview
preview_received_at one,string,null No When a newer canonical conversation preview was first projected.
provisioning any No Provisioning
reply_triage one,object,null Yes A model's verdict on the agent's latest reply, judged once when it arrived.
runtime_version string No Immutable execution runtime selected at creation.
setup_pending boolean Yes Setup Pending
sharing_fixed boolean No Project agents have a fixed audience and cannot change visibility.
sharing_version integer No Sharing Version
slug string Yes Slug
status string Yes Status
team_role string No What teammates may do once the agent is shared with the team.
updated_at string Yes Updated At
url_slug string No Stable organization-scoped browser name for /ORG/agent/NAME.
user_id string Yes User Id
visibility string No Visibility

create

POST /api/v1/organizations/{organization_id}/agents/{id}/managers

Operation ID: managers_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes

Request body

application/json

Property Type Required Description
user_id string Yes

Responses

200: Agent with its current managers

application/json

Property Type Required Description
agent object and object Yes
401: Authentication required
403: Sharing authority required
404: Organization, agent or member not found
422: The owner already manages the agent, or the agent is private
502: Bad gateway

remove

DELETE /api/v1/organizations/{organization_id}/agents/{id}/managers/{user_id}

Operation ID: manager_api_v1_organization_persistent_agent.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
user_id path string Yes

Responses

204: The teammate no longer manages the agent
401: Authentication required
403: Sharing authority required
404: Organization, agent or manager not found