Skip to main content
Question

Custom Shareable link via API

  • May 22, 2025
  • 1 reply
  • 33 views

Forum|alt.badge.img

hi community,

 

Is it possible to configure custom shareable link via API? BOX__ZM94XUP5DUrWtKwDNjhepQ.png

1 reply

Forum|alt.badge.img

Hi Bo,

To add a custom url via API you need to first share the item as mentioned in https://developer.box.com/reference/put-files-id--add-shared-link/. And again call the same PUT call by specifying { "shared_link": {"vanity_name": "yourcustomtext" }} as the body. I have tried to specify the same in a single call but it does not work.

Note: This is not documented but works for now, so use it on your own risk!

-Nayak