Table of Contents |
---|
...
The code snippet below represents our standard webhook payload. Notice the webhook_var parameters. These parameters will be forwarded with the payload under the webhook_info object. As an example, when iFraming a game you could dynamically append a reg ID to the "webhook_var[abc]" query string parameter. As such, you might have webhook_var[UUID] as the parameter. This parameter will be forwarded back to your inbound webhook endpoint URL. Here's an example of embedding a game with an attendee that has a reg ID of 56: https://local-play.captello.com/Activations/loader/index.html?game=REARRANGE_WORDS&token=SKMq9wxebZrpwa4U1628010677&is_web_portal=0&webhook_var[UUID]=56
Info |
---|
The "prospect_info" object is optional. In our web app you can flip a flag to not have this object sent in the payload. |
...
Code Block |
---|
{ "id": "1", "timestamp": 1632054209, "team": { "id": "123", "name": "My Team" }, "activation_info": { "activation_id": "123", "activation_name": "My ReArrange Words", "activation_identifier_id": "25", "activation_identifier_alias": "REARRANGE_WORDS", "activation_identifier_name": "Rearrange Words" }, "activation_result": { "SCORE": 100, "DURATION": 0, "PRESENTS": [], "DONE": 0, "RIGHT": 0, "WINNER": 0 }, "webhook_info": { "webhook_var_val": "xyz", "webhook_var_regid": "mno", "webhook_var[abc]": "def", "webhook_var": "{\"regid\":\"123\",\"ticket\":[{\"id\":\"123\"},{\"name\":\"VIP\"}]}" }, "prospect_info": { "Id": 12345, "Email": "john.smith@company.com", "FirstName": "John", "LastName": "Smith", "FullName": "John Smith" } } |
Previewing Webhook Payload
You can preview your Webhook payload by clicking on this eye icon which will open up the webhook payload in a right panel:
...