Webhooks?

default discord avatar
corysimmons
last year
2 1

Does Payload have any concept of webhooks on certain events?

  • discord user avatar
    DanRibbens
    Payload Team
    last year

    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
  • default discord avatar
    corysimmons
    last year

    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.

  • discord user avatar
    jmikrut
    Payload Team
    last year

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

  • default discord avatar
    corysimmons
    last year

    Awesome, awesome. Thank you! :)

Open the post
Continue the discussion in GitHub
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.