Base URL
All public API requests use this base URL:https://api.hivenet.com/v1
For example, the path GET /instances becomes:
https://api.hivenet.com/v1/instances
Authentication
All API requests require a bearer token. Send your token in theAuthorization header with every request:
Authorization: Bearer <your-api-token>
What you can do with the API
The available endpoints are listed in the API reference. Depending on your account and access level, you can use the API to work with supported Compute resources such as instances, authentication tokens, SSH keys, regions, presets, users, and organizations. For instance workflows, you can use the API to:- List instances visible to your account
- Filter instance results by status, GPU type, region, owner, organization, date range, or search text
- Get the current state of a single instance
- Start a stopped instance
- Stop a running instance
- Terminate an instance
- Fetch recent container log output from an instance
- Register an SSH public key to inject into instances you launch
- Get one of your registered SSH keys
- List regions where instances can be launched
- List hardware presets with hourly pricing
How API actions work
Some API actions return immediately while the platform continues working in the background. For example, when you start a stopped instance, the instance may move throughSTARTING before it reaches RUNNING. To check progress, call GET /instances/{id} until the status field shows the state you expect.
Terminating an instance is permanent. A terminated instance can’t be restarted, and its data is deleted.
What you’ll need
Before you make your first request, make sure you have:- A Compute with Hivenet account
- An API token
- A terminal, API client, or tool that can send HTTP requests
- Access to the resource you want to read or manage
curl request is enough for your first test.