Webhook for new entry in collection

Hello everyone,

I’m looking a webhook that will only trigger for NEW entries in a collection, since the endpoint receiving the webhook has no knowledge/history of what entries already exist.

Is there an existing event?

Thank you!

Hang

you could use something like this within the read-code (no, not create) of your collections:

   // if we are in entry *create* view (only (won't take effect in the edit view (because of the if branch)))
   if(preg_match('/^\/collections\/entry\/[a-zA-Z0-9_-]*\/?$/', $_SERVER['REQUEST_URI'])) {
     // do some stuff
     //$context->...
   }

its a bit hacky but should work at all

Thanks! Will try that!