> ## Documentation Index
> Fetch the complete documentation index at: https://moengage.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Triggered Campaigns not working on S2S events, how to resolve?

> Fix event-triggered campaigns that fail with server-to-server events. Add the realtimeaction flag to your MoEngage S2S API requests to resolve this.

S2S events have to be modified a bit, for them to be considered for event-triggered campaigns. There is a flag you need to pass as part of S2S events.

You should use an additional key **"real\_time\_action": "true"** in the API request which can be added while sending the events to us.

PFB the sample request:

<CodeGroup>
  ```json JSON wrap theme={null}
  {
  "type": "event",
  "customer\_id": "1234567890",
  "actions": [
  {
  "action": "Set MPIN Failure",
  "real\_time\_action": "true",
  "attributes": {
  "date": "2017-02-06T15:49:28.744Z"
  },
  "platform": "IOS",
  "app\_version": "2140",
  "user\_time": "1486376368",
  "current\_time": "1486376368"
  }
  ]
  }
  ```
</CodeGroup>

The presence of this key in your request tells our system that these events have to be considered for event-triggered campaigns.

If you are still facing any issues, contact the MoEngage Support team.
