---
title: "List active share tokens for a file"
method: GET
path: "/api/workspaces/{slug}/files/{fileId}/share"
tags: ["Files"]
---

# List active share tokens for a file

`GET /api/workspaces/{slug}/files/{fileId}/share`

## Request

- Base URL: `https://trydock.ai`
- URL: `https://trydock.ai/api/workspaces/{slug}/files/{fileId}/share`
- Auth: HTTP bearer

## Path parameters

- `slug` string, required
- `fileId` string, required

## Response `200`

Tokens list

- object
  - `tokens` object[], required
    - `id` string, required
    - `url` string, required
    - `createdAt` string, date-time, required

---

[API](https://skmtc.dev/trydock/apis/dock-rest-api.md) - [All operations](https://skmtc.dev/trydock/apis/dock-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trydock/apis/dock-rest-api/revisions/dd96ae96a412?raw)
