Calculate time delta between two events (via API)


Is it possible to calculate the amount of time between the two timeline events for each contact?

I see that there's a timestamp in the timeline however cannot figure out how to get it via the api.

Thanks in advance for your time.


Hi @KenW,

The timestamp should be included in the response from the 'Get timeline event' endpoint. To find the time between two distinct events, you could pull both events and subtract the smaller (i.e. older) timestamp from the larger (i.e. newer) timestamp. This would give you the number of milliseconds between the two timestamps.