How to trigger event when create content in admin panel?

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

I need to call an external API when a content (for example blog post) is created in admin panel?
Any idea?

Try this - lifecycle hooks in model.js file of your content type:

https://strapi.io/documentation/developer-docs/latest/concepts/models.html#lifecycle-hooks

1 Like

Take a look in Settings, in Webhooks section:
https://strapi.io/documentation/developer-docs/latest/concepts/webhooks.html#what-is-a-webhook

1 Like