GET https://api.cryptohopper.com/v1/device/code

Emails a new 6 digit authorization code for the device in the deviceId header to the account owner, to be entered with Authorize a device with an emailed code. The device must already be registered, which happens when it signs in.

The handler checks no OAuth scope. A new code can be requested at most once every 30 seconds; sooner returns 405. An already authorized device returns 400 Device already authorized.

Example request

curl "https://api.cryptohopper.com/v1/device/code" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Required The OAuth access token of the user.

Response

Example response (illustrative values)

{
    "data": "Code sent"
}

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