Working with the App Gateway

The app gateway requires an API Key to make requests and supports apns (Apple device push notification service), gcm (Google device push notification service), mailto (standard mail address via AWS SES), sms (standard phone number SMS via AWS SNS), and slack (a Slack channel API hook) recipients.

Example API call:

curl -XPOST "https://app-gateway.lamp.digital/push" \
-H 'Content-Type: application/json' \
--data-binary @- <<'EOF'
{
"api_key": "YOUR_API_TOKEN_HERE",
"device_token": "apns:YOUR_APNS_DEVICE_TOKEN_HERE",
"payload": {
"aps": {
"alert": "Hello world!",
"badge": 0,
"sound": "default",
"mutable-content": 1,
"content-available": 1
},
"notificationId": "test123",
"expiry": 84600000,
"actions": []
}
}
EOF
Last updated on by Aditya Vaidyam