Cloudreve API Docs
  1. Share
Cloudreve API Docs
  • Site
    • Ping
      GET
    • Get CAPTCHA
      GET
    • Get site settings
      GET
  • Session
    • Token
      • Password sign-in
      • Finish sign-in with 2FA
      • Refresh Token
      • Sign out
    • OpenID
      • Prepare OpenID sign-in
      • Finish OpenID sign-in
      • Unlink OpenID
    • Passkey
      • Prepare Passkey sign-in
      • Finish Passkey sign-in
    • Prepare login
      GET
  • User
    • Passkey
      • Prepare passkey registration
      • Finish passkey registration
      • Delete passkey
    • Setting
      • List available storage policies
      • List available nodes
      • Get preferences
      • Prepare enabling 2FA
      • Update preference setting
      • Update profile pricture
    • Sign up
      POST
    • Send reset password email
      POST
    • Reset password via temp link
      PATCH
    • Get profile picture
      GET
    • Get user
      GET
    • List user's share links
      GET
    • Get storage capacity
      GET
    • Search user
      GET
    • List credit changes
      GET
    • List payments
      GET
  • Callback
    • Complete OneDrive upload
      GET
    • Complete COS upload
      GET
    • Complete S3 upload
      GET
    • Complete OBS upload
      GET
  • Workflow
    • Remote Download
      • Create remote download
      • Select files to download
      • Cancel task
    • List tasks
    • Get task progress
    • Create archive
    • Extract archive
    • Relocate storage policy
    • Import external files
  • File
    • Permission
      • Set permission
      • Delete permission setting
    • Upload
      • Create upload session
      • Upload file chunk
      • Delete upload session
    • Pin
      • Pin to sidebar
      • Delete a pin
    • Version
      • Set file version
      • Delete file version
    • Direct Link
      • Create direct links
      • Delete direct link
    • List files
    • List file activities
    • Get file info
    • Get thumbnail URL
    • Update file content
    • Create viewer session
    • Create file
    • Rename file
    • Move or copy files
    • Create download URL
    • Restore from trash bin
    • Delete file
    • Force unlock
    • Patch metadata
    • Mount storage policy
    • Update view setting
  • Share
    • Create share link
      PUT
    • Edit share link
      POST
    • Get share link info
      GET
    • List my share links
      GET
    • Delete share link
      DELETE
  • VAS
    • Payment
      • Create a payment
      • Get payment status
    • GiftCode
      • Check gift code
      • Redeem gift code
  • Group
    • List groups
  • WebDAV
    • List accounts
    • Create account
    • Update account
    • Delete account
  1. Share

Get share link info

GET
/share/info/{id}
Auth: JWT Optional
Get share link info from ID.

Request

Authorization
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
ID of the share link. Can be parsed from Username part of the URI of the shared file or the short link created in Create share link
Example:
g2guA
Query Params
password
string 
optional
Password of the share link for private share. Can be parsed from Password part of the URI of the shared file or the short link created in Create share link
Example:
gcqzfaze
count_views
boolean 
optional
If set to true, the visited counter of the share link will be increased.
Example:
true
owner_extended
boolean 
optional
If set to true and the requestor is the owner of the share, additional fields like source_uri will be available in the response.
Example:
true
Header Params
X-Cr-Purchase-Ticket
string 
optional
Can be used to authenticate to paid share links with a anonymous identity. The ticket value can be obtained after an anonymous user purchase a paid share link.
Example:
1f63aa26-edc0-40ce-950a-cb4d4323158e

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/share/info/g2guA?password=gcqzfaze&count_views=true&owner_extended=true' \
--header 'X-Cr-Purchase-Ticket: 1f63aa26-edc0-40ce-950a-cb4d4323158e'

Responses

🟢200Success
application/json
Body
data
optional
Response content. In some error type, e.g. lock conflicting errors, this field wil present details of the error, e.g. who is locking the current file.
Any of
If share link is not accessible to current user (unlocked is false), several fields wil be redacted.
id
string 
required
ID of the share link.
Example:
VoMFL
name
string 
optional
Name of the shared file/folder.
Example:
Shared folder
visited
integer 
required
Count of views to this share link.
Example:
776
downloaded
integer 
optional
Count of downloads to this share link. Only appliable to share links with a file(not folder) as source type.
Example:
0
price
integer 
optional
Price of this share link, in points.
Example:
999
unlocked
boolean 
required
Whether this share link is accessible to current user.
source_type
enum<integer> 
optional
Type of the shared source file.
Allowed values:
01
Default:
1
owner
object 
optional
Owner of this share link.
created_at
string <date-time>
optional
Create time.
expired
boolean 
optional
Whether this link is already expired.
url
string 
optional
URL of the share link.
Example:
http://cloudreve.org/s/VoMFL/2rje2bdj
permission_setting
object 
optional
Only visable to owner. Permission setting for this share link.
is_private
boolean  | null 
optional
Only visable to owner. Whether this link is private (with password).
password
string 
optional
Only visable to owner. Password of this share.
Example:
2rje2bdj
source_uri
string 
optional
Only visable to owner, the File URI of the source file in owner's my filesystem.
Example:
cloudreve://lpua@my/BrNJdjbgi1mvqBf7zycSCskw6ky8nle0
share_view
boolean  | null 
optional
Only visable to owner, whether the explorer view setting is shared with others.
code
integer 
required
Response code.
0 - Success.
Default:
0
Example:
0
msg
string 
optional
Human readable error message (if any).
error
string  | null 
optional
Internal error message, only visable in debug mode.
correlation_id
string <uuid> | null 
optional
Correlation ID of the request. Only presented on failed reqeust.
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Example
{
    "code": 0,
    "data": {
        "id": "g2guA",
        "name": "Inspirations",
        "visited": 0,
        "price": 20,
        "expires": "2025-06-17T16:16:39+08:00",
        "unlocked": true,
        "source_type": 1,
        "owner": {
            "id": "bnUn",
            "email": "luke@skywalker.com",
            "nickname": "Luke Skywalker",
            "avatar": "file",
            "created_at": "2023-08-06T19:21:59+08:00"
        },
        "created_at": "2025-06-10T16:16:39+08:00",
        "expired": false,
        "url": "http://localhost:5173/s/g2guA/gcqzfaze",
        "permission_setting": {
            "same_group": null,
            "everyone": "AQ==",
            "other": null,
            "anonymous": "BQ==",
            "group_explicit": {},
            "user_explicit": {}
        },
        "is_private": true,
        "password": "gcqzfaze",
        "share_view": true,
        "source_uri": "cloudreve://bnUn@my/Inspirations"
    },
    "msg": ""
}
Modified at 2025-06-12 05:34:44
Previous
Edit share link
Next
List my share links
Built with