๐ข BCG Authentication
๐ Overview
The Broadcast Gateway (BCG) service now requires authentication using app keys. All client applications must include their whitelisted app key in every request to ensure only authorized services can send broadcast messages.
๐ Authentication Requirements
Required Header
All requests must include:
X-Application: <your-app-key>
Example (Correct)
curl --location 'https://bcg-service-nxtpp.platformservices-dev.aws.private/BroadcastGateway/v2/send' --header 'Content-Type: application/json' --header 'X-Application: your-whitelisted-app-key' --data '{
"accountId": 715224053,
"programme": "NA",
"initiative": "NA",
"messages": [
{
"messageId": "931efbfb-171b-4e42-92df-f08a758656b6-abc",
"expiryDate": "2025-12-12T22:22:19.266Z",
"payload": {
"urn": "sbg:messaging:priceBoost",
"params": {
"promoName": "Booster Token"
}
},
"preferredAppKey": "9Fs5bFQ2XfGSPgep",
"preferences": [
{
"channels": [
{
"channel": "ON_SITE",
"displayType": "FULL_SCREEN"
}
]
}
],
"priority": 1
}
],
"context": {
"decisionModelVariantName": "sbc",
"decisionModelName": "sbcDecisionModel"
}
}'
๐งพ Response Codes
Scenario Status Code Description
โ Valid app key 200 OK Request processed successfully
โ Missing X-Application 401 No app key provided
header Unauthorized
โ Invalid / not-whitelisted 403 App key not authorized app key Forbidden
๐ How to Get Your App Key
For Service Teams
- Generate a unique app key for your service.
- Submit the app key to the Callisto team (Email us at SST.Callisto@paddypowerbetfair.com)
- Wait for confirmation that the key has been whitelisted.
- Start adding the key to your
X-Applicationheader.
๐ Request Examples
โ Successful Request (200)
curl -X POST 'https://bcg-service-nxtpp.platformservices-dev.aws.private/BroadcastGateway/v2/send' -H 'X-Application: prod_service_a_abc123' -H 'Content-Type: application/json' -d '{"messages": [...]}'
โ Missing Header (401)
# Missing X-Application header โ 401 Unauthorized
curl -X POST 'https://bcg-service-nxtpp.platformservices-dev.aws.private/BroadcastGateway/v2/send' -H 'Content-Type: application/json' -d '{"messages": [...]}'
โ Invalid Key (403)
# Invalid app key โ 403 Forbidden
curl -X POST 'https://bcg-service-nxtpp.platformservices-dev.aws.private/BroadcastGateway/v2/send' -H 'X-Application: invalid_key_123' -H 'Content-Type: application/json' -d '{"messages": [...]}'
๐ ๏ธ Troubleshooting
Common Issues
-
401 Unauthorized: Ensure the
X-Applicationheader is present. -
403 Forbidden: Verify your app key has been whitelisted by the Callisto team.
-
400 Bad Request: Check that the request body is properly structured and valid.
๐ฌ Support
To whitelist the appKeys, please raise a request on email to Callisto Squad at SST.Callisto@paddypowerbetfair.com
App key registration ask_personalisation
Technical / integration issues ask_personalisation