---
title: Troubleshoot the Event API
slug: experimentation-strategy/data-docs/troubleshoot-the-event-api
docTags: 
createdAt: 2026-08-05T20:34:49.000Z
---

## I sent events through the API, but they are not showing up on the results page.

**Experiment was or is not running**

Make sure the experiment is running, and the events have timestamps within the bounds of the running experiment. See [Start a rule in Feature Experimentation](docId\:zfzSgUawnKhGc59SYlTbL) or [Steps to create an experiment](docId\:KiJTfQQjUsHKpV4igZ7Ea) for information on starting an experiment.

**Event payload was malformed**

Inspect the payload and verify that all required identifiers are correctly set, as described in the [API Reference](ref\:post_events). If the API responds with a `204` response code, it means that the Optimizely logging service has received and persisted the payload. This response code is *not* an indication that the event payload was validated.

**Event had one or more incorrect or missing identifiers**

Check that all required identifiers (`account_id`, `visitor_id`, `entity_id`, etc.) are present and correctly formatted.

**Event was missing a decision**

When activating users, verify that you sent a decision event and that the decision event had an earlier `timestamp` than the conversion events. Read [How Optimizely Experimentation counts conversions](docId\:onBazDzYYz526tL9aQF0s) for information.

**Decision was sent but not attributed to the correct&#x20;**`campaign_id`

When activating users, make sure the `entity_id` matches the `campaign_id` for the variation the user was assigned to.

**Event had an incorrect or out-of-bounds timestamp**

When activating and tracking users, make sure timestamps have the correct format (a 13-digit integer representing [time since epoch](https://en.wikipedia.org/wiki/Unix_time) in milliseconds) and are within the bounds of the running experiment.

## I sent events with revenue values through the API, but the revenue is not calculated correctly on the Results page.

**Revenue is missing from event payload**

Make sure `revenue` is present under the correct conversion event.

**Revenue has incorrect value**

Make sure `revenue` has an integer value and represents the revenue in *cents*.

## I sent events through the API, and I see some results, but I did not get the expected values.

**Duplicate events are sent**

Optimizely Experimentation detects events that share the same `entity_id`, `uuid`, and `timestamp`, and saves only one. Ensure each event has a unique `uuid` or a different `timestamp` before sending.

**Events have out-of-bounds timestamps**

Make sure timestamps have the correct format (a 13-digit integer, representing time since epoch in milliseconds) and are within the bounds of the running experiment.

**Conversion events have timestamps older than the decision event's timestamp**

Make sure the conversion events have `timestamp` values that are equal to or more recent than the related decision event's timestamp.

## Additional resources

- [Glossary of Optimizely Experimentation terminology](docId\:kS4RkF2DN0Tld-NsMsy9p)
- [Events: Tracking clicks, pageviews, and other visitor actions](docId\:puGm9z4XkEG5PDkyaNmlA)
- [Create a metric in Optimizely Web Experimentation ](docId\:cphstZe3xKhsY7WsnnLZK)
- [Segment your results in Optimizely Web Experimentation](docId\:fvtF9GogqH0QhzuLexs9z)
- [Custom Attributes: Capture visitor data through the API in Optimizely](docId:3kT0et8s5S8T25ZUCKQes)
