DirectLinks
Generate shareable links to filespace entries that open directly in the LucidLink app.
/api/v1/filespaces/{filespaceId}/direct-links
Generate a direct link
Generates a shareable direct link to a filesystem entry. Provide either entryId or path. Providing both or none will result in an error.
Parameters
Parameter | Type | Description |
|---|---|---|
|
| The ID of the filesystem entry to generate a direct link for. |
|
| Absolute path to the filesystem entry to generate a direct link for. |
|
| Required. |
entryId
Type
stringDescription
The ID of the filesystem entry to generate a direct link for.
path
Type
stringDescription
Absolute path to the filesystem entry to generate a direct link for.
filespaceId
Type
stringDescription
Required.
Responses
Status | Description |
|---|---|
| Direct link has been successfully generated. |
| 1. File system entry ID is invalid. 2. Cannot generate a direct link for this entry. 3. Exactly one of entryId or path must be provided. 4. Paths inside LucidLink should start with a '/'. |
| Invalid or missing credentials. |
| File system entry not found. |
200
Description
Direct link has been successfully generated.
400
Description
1. File system entry ID is invalid. 2. Cannot generate a direct link for this entry. 3. Exactly one of entryId or path must be provided. 4. Paths inside LucidLink should start with a '/'.
401
Description
Invalid or missing credentials.
404
Description
File system entry not found.
200 response
{"data": {"url": "https://app.lucidlink.com/l/1/M2ZmN2U0Y2ItZTZjOC00YzIyLWEwNjYtM2ZhOWM2NTRkODU5/AQAAAAAAAADD"}}
401 response
{"error": {"message": "Invalid or expired token"}}
404 response
{"error": {"message": "File system entry not found"}}