# Fetch Agent Sharing

Source: https://agenta.ai/docs/reference/api/fetch-agent-sharing

`GET /workflows/{workflow_id}/sharing`

Base URL: `https://us.cloud.agenta.ai/api` (US cloud), `https://eu.cloud.agenta.ai/api` (EU cloud) or `$AGENTA_HOST/api` (self-hosted). Authentication: `Authorization: ApiKey YOUR_API_KEY`.

Fetch Agent Sharing

## Parameters

- `workflow_id` (in path, string (uuid), required)

## Response schemas

### 200: Successful Response

- `count` (integer) Default: `1`.
- `sharing` (object, required)
  - `policy` (object, required)
    - `visibility` (string, one of: "private", "project", required)
    - `owner_user_id` (string (uuid), nullable)
  - `owner_is_active` (boolean, required)
  - `my_role` (string, one of: "owner", "participant", "viewer", "none", required): What the caller is on an item. Computed, never stored.
  - `can_take_ownership` (boolean, required)
  - `drives_made_shared` (array of string) Default: `[]`.
- `disclosure` (object, required): What sharing an agent or a session lets others reach. The three statements are always true; the UI owns their text.
  - `connections` (array of object, required)
    - `provider` (string, required)
    - `integration` (string, required)
    - `connection` (string, nullable)
    - `account_source` (string, one of: "agent", "user", nullable)
  - `private_drives` (array of string) Default: `[]`.
  - `agents_using_private_drives` (array of string) Default: `[]`.
  - `turns_use_run_credentials` (boolean) Default: `true`.
  - `files_and_tool_results_shared` (boolean) Default: `true`.
  - `trace_readers_can_read` (boolean) Default: `true`.

### 422: Validation Error

- `detail` (array of object)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (Context)
