---
title: "List a file's share links"
method: GET
path: "/v1/assets/{asset_id}/share-links"
tags: ["assets"]
---

# List a file's share links

`GET /v1/assets/{asset_id}/share-links`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/assets/{asset_id}/share-links`
- Auth: HTTP bearer

Every share link minted for this file, newest first, revoked ones included — who can reach the file right now, and what has been shut off. Tokens are never included: they are shown once, at creation. Answers 404 when the file does not exist, has been deleted, or belongs to another workspace.

## Path parameters

- `asset_id` string, uuid, required: The asset's id.

## Headers

- `X-Tenant-Id` string, nullable

## Response `200`

Successful Response

- AssetShareLinkInfo[]
  - `password_protected` boolean, required
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `revoked_at` string, date-time, nullable: When this link was shut off, or null while it still works.
  - `expires_at` string, date-time, nullable: When this link stops working on its own. Null means it never does: either somebody created it with no end date, or it predates expiry entirely. Such a link is still revoked the moment somebody turns it off, deletes the file, or sets the file to 'Only me' — and a revoked link never comes back.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `403`: Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)
- `404`: Not found
- `422`: Validation error

---

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