Enable mobile push notifications

POST https://api.cryptohopper.com/v1/user/enableallmobilepushnotifications

Registers a mobile device for push notifications. Without permissions all notification types are enabled; with permissions only the listed types are enabled and the others are turned off.

OAuth scope: user About scopes

Without player_id the endpoint still returns HTTP 200, with the message "You need to provide a valid player ID".

Example request

curl -X POST "https://api.cryptohopper.com/v1/user/enableallmobilepushnotifications" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
permissions string Optional Optional comma-separated list of notification types to enable: config_error, on_first_start, on_trigger, on_panic_start, on_panic_end, order_placed, trade_completed, order_cancelled.
access-token string Required The OAuth access token of the user.
player_id string Optional Push notification player ID of the device. Required.

Response

Example response (illustrative values)

{
    "data": "Mobile notifications updated"
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.