# RubyPlay Game Events API

Real Money Rounds Only
We only deliver game events for **real money rounds**. Promotion rounds (such as **Free Rounds** or **Awarded Features**) do not send any game events.

## Overview

Game Events are predefined in-game actions or outcomes. These events represent specific occurrences during gameplay (e.g., triggering a feature, hitting a win condition, collecting symbols) and are standardized across games to ensure consistent scoring logic.

See [Supported Game Events](/content/integration/game-events/supported-events) for the full list of available events and what each one represents.

The Game Events API lets your system receive these events in real time. You subscribe to the event types you care about for specific games, and whenever a matching event occurs during play, a notification is delivered to your configured endpoint, letting you react to player activity as it happens.

## How It Works

1. **Discover**: Retrieve the games available to you and the events each one supports
2. **Subscribe**: Configure which game events you want to receive for specific games
3. **Receive**: Get real-time webhook notifications when subscribed events occur
4. **Process**: Handle incoming webhook payloads in your system


## Managing Your Webhook Subscriptions

Subscriptions are managed through the [RubyPlay Public API](/content/integration/public-api/game-events). Use these endpoints to configure which game events you want to receive as webhooks.

| Method | Endpoint | Description |
|  --- | --- | --- |
| [PUT](/content/integration/public-api/game-events/create-update-subscription) | `/api/v1/subscriptions/game-action-events` | Create or update subscriptions |
| [GET](/content/integration/public-api/game-events/get-subscription) | `/api/v1/subscriptions/game-action-events` | View your current subscriptions |
| [DELETE](/content/integration/public-api/game-events/delete-subscription) | `/api/v1/subscriptions/game-action-events` | Remove all subscriptions |


## Implementing Your Webhook Endpoint

To receive events, your system must expose an HTTPS endpoint that accepts our webhook deliveries. See [Implementing Your Webhook Endpoint](/content/integration/game-events/webhook-endpoint) for endpoint requirements, payload structure, response handling, and delivery and retry behavior.

## How Events Become Webhooks

When players interact with games, events are automatically processed and converted into webhook deliveries.

### What Events Can You Receive?

The system checks three criteria before sending webhooks:

1. **Your Access**: You must have access to the specific game
2. **Your Subscription**: You must be subscribed to the event type for that game
3. **Game Configuration**: The game must have webhook events enabled


## Complete Integration Flow

1. **Retrieve games and their events**: Call [Get Games](/content/integration/public-api/games/get-games) to get the games available to you. Each game lists the events it supports in the `gameEvents` field.
2. **Choose and subscribe**: Select the games and events you want to receive and submit them with [Create or Update Subscription](/content/integration/public-api/game-events/create-update-subscription).
3. **Receive and process**: Handle webhook notifications delivered to your endpoint whenever a subscribed event occurs.


## Getting Started

1. **Set up your webhook endpoint** to receive POST requests (see [Implementing Your Webhook Endpoint](/content/integration/game-events/webhook-endpoint))
2. **Test your endpoint** returns 200 OK for valid payloads
3. **Contact support** to get your brand credentials
4. **Retrieve available games and events** using the [Get Games](/content/integration/public-api/games/get-games) endpoint
5. **Create subscriptions** using the [Create or Update Subscription](/content/integration/public-api/game-events/create-update-subscription) endpoint for games and events you want to monitor
6. **Monitor incoming webhooks** and handle them in your system