Toshl Developer

Push token

Endpoint where devices can send their push deviceToken/channelURI/regsitrationID (depends on the device you are using) which can later be used to send push notifications to this device.

POST /me/push

Parameters

type
required
string

Push token type

Possible values: apple, apple_fcm, google, windows
token
required
string

Send deviceToken/channelURI/regsitrationID (depends on the device you are using). Make sure the correct type is set.

Request

$ curl https://api.toshl.com/me/push \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{"type": "apple", "token": "XYZ"}'

Response

HTTP/1.1 204 OK