Skip to main content
Start with a read-only request before you try actions that change an instance. This guide uses 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
Production base URL: 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.
An empty 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.

Read the response

Save an instance_id if you want to test GET /instances/{id} or GET /instances/{id}/logs next.

Common first errors

Test authentication with read-only requests before using start, stop, or terminate actions.

Next step

Continue with Authenticate API requests for key-handling guidance.