Skip to main content
Answered

Duplicate events for API

  • December 17, 2024
  • 1 reply
  • 23 views

Dear Sir / Madam,

 

We are developing an integration with Intercom via the API and events. Recently, prob starting about 1 - 2 weeks ago, we noticed that Intercom send 3 copies of every event.

 

We followed the guideline to send back the ok() on every event we processed, but somehow the duplicate events still come on every event. Did the guideline change?

 

This used to work well but something seems to have changed recently.

 

Best

Best answer by Jacques Reynolds

Hey ​@Emma A. 👋 Jacques here from Support Engineering!

The issue you're experiencing with duplicate events may be related to the event de-duplication process within Intercom's API. The API is designed to detect and ignore duplicate events, which are identified by a combination of the App identifier, the User identifier, the Event name, and the Event created time. It is recommended to send a second granularity Unix timestamp in the created_at field to ensure uniqueness. If duplicate events are still being sent, it's possible that there may be an issue with the timestamp or another part of the event identification process. Despite duplicates, the API will respond with a 202 Accepted code, and these repeat requests will count against any rate limit in place.

If you've been following the guidelines and are still receiving duplicates, it might be worth reviewing the event identification data you're sending, particularly the created_at field, to ensure it meets the required granularity and uniqueness.

For further guidance on event metadata types and to ensure you're following the most current practices, you can refer to the Event Metadata Types documentation here: Event Metadata Types.

This may require some digging so feel free to reach out to our support team so they can do some more troubleshooting on this for you! :)

View original
Did this topic help you find an answer to your question?

1 reply

Jacques Reynolds
Intercom Team
Forum|alt.badge.img+4

Hey ​@Emma A. 👋 Jacques here from Support Engineering!

The issue you're experiencing with duplicate events may be related to the event de-duplication process within Intercom's API. The API is designed to detect and ignore duplicate events, which are identified by a combination of the App identifier, the User identifier, the Event name, and the Event created time. It is recommended to send a second granularity Unix timestamp in the created_at field to ensure uniqueness. If duplicate events are still being sent, it's possible that there may be an issue with the timestamp or another part of the event identification process. Despite duplicates, the API will respond with a 202 Accepted code, and these repeat requests will count against any rate limit in place.

If you've been following the guidelines and are still receiving duplicates, it might be worth reviewing the event identification data you're sending, particularly the created_at field, to ensure it meets the required granularity and uniqueness.

For further guidance on event metadata types and to ensure you're following the most current practices, you can refer to the Event Metadata Types documentation here: Event Metadata Types.

This may require some digging so feel free to reach out to our support team so they can do some more troubleshooting on this for you! :)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings