GET /instances because it’s a safe way to confirm that your API token works, your base URL is correct, and your client can read a JSON response.
This request lists Compute instances visible to your account. If the response is successful but the list is empty, your token may still be working. It may simply mean there are no instances available to that user or organization.
Before you start
Make sure you have:- A Compute with Hivenet account
- An API token
- A terminal or API client that can send HTTP requests
https://api.hivenet.com/v1
Send a request
1
Prepare your API token
Copy your API token from the place where your account or organization manages API access.
2
Call the instances endpoint
Send a
GET request to /instances.Replace YOUR_API_TOKEN with your actual token before running the command.3
Check the response
A successful request returns
200 OK and a JSON response. The response includes a data array and pagination information. A shortened example looks like this:Understand the request
The request uses three important pieces:
The query parameter
size=10 limits the response to 10 instances. You can remove it or change the number when you need a larger page.