Skip to content

Connections

Connections let you push real-time event data from your games to external services. When a player starts a game, finishes a play, or claims a prize, DailyPlay can automatically fire a webhook to the endpoint you configure.

ProviderDescription
WebhookAny HTTP endpoint with optional auth
CustomCustom API URL with optional API key
ZapierZapier webhook (HTTPS required)
BrazeBraze messaging platform
HubSpotHubSpot CRM
MailchimpMailchimp email marketing
SalesforceSalesforce CRM
SegmentSegment analytics

  1. Create a connection at the organization level with your provider credentials
  2. Link the connection to one or more streams (campaigns)
  3. Choose trigger events that determine when the webhook fires
  4. When a trigger event occurs, DailyPlay sends a POST request to your endpoint with event data

Each stream connection can be configured to fire on one or more of these events:

EventFires when…
stream_accessA player opens the stream page
play_startA player starts a game
play_completeA player finishes a game
prize_redemptionA player claims a prize or voucher

  1. Go to Connections from the main navigation
  2. Click Add Connection
  3. Choose your provider (e.g. Webhook)
  4. Enter the required credentials:
    • Webhook / Custom — Endpoint URL and optional authorization header or API key
    • Zapier — Webhook URL (must be HTTPS)
    • Other providers — API key and any provider-specific fields
  5. Save the connection
  1. Open the stream you want to connect
  2. Go to the Connections tab
  3. Select an available connection from your organization
  4. Choose which trigger events should fire the webhook
  5. Save

When a trigger event occurs, DailyPlay sends an HTTP POST request to your configured endpoint. The payload is JSON and includes context about the event, the game, and the player.

{
"event_type": "play_complete",
"game_id": "163",
"stream_id": 453,
"stream_slug": "my-campaign-slug",
"stream_name": "My Campaign Stream",
"player_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"session_id": "s9k8j7h6-g5f4-d3c2-b1a0-123456789abc",
"score": 85,
"play_duration_seconds": 32,
"url_params": {
"user_id": "usr_123",
"email": "player@example.com",
"source": "email_campaign"
},
"timestamp": "2026-04-09T14:30:00.000Z"
}
FieldTypeDescription
event_typestringThe trigger event name (e.g. play_complete)
game_idstringThe ID of the game that was played
stream_idnumberThe ID of the stream (campaign) the game belongs to
stream_namestringThe display name of the stream
player_uuidstringUnique identifier for the player
session_idstringUnique identifier for the play session
scorenumberThe player’s score (for play_complete)
play_duration_secondsnumberHow long the player took to complete the game, in seconds
url_paramsobjectAny URL query parameters passed when the player accessed the stream
timestampstringISO 8601 timestamp of when the event occurred

  • Edit — Update credentials or rename a connection from the Connections page
  • Enable / Disable — Toggle a connection on or off without deleting it
  • Remove from stream — Unlink a connection from a specific stream while keeping the connection available for other streams
  • Delete — Permanently remove a connection from your organization