Example webhook endpoint
Webhook Api reference
Download OpenAPI description
Languages
Servers
Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/webhooks/webhooks/
Bodyapplication/jsonrequired
Currently single element
Additional data specific for event. Currently placeholder for future more complex events. More information in Event types section.
Example: {"field":"value"}
- Mock server
https://redocly.sportalliance.com/_mock/apis/magicline/webhooks/webhooks/webhook
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://redocly.sportalliance.com/_mock/apis/magicline/webhooks/webhooks/webhook \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"entityId": 7893459,
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"payload": [
{
"timestamp": 1642779144176,
"type": "CUSTOMER_CREATED",
"content": {
"field": "value"
}
}
]
}'