Register User
User registration and verification
Requests a verification code to be emailed. The verification code is then entered to /verify to get the access token. The code is single-use and valid for 60 minutes. To protect against spam, this endpoint is rate limited.
Verification code emailed successfully
successPossible values: INVALID - Missing or malformed fields Email missing or not valid format
Too many requests - Rate limit exceeded Rate limits apply per email address, IP address and total. Try again later.
POST /register HTTP/1.1
Host: network.ruuvi.com
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"email": "otso+docs@ruuvi.com"
}{
"result": "success",
"data": {
"email": "otso+docs@ruuvi.com"
}
}Verify a user's email with a verification code to get an access token. The code is single-use and valid for 60 minutes. Access tokens remain valid while actively used and are removed after approximately 180 days of inactivity, unless revoked earlier.
BCDFVerification code successful
successPossible values: INVALID - Missing or malformed fields Code missing
Forbidden - Verification code invalid or expired
Too many requests - Rate limit exceeded Rate limits apply per IP address and total. Try again later.
GET /verify?token=text HTTP/1.1
Host: network.ruuvi.com
Accept: */*
{
"result": "success",
"data": {
"email": "otso+docs@ruuvi.com",
"accessToken": "753133/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"newUser": true
}
}Last updated