API reference

Devices

3 endpoints under /v1/devices.

List devices

get/v1/devices

Requiresdevices:write

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response

Register a push device.

post/v1/devices

Idempotent on push_token. Re-registering moves the existing row instead of duplicating it, so it is safe to call on every launch.

Requiresdevices:write

Headers

  • X-Organization-IDstringoptional

Request body

  • platformstringrequired
  • push_tokenstringrequired
  • apns_environmentstringoptional
  • installation_idstring (uuid)optional

Failures return the error envelope; branch on error_code.

Request
Response

Remove device

delete/v1/devices/{device_id}

Requiresdevices:write

Path parameters

  • device_idstring (uuid)required

Headers

  • X-Organization-IDstringoptional

Failures return the error envelope; branch on error_code.

Request
Response