Hive API v2

If you guys are having problems with 2FA make sure you add it to the header using:

X-Security-Code: XXXXXX

For example here’s the bash script:

# 1. Login
response=`curl -s -w "\n%{http_code}" \
	 -H "Content-Type: application/json" \
     -H "X-Security-Code: XXXXXX" \
	 -X POST \
	 -d "{\"login\":\"$login\",\"password\":\"$password\"}" \

Hi, I’ve got the error 403 forbidden to every command I try in the api specification link.

here is what I got to every command I tried :

<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx/1.10.3 (Ubuntu)</center>

here is the curl (bash) snippet:

curl -X 'GET' \
  '[my_farm_ID]/stats' \
  -H 'accept: application/json' \
  -H 'Authorization: [my_token]'

Am I doing something wrong ?
Is the apikey the same as the Authentication Tokens which is in the account section of the hiveOs website ?

thanks you.

Hey did you manage to get it working? having same issue