Reference / Events and destinations

Send one organisation to an agent

send_organisation_to_agentocmgr organisations send-agentPOST /v1/organisations/{id}/send-agentADMIN

Send one organisation to an agent — now, because you decided it was worth its attention, with no event or rule involved. Two kinds of destination: a Claude routine (cr_…, from list_destinations) starts one run with its own instructions, a line saying a teammate sent this organisation, your optional note, the organisation’s name and domain (usually not personal data, but withheld for an organisation with at most one person in the community unless the workspace includes personal data in events, since a one-person organisation’s name can be a person’s) and its organisation_id, and returns the Claude Code session link when Claude reports one; it consumes Claude plan usage. One of your own agent subscriptions to the organisation.sent event (sub_…, from list_event_subscriptions; ChatGPT and other MCP event clients) receives one organisation.sent event carrying the organisation_id, its page and whether there is a note, delivered to that subscription only; the agent reads the note with get_event_context. An organisation only your staff are in, one an admin excluded, or one that dissolved is refused. One send per organisation per destination per minute; a send refused for a fixable reason does not count. To a routine the note is sent once and not kept, so a failed send is sent again with this tool, not retried from the delivery log; to a subscription it is kept for seven days for the subscription’s owner and admins. A send that did not go gives back its event_id/idempotency_key receipt. Admin scope required.

Parameters

dry_runboolean

Check destination, ownership, subject and cooldown without sending, storing a note, claiming a retry receipt or consuming a run.

idempotency_keystringup to 200 chars

Optional retry key (1–200 characters). Prefer event_id for event-driven actions; add this key only to distinguish workflows acting on the same event. Completed retries return the first result even if input changes, with replayed: true and input_differed: true when different. Retained for 30 days.

event_idstring (uuid)

Pass the event’s data.event_id on any action taken in response to an MCP event. Datum derives the retry key from workspace, tool, principal and event; add idempotency_key only to separate workflows. Unknown, foreign or erased events return NOT_FOUND.

idstringREQUIRED

Which organisation: by key ("domain:acme.io", "github:acme") or by id, as list_organisations or get_organisation reports it.

destination_idstringup to 200 charsREQUIRED

A Claude routine destination (cr_…) from list_destinations, or one of your own organisation.sent agent subscriptions (sub_…) from list_event_subscriptions.

notestringup to 500 chars

A line of your own for the agent, e.g. "summarise what they have asked about this quarter". Addresses are removed. To a routine (cr_…) it is sent once and not kept; to a subscription (sub_…) it is kept for seven days for that subscription’s owner and admins.

CLI flags

--event-id <id>

Event data.event_id; derives a retry key for 30 days

--idempotency-key <key>

Optional retry key or workflow discriminator with --event-id (1–200 characters; 30 days)

--destination <id>REQUIRED

A Claude routine (cr_…) from events destinations, or your organisation.sent agent subscription (sub_…) from events subscriptions list

--note <text>

A line of your own for the agent. A routine gets it once and nothing keeps it; a subscription keeps it seven days for its owner

Also in Events and destinations