More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

Hive API v2

Could you please tell me where can I find the security code?
First of all, my 2FA is turned off but my webpage response is that a security code is required, when I introduce one in the headers as you did here, it says it is wrong. Where is the correct one?

I have also used my token from account settings with my credentials.

I’ve been attempting to log in with my api authorization key. But it doesn’t appear to be allowing me access? Is there more steps then ensuring Authorization: is in the header of the api call? Very new to api’s I apologize if this is a stupid question, attempting to teach myself.

I am doing this fine in node red - make sure you have the word bearer in the authorization area - it seems lots of people keep missing this

what i did

  1. Login to web ui
  2. Go to settings under your account name (top right hand corner and right click for dropdown)
  3. Scroll down to Authentication tokens and generate new API token
  4. Copy that to your clipboard (i use windows)
  5. Open up a putty session to a Linux machine (or your miner)
  6. Copy in the following code

curl -s -w ‘\n%{http_code}’ -H ‘Content-Type: application/json’ -H ‘Authorization: Bearer YOUR_API_KEY_HERE’ https://api2.hiveos.farm/api/v2/farms/YOUR_FARM_ID_HERE

Craig

Зачем изменили страницу входа в ферму? Теперь она то и дело вываливается в logoff, на страницу авторизации(!), при этом при вводе логин - пароль(!), получаешь сообщение, что вас долго не было и снова показывает туже страницу авторизации(!). Приходится второй раз вводить логин и пароль, ну и код 2FA.
Это очень раздражает!

а API всё? Сломали с концами? Ничего не работает неделю

@hiveon, @keaton_hiveon, the API has not been working for several days, for any request I get a response “Unauthorized”. Even a page https://api2.hiveos.farm/api/v2/ is not working

Please FIX API
@hiveon @keaton_hiveon

I built an electron application to reset my rigs via smart plugs, notice that a rig was offline this morning, checking the electron app, it was throwing a bunch of 405 errors.
I generated a new api, didn’t work. Check my ip was on the white list, everything seem to checkout.
So I look through the electron app and wondered if I turned off websecurity

webSecurity: false,

The app suddenly started receiving data from the api again. I’m not too sure what the security implications are, but for now it seems to be the only way electrons app work with the api

Can someone give me a basic example either in php or python, preferably python how to check and see which workers are offline in my farm? I have no idea how to do this. I’ve generated a API Key, and I know my farm ID I just don’t know what code to write so if someone could provide me with a snippet that I could run that would be great!

Эндпойнт /auth/check - не работает корректно.
При любом токене (не важно корректный или нет) выдает

{"code":null,"message":"Application outdated"}

и возвращает код 410

为什么我充值了钱还没到账户啊

交易所地址充值的啊

same error

Like very one else here - I have not been able to login to the API. Using a personal access token ( generated in the UI). yes I have set the Bearer Token with the Token that I generated. I get re direct from cloudflare
{“code”:null,“message”:“Unauthorized”,“redirect”:"/api/oauth/authorize?state=0dfd66e3-b4e9-4278-8798-8bb31"}

I’ve tried to allow curl to follow redirects to no avail.

Is there anyone that can post an up to date bash script / curl command that can login?

Thanks,
M

1 Like

Is it possible to shutdown the worker via API?

Hey I fix this problem, adding my public IP to whitelist into Sign in to Hiveon ID
After this I can use the api, try to use in a server with a public ip, for avoid change continously this configuration

Has v1 API been removed? Sends to 404 page now

How can I send “sreboot wakealarm” command via api?

How can I send “reboot” command via api?
command “logs” work -X POST -d “{“command”: “miner”, “data”: {“action”: “log”}}”
command “reboot” not work -X POST -d “{“command”: “system”, “data”: {“action”: “reboot”}}”

Find the sulution. Now works
-X POST -d “{“command”: “reboot”}”