Skip to content

When to use eventId and/or idempotency key when creating a message #1251

Answered by tasn
mderriey asked this question in Q&A
Discussion options

You must be logged in to vote

It was missed, thanks for bumping!

More info:

  1. eventId: this is a unique identifier per message. It's meant to be used if you already have a unique internal identifiers for events. The uniqueness in enforced over a 24hr period for performance reasons, but this should be globally unique. You can query by this identify later as well to correlate webhooks with your internal event IDs. Sending two events with the same ID is therefore an error, as those should be unique.
  2. Idempotency: this is intended to be a mechanism to allow to safely retry API calls (this applies to other calls, not just create message). Consider this scenario: you make an API call and get a timeout (but it actually succeed…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tasn
Comment options

tasn Mar 7, 2024
Maintainer

Answer selected by mderriey
@mderriey
Comment options

@tasn
Comment options

tasn Mar 7, 2024
Maintainer

@mderriey
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants