Webhook event time

Hi,
I would like to capture the event time for the delivery events. The payload doesn’t include this data, what do you suggest?
Is the header “x-emitted-at” the best event time?

Thanks,
Jonas

Hello @jonaso,

You can indeed use the "x-emitted-at” header which will be the most precise value (ISO 8601 format).
The other solution, as webhook events are triggered instantly, is to create your own timestamp when receiving the event, and consider it the emission time.

Best,

Many thanks!
In case of you fail to put the event on our endpoint, will “x-emitted-at” be updated in the next attempt?
To use “now” was my fall back, but for the above reason I would like to avoid to create my own.

Thanks,
Jonas

The header value will be updated for each request, as we don’t have any retry behaviour for webhooks events.

Best,

Thank you for quick answers!

Merry Christmas!

Thanks
Jonas

Thank you, Merry Christmas to you too!