---
title: "Get Share Info"
method: GET
path: "/api/v1/project/{project_id}/share"
tags: ["project"]
---

# Get Share Info

`GET /api/v1/project/{project_id}/share`

Get share link info for a project.

Returns one of three states:
- Never shared: is_shared=False, share=None
- Previously shared (revoked): is_shared=False, share={is_active: False, ...}
- Currently shared: is_shared=True, share={is_active: True, ...}

Also includes workspace context (name, member count, project visibility)
for the share dialog. Requires write access to the project.

Args:
    project_id: UUID of the project (validated for write access)
    user_profile: Current user's profile (for workspace_id)
    share_service: ProjectShareService for share link operations

Returns:
    Share info with is_shared flag, optional share details, and workspace context

## Response `200`

Successful Response

- ShareInfoResponse — Response for GET share info. Three possible states: - Never shared: is_shared=False, share=None - Previously shared (revoked): is_shared=False, share={is_active: False, ...} - Currently shared: is_shared=True, share={is_active: True, ...} Optional workspace context (for share dialog): - workspace_name, workspace_member_count, workspace_visibility
  - `is_shared` boolean, required
  - `share` ShareLinkResponse — Response containing share link details for a project owner.
    - `share_url` string, required
    - `share_token` string, required
    - `is_active` boolean, required
    - `view_count` integer, required
    - `created_at` string, date-time, nullable
  - `workspace_name` string, nullable
  - `workspace_member_count` integer, nullable
  - `workspace_visibility` string, nullable
  - `restricted_layer_names` string[]

---

[API](https://skmtc.net/maia-analytics/apis/maia-api.md) · [All operations](https://skmtc.net/maia-analytics/apis/maia-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia-analytics/maia-api/versions/ba2b8d962161/schema)
