Skip to content
Hexel StudioDocs

API overview

Base URL, authentication and the APIs in this reference.

On this page

The reference covers two HTTP APIs. Every endpoint page lists its parameters and response fields, and shows a request in cURL, TypeScript and Python.

Base URL

Both APIs are served from one host. Paths start with the API's prefix.

APIBase URLPaths
Computehttps://compute.hexelstudio.com/compute/v1/...
Agent Registryhttps://compute.hexelstudio.com/registry/v1/...

Authentication

Endpoints that need authentication list an Authorization header on their page. The value is an STS access token: get one by calling POST https://sts.hexelstudio.com/token with your key in the X-API-Key header, then send it as Bearer <token>.

curl --request GET \
  --url 'https://compute.hexelstudio.com/compute/v1/vms' \
  --header "Authorization: Bearer $ACCESS_TOKEN"

Requests and responses

Request and response bodies are JSON. Send Content-Type: application/json with every request that has a body. When something fails, the response carries a JSON error object; see Errors.

About this reference

The endpoint pages are generated from the OpenAPI specs listed in docs.config.ts; see API reference generation. Each resource page links to the spec its API was built from, at /docs/openapi/<id>.json. Example values come from the spec's own examples where it has them, and otherwise are placeholders built from each field's type.