├ 17

rest api

The SDK wraps a simple REST API. You can call it directly from any language. All endpoints require Authorization: Bearer <api_key>.

# Send
curl -X POST https://api.edgepush.dev/v1/send \
  -H "Authorization: Bearer io.acme.myapp|abc..." \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [{
      "to": "DEVICE_TOKEN",
      "title": "Hello",
      "body": "World"
    }]
  }'

# Get a receipt
curl https://api.edgepush.dev/v1/receipts/TICKET_ID \
  -H "Authorization: Bearer io.acme.myapp|abc..."