Hive API v2


Hi guys,

here you can find a Laravel package for interacting with Hive OS api


Ругается… что ему не нравится ? 21: function: not found 30: [[: not found 30: 200: not found 1: jq: not found 35: Syntax error: “}” unexpected



I have created a mining monitoring program that performs scoring and statistics as well as profitability calculations. My program is under windows and is currently compatible with current currencies: ETH-ETC-ZEC
I would like to interact with my program so that it can give orders to hiveOS but I did not understand the use of hive very well
I understood that we must use the end point:

to log in, use

When I enter this in a browser, I receive in response:
“message”: “”

How to authenticate on the API, the process seems complex!
I saw that there were several examples of programs in Javascript, PHP and bash.
I tried these different methods: javascript: impossible to execute the program (many errors)

Would it be possible to do the same thing as the bash but for BATCH WINDOWS ???

ooops if someone could guide me, it will be nice

Thank you for your reply

Jean Pierre


I found the solution and I just implemented my gateway to the pc target hosting HIVEOS
by simply passing through CYGWIN and using the demo script in BASH (LINUX) on the HIVEOS forum
That way, I can run bash commands from WINDOWS


Correct me if I’m wrong.
After login, my token is valid for 2 weeks.
To acquire new token I need to provide 2FA code.
If above are true, I’m not able to automate token refresh, so I’m not able to fully automate my monitoring solution.
Is that right?


Hi, you need to create personal API token for your monitoring system. This token never expires until you delete it.


I’m trying to use the API to switch flight sheets, but I am having the following problem:

$ curl -s -w '\n%{http_code}' -H 'Content-Type: application/json' -H 'Authorization: Bearer KEY_DELETED' -X PATCH -d '{"fs_id": X16R}'
    "message": "Empty input"

I know the API key is OK, because this works:

curl -s -w '\n%{http_code}' -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9hcGkyLmhpdmVvcy5mYXJtIiwiaWF0IjoxNTU1MzgyMTA3LCJleHAiOjE4NzIyMTA5MDcsIm5iZiI6MTU1NTM4MjEwNywianRpIjo0OTA3MTg5LCJzdWIiOjQ5MDcxODksInJtYiI6dHJ1ZX0.0BqoOA_IaQlOvEmIAjLhgtDmZJcfq16Bg0szV1Ko76E'

Any help on what I am doing wrong in trying to change the flight sheet?

Thank you!


You should send integer ID of the flight sheet in the request, but you send ‘{“fs_id”: X16R}’ which is also an invalid JSON.


Thank you, that fixed the problem!


та же проблема , как то решили ?


Добрый день. По таким вопросам обращайтесь в поддержку хайва (телеграм, почта), а это ветка по вопросам касательно API.


yes, fine :slight_smile: