GET /instances to confirm that your API key works, the base URL is correct, and your client can read a JSON response.
Before you start
You’ll need:- A Compute with Hivenet account
- An API key issued for that account
- A terminal or API client
https://api.hivecompute.ai/v1
Staging base URL:
https://staging-api.hivecompute.ai/v1
Use the production URL for normal integrations. Use staging only when you specifically need to test against the staging API.
Send a request
1
Prepare your API key
Store your key in an environment variable:
2
List your instances
Send a
GET request to /instances:3
Check the response
A successful request returns
200 OK and a JSON response with a data array and pagination information.data array can still mean authentication succeeded. It may simply mean the account has no matching instances.
Region filters use codes such as
FR, while the region field returned on an instance contains the datacenter location, such as france-2.