Gets the information for a shared link on a web link.
12345The ID of the web link.
shared_linkExplicitly request the shared_link fields
to be returned for this item.
Returns the base representation of a web link with the additional shared link information.
Returned when the access token provided in the Authorization header
is not recognized or not provided.
Returned if the file is not found, or the user does not have access to the file.
Returned if the file_id is not in a recognized format.
An unexpected client error.
curl -i -X GET "https://api.box.com/2.0/web_links/32423234?fields=shared_link" \
-H "authorization: Bearer <ACCESS_TOKEN>"await client.sharedLinksWebLinks.getSharedLinkForWebLink(webLinkId, {
fields: 'shared_link',
} satisfies GetSharedLinkForWebLinkQueryParams);client.shared_links_web_links.get_shared_link_for_web_link(web_link_id, "shared_link")await client.SharedLinksWebLinks.GetSharedLinkForWebLinkAsync(webLinkId: webLinkId, queryParams: new GetSharedLinkForWebLinkQueryParams(fields: "shared_link"));try await client.sharedLinksWebLinks.getSharedLinkForWebLink(webLinkId: webLinkId, queryParams: GetSharedLinkForWebLinkQueryParams(fields: "shared_link"))client.getSharedLinksWebLinks().getSharedLinkForWebLink(webLinkId, new GetSharedLinkForWebLinkQueryParams("shared_link"))shared_link = client.web_link('12345').get().shared_link
url = shared_link['url']{
"etag": "1",
"id": "12345",
"shared_link": {
"access": "open",
"download_count": 0,
"download_url": "https://app.box.com/shared/static/kwio6b4ovt1264rnfbyqo1.pdf",
"effective_access": "open",
"effective_permission": "can_download",
"is_password_enabled": false,
"permissions": {
"can_download": true,
"can_edit": false,
"can_preview": true
},
"preview_count": 0,
"unshared_at": "2020-09-21T10:34:41-07:00",
"url": "https://app.box.com/s/kwio6b4ovt1264rnfbyqo1",
"vanity_name": null,
"vanity_url": null
},
"type": "web_link"
}