curl https://api.pushnotif.ai/v1/devices/token \
-H "Authorization: Bearer pna_..." \
-H "Content-Type: application/json" \
-d '{
"device": { "install_id": "6f1c..." },
"token": "a1b2c3...",
"topic": "com.acme.app",
"environment": "production"
}'
{ "device_id": "41c7..." }
Ingest API
Register a push token
Store a device’s APNs token so we can send to it.
POST
/
v1
/
devices
/
token
curl https://api.pushnotif.ai/v1/devices/token \
-H "Authorization: Bearer pna_..." \
-H "Content-Type: application/json" \
-d '{
"device": { "install_id": "6f1c..." },
"token": "a1b2c3...",
"topic": "com.acme.app",
"environment": "production"
}'
{ "device_id": "41c7..." }
The SDK does this automatically. Call it yourself only if you
integrate manually without the SDK.
Body
string
required
The APNs device token as hexadecimal.
string
required
Your app’s bundle id.
string
required
sandbox for development-signed builds (Xcode, the simulator), production
for TestFlight and the App Store. A token only works in the environment that
issued it.Response
string
Our id for this device.
curl https://api.pushnotif.ai/v1/devices/token \
-H "Authorization: Bearer pna_..." \
-H "Content-Type: application/json" \
-d '{
"device": { "install_id": "6f1c..." },
"token": "a1b2c3...",
"topic": "com.acme.app",
"environment": "production"
}'
{ "device_id": "41c7..." }