Skip to main content

What is the best way to use the Box API to get all shared links created by a specific user?

Welcome to the forum @user102 😀



I don’t think there is a way to achieve that directly, because basically, shared links are “linked” to a file or a folder, not to a user.



If you use the shared_items endpoint, you’ll get the User ID of its creator (https://developer.box.com/reference/get-shared-items/)



But I think you don’t have a way to do the opposite (list all the shared links created by a user).



What you would need, is having a Report endpoint, but at the moment, there is no Report endpoint on API. You can run a report in the WebApp only (in the Admin Console).


Thanks @CodeBoxSeb



This is my first time playing around with the Box API so your response is appreciated.



Do you think it can be done using the general search endpoint (https://developer.box.com/reference/get-search/)? I’ve went through the API Docs and perhaps it can be done using this? I am able to use the API was the associated service account but also as a specified user


Reply