Skip to main content
POST
Add an agent to a workspace

Authorizations

Authorization
string
header
required

Account API key: key id as the username, secret as the password.

Path Parameters

workspace_id_or_name
string
required

Body

application/json
agent_id
string<uuid>
required
should_autoupdate
boolean
default:true
is_default_chat_agent
boolean
default:false
event_id
string<uuid> | null

Response

Successful response

id
string<uuid>
created_at
string<date-time>
updated_at
string<date-time>
creator_id
string<uuid>

The user or API key that added this agent version to the workspace.

version_id
string<uuid>
workspace_id
string<uuid>
is_default_chat_agent
boolean

If True, this workspace agent is used for new chat sessions when no explicit agent is provided.

should_autoupdate
boolean

If True, the agent will automatically update when a new version is published.

required_credentials_mode
enum<string> | null

Whose credentials this agent may run with: SHARED = only org-side credentials serve, MEMBER = only the acting member's own. Unset = the workspace's declaration applies, and no requirement when that is unset too.

Available options:
SHARED,
MEMBER
agent
object
agent_version
object
creator
object
workspace
object