Skip to main content
PUT
Share an agent with a role

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user). A key created with scopes reaches only the permission groups they name, and gets 403 insufficient_scope elsewhere; GET /public-api/scopes lists them.

Path Parameters

agent_id
string
required
role
string
required

Body

application/json
level
ShareLevel · array
required

How far one per-agent share reaches, narrowest first. MESSAGE lets a person message a chat agent and gives nothing else: no view of its setup, no run, no edit. RUN gives view, run and message, and no right to edit or delete. EDIT also lets a role that authors workflows edit it. MESSAGE is for a share with a role only.

Response

Success.

data
AgentSharesInfo · object
required
meta
object
required