Notifications
Notifications

Register a push token

Register the Expo push token of the device the worker signed in on, so task assignments reach their phone. Replaces the executor's previous token, and moves a token that was registered by another account.

post/api/v1/notifications/register

Request

  • Base URL: https://api.execution.market
  • URL: https://api.execution.market/api/v1/notifications/register
  • Auth: API key in header Signature-Input

Headers

authorizationstring nullable

Bearer <supabase_jwt>

Request body

executor_idstring required

Executor this device belongs to

push_tokenstring required

Expo push token, e.g. ExponentPushToken[...]

platform'ios' | 'android' required

Platform.OS of the registering device

Response

Successful Response

executor_idstring required
platformstring required
registeredboolean

Changes

No recorded changes to this operation across all 1 revision of this API.