notifications

POST /v1/me/push-devices

Register (or re-register) this phone for alerts.

All notifications endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. This endpoint checks no specific permission, so any key for your organisation can call it.

Where your organisation id goes

This endpoint takes org_id as a query parameter. Leave it out and the call covers your whole tenancy subtree; send it to narrow the call to one organisation.

Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/me/push-devices \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "installation_id": <string>, "token": <string>, "platform": <string<ios, android>> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Called by the app after the customer allows notifications, and again whenever the push token rotates. The token is PROVED first with a silent dry run at the push service, so the phone is created already verified and a token the service refuses is refused here (422) instead of being stored to fail on a real alert. One row per install: the same installation_id updates its row (200); a new install creates one (201). A token another person in this organisation held on the same phone moves to the caller.

Parameters

NameTypeRequiredWhat it is
org_id (query)stringNoThe organization to act on, as for the other notification endpoints. Omitted resolves to your own only when you belong to exactly one organisation.

Request body

NameTypeRequiredWhat it is
installation_idstringYesA random id the app generates once per install and keeps.
tokenstringYesThe push token the phone's operating system issued to the app.
platformstring<ios, android>Yes—
device_namestringNo—
os_versionstringNo—
app_versionstringNo—
localestringNo—
time_zonestringNoAn IANA zone

Response

NameTypeRequiredWhat it is
idstringYes—
connection_idstringYes—
installation_idstringYes—
platformstring<ios, android>Yes—
device_namestringNo—
os_versionstringNo—
app_versionstringNo—
localestringNo—
time_zonestringNo—
quiet_enabledbooleanYes—
quiet_startintegerYes—
quiet_endintegerYes—
healthstringYes—
last_delivery_atstringNo—
last_seen_atstringYes—
created_atstringYes—

Errors this endpoint can return

401 · 403 · 422