Skip to main content
Question

Event/Webhook when file is shared with me

  • May 22, 2025
  • 2 replies
  • 21 views

Forum|alt.badge.img

I have two questions.

1. Can I setup an event or webhook when a file (or folder) is shared with me by collaboration?

2. I don't see a file updated event or webhook trigger. If a user modifies a box file using an integration (like Microsoft Word online), is there a way to have an event notification that the file has been updated?

 

2 replies

Forum|alt.badge.img

Hello, 

Are you looking at watching an entire account or just a specific folder? 

Best,

Kourtney, Box Developer Advocate


Forum|alt.badge.img

I don't think collaborations specify a folder correct? They all seem to appear in the root folder, from the perspective of the Web UI.

I have a longpoll setup to watch events which successfully detects collaboration events, but honestly, I would far prefer to have the box API call me at a webhook when someone shares a file with me, than leave a process up, running, and connected to detect the same. 

The other alternative I see is setting up a polling interval to ask for collaboration events, but that creates a lag in my application reacting to file shares.