Share an app connection with a workspace, or grant it to API keys [write]

Changed on

app:<slug> only (422 not_shareable otherwise). Without api_key, your connection of that app is shared with workspace's sessions, as POST /universes/{slug}/connections. With api_key (a key id of the request's workspace, which workspace must name), that key may call through it with POST /plugins/{id}/call, as POST /connectors/connections/{id}/grants; all_api_keys: true instead lets every key of that workspace. connection_id when you have several. A workspace key is 403 person_required.

post/plugins/{name}/share

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/plugins/{name}/share
  • Auth
    HTTP bearer

Path parameters

namestring required

Request body

workspacestring required
api_keystring
all_api_keysboolean
connection_idstring

Response

Shared

plugin_idstring
shared'workspace' | 'api_key' | 'all_api_keys'
workspacestring
connection_idstring
grantobject

Changes