Like what we’re doing? Star us on GitHub!

Webhooks?

corysimmons
6 months ago
2 1

Does Payload have any concept of webhooks on certain events?

  • DanRibbens
    Payload Team
    6 months ago

    Payload doesn't have webhooks, it gives you a complete API that other apps can call. You can extend your Payload app to call any code by adding your own hooks https://payloadcms.com/docs/hooks/overview.

    You can also add custom endpoints through payload or on your express app that can listen for calls.

    What are you trying to do?

    3 replies
  • corysimmons
    6 months ago

    Thank you.

    As an example, in my old CMS, anytime I would publish an Article, I'd have a webhook set up that hit a custom endpoint that recorded some audit log stuff to a table.

    Just lots of little things like that where if a piece of content is mutated, I can send the payload of that mutation to a specific endpoint.

  • jmikrut
    Payload Team
    6 months ago

    You can do all that with Payload Hooks - they can do everything webhooks can do but WAY better!

  • corysimmons
    6 months ago

    Awesome, awesome. Thank you! :)

Open the post
Continue the discussion in GitHub
Can't find what you're looking for?
Get help straight from the Payload team with an Enterprise License.Learn More