---
title: "Share an app connection with a workspace, or grant it to API keys [write]"
method: POST
path: "/plugins/{name}/share"
---

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

`POST /plugins/{name}/share`

## Request

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

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.

## Path parameters

- `name` string, required

## Request body

- object
  - `workspace` string, required
  - `api_key` string
  - `all_api_keys` boolean
  - `connection_id` string

## Response `201`

Shared

- object
  - `plugin_id` string
  - `shared` 'workspace' | 'api_key' | 'all_api_keys'
  - `workspace` string
  - `connection_id` string
  - `grant` object

## Other responses

- `default`: Error — { error: { code, message, request_id } }

## Changes

- **2026-11-02** `e5e8f0229a99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agentsky/apis/agentsky-developer-api/changes/plugins/:name/share/post.md)

---

[API](https://skmtc.dev/agentsky/apis/agentsky-developer-api.md) - [All operations](https://skmtc.dev/agentsky/apis/agentsky-developer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentsky/apis/agentsky-developer-api/revisions/0d435187cd55?raw)
