Skip to main content
Start with a read-only request before you try actions that change a resource. This page uses 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
You’ll also need the public API base URL: 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.

Read the response

In the response, check these fields first:
Save one instance_id from the response if you want to test instance-specific endpoints later, such as GET /instances/{id} or GET /instances/{id}/logs.

Common first errors

Don’t test the API for the first time with an action that changes a resource. Use read-only endpoints such as GET /instances until you’re sure your token and client are working.

Next step

Continue with Authenticate API requests to learn how bearer tokens are sent, stored, and handled safely.