Skip to content
Connect an agent

Organisations

Read which agents may connect to an organisation

"Only approved agents can connect": whether it is on, the approved agents, the known agents offered in one click, and the agents seen recently.

GET/orgs/{org}/policies/agents

TL;DR

QuestionAnswer
What does it do?Read which agents may connect to an organisation.
What does it take?org in the path.
What does it return?Status 200 with a body of type AllowedAgentsPolicy.
What can go wrong?401 not signed in; 403 a member or a reader (orgs.forbidden); 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

"Only approved agents can connect": whether it is on, the approved agents, the known agents offered in one click, and the agents seen recently. The owner and admins.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The policy.AllowedAgentsPolicy
401Not signed in.ErrorResponse
403A member or a reader (orgs.forbidden).ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type AllowedAgentsPolicy.

FieldTypeRequiredDescription
enabledbooleanyes"Only approved agents can connect". False means any agent a member approves may connect.
agentsAllowedAgent[]yes
presetsobject[]yes
presets[].idstringyes
presets[].labelstringyes
presets[].entriesobject[]yes
presets[].entries[].namestringyes
presets[].entries[].redirectstringyes
presets[].confirmedbooleanyesFalse when the name and redirect are what the agent is known to send but were not seen in Plotwork's own tests; it may not match.
recentobject[]yesThe agents that connected to the organisation in the last 90 days, one each, newest first.
recent[].entryAllowedAgentyes
recent[].connectionsintegeryesHow many of its connections to the organisation are live.
recent[].lastConnectedAtintegeryes

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools