---
title: "Accept Share Links"
method: POST
path: "/v1/shareLink/{shareLinkId}/accept"
tags: ["Sharing"]
---

# Accept Share Links

`POST /v1/shareLink/{shareLinkId}/accept`

Accepts a share link for a document or folder on behalf of the authenticated user, granting them access to the shared resource.

## Path parameters

- `shareLinkId` string, required

## Response `200`

OK with an Accept Share Link result containing information about the accepted document or folder.

- union
  - AcceptDocumentShareLinkResult
    - `invitationType` string, required — The kind of share link that was accepted (document or folder).
    - `documentId` string, uuid — If defined, the Id of the document whose share link was accepted.
    - `folderId` string, integer — If defined, the Id of the folder whose share link was accepted.
  - AcceptFolderShareLinkResult
    - `invitationType` string, required — The kind of share link that was accepted (document or folder).
    - `documentId` string, uuid — If defined, the Id of the document whose share link was accepted.
    - `folderId` string, integer — If defined, the Id of the folder whose share link was accepted.

## Other responses

- `403` — Forbidden if the app making the request does not have permission to accept the share link, if the document/folder has been deleted, or the invitation requires a passcode (unsupported).
- `404` — Not Found if the share link has expired or does not exist.

---

[API](https://skmtc.net/lucid/apis/lucid-rest-api.md) · [All operations](https://skmtc.net/lucid/apis/lucid-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lucid/lucid-rest-api/revisions/6a32cb9e1aa7/schema)
