---
title: "Get share link"
method: GET
path: "/agent/{agent_id}/share"
tags: ["Agents"]
---

# Get share link

`GET /agent/{agent_id}/share`

## Request

- Base URL: `https://api.mosaic.so`
- URL: `https://api.mosaic.so/agent/{agent_id}/share`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Report whether a mosaic is shared and return its link.

## Path parameters

- `agent_id` string, required

## Response `200`

Current share state

- AgentShareResponse
  - `agent_id` string: The shared mosaic. When duplicate is true this is the new copy.
  - `name` string
  - `visibility` 'public' | 'private'
  - `share_url` string, nullable: Link anyone can open, or null when the mosaic is private.
  - `source_agent_id` string: Mosaic the copy was made from. Only present when duplicate is true.
  - `source_run_id` string, uuid, nullable: Completed run used as the render source, or null when template-node renders were copied.
  - `duplicated` boolean
  - `stats` AgentDuplicateStats
    - `nodes_copied` integer
    - `connections_copied` integer
    - `renders_copied` integer
    - `render_media_refs_copied` integer

## Other responses

- `401`: Authentication failed
- `403`: Access denied
- `404`: Resource not found

---

[API](https://skmtc.dev/mosaic/apis/mosaic-ai-api.md) - [All operations](https://skmtc.dev/mosaic/apis/mosaic-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mosaic/apis/mosaic-ai-api/revisions/c20e9fc606a4?raw)
