hzel
Guides

Quickstart

Get started with the hzel API.

Base URL

All API requests target the backend at:

https://api.hzel.org/api/v1

Authentication

hzel uses bearer tokens. Obtain one via OAuth or by creating a Personal Access Token (PAT) in the dashboard under Settings → Developer.

Include the token in every request:

Authorization: Bearer <your-token>

See the Authentication guide for the full flow.

Create a container

The container is automatically started after provisioning — state progresses from "provisioning" to "running" once the node confirms the boot. See the ContainerRecord structure for the full field reference.

POSThttps://api.hzel.org/api/v1/containers
HeaderRequiredDescription
AuthorizationRequiredBearer <token>. Accepted auth methods: PAT, OAuth app token, JWT.
Content-TypeRequiredMust be application/json.
x-csrf-tokenSession auth onlySession-bound CSRF token. Required only when authenticating via session cookie. Automatically skipped for Authorization: Bearer requests.

List your containers

GEThttps://api.hzel.org/api/v1/containers
HeaderRequiredDescription
AuthorizationRequiredBearer <token>. Accepted auth methods: PAT, OAuth app token, JWT.

Start a container

Replace {id} with the container UUID.

POSThttps://api.hzel.org/api/v1/containers/{id}/start
HeaderRequiredDescription
AuthorizationRequiredBearer <token>. Accepted auth methods: PAT, OAuth app token, JWT.
x-csrf-tokenSession auth onlySession-bound CSRF token. Required only when authenticating via session cookie.

Stop a container

POSThttps://api.hzel.org/api/v1/containers/{id}/stop
HeaderRequiredDescription
AuthorizationRequiredBearer <token>. Accepted auth methods: PAT, OAuth app token, JWT.
x-csrf-tokenSession auth onlySession-bound CSRF token. Required only when authenticating via session cookie.

Restart a container

POSThttps://api.hzel.org/api/v1/containers/{id}/restart
HeaderRequiredDescription
AuthorizationRequiredBearer <token>. Accepted auth methods: PAT, OAuth app token, JWT.
x-csrf-tokenSession auth onlySession-bound CSRF token. Required only when authenticating via session cookie.

What's next