papermark icon indicating copy to clipboard operation
papermark copied to clipboard

Webhooks for link / document events

Open mfts opened this issue 1 year ago • 5 comments

mfts avatar Oct 28 '23 06:10 mfts

Could you please explain this further? I would like to work on this issue.

luckyklyist avatar Oct 28 '23 10:10 luckyklyist

Absolutely @luckyklyist

Basically, the idea is that w provide events as a webhook to our users.

The user would add their external endpoint (example.com/api/webhook)and then choose which events should be pushed to that endpoint.

Events and their payload need to be well defined, but we can always expand and new events can always be added.

Obvious ones are:

  • link.viewed
  • document.viewed
  • document.downloaded
  • ...

For reference here's a list of webhook events from resend: image

mfts avatar Oct 30 '23 18:10 mfts

I would love to work in this issue. Can you please assign this issue to me? @mfts

RockingThor avatar Oct 31 '23 08:10 RockingThor

Go for it @RockingThor 🔥

mfts avatar Nov 03 '23 08:11 mfts

On it. Will raise a PR soon.

RockingThor avatar Nov 03 '23 08:11 RockingThor