API Reference
Hanzo Edge API
Hanzo Edge provides serverless edge functions with global deployment,
Hanzo Edge provides serverless edge functions with global deployment,
Hanzo Edge API · Guide & examples → · All API references →
| Base URL | https://edge.hanzo.ai |
| Version | 1.0.0 |
| Operations | 18 |
| Guide | Hanzo Edge API guide |
Authentication
bearerAuth— HTTP bearerBearerAuth— HTTP bearer
All Hanzo APIs share one bearer credential and common error and pagination conventions. See API conventions.
curl -H "Authorization: Bearer $HANZO_API_KEY" https://edge.hanzo.aiEndpoints
Domains
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/edge/domains | List custom domains |
POST | /v1/edge/domains | Add custom domain |
DELETE | /v1/edge/domains/{id} | Remove custom domain |
Functions
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/edge/functions | List functions |
POST | /v1/edge/functions | Create function |
GET | /v1/edge/functions/{slug} | Get function |
PUT | /v1/edge/functions/{slug} | Update function |
DELETE | /v1/edge/functions/{slug} | Delete function |
POST | /v1/edge/functions/{slug}/deploy | Deploy function |
POST | /v1/edge/functions/{slug}/invoke | Invoke function |
GET | /v1/edge/functions/{slug}/metrics | Get function metrics |
Logs
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/edge/functions/{slug}/logs | Get function logs |
Secrets
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/edge/secrets | List secrets |
POST | /v1/edge/secrets | Create secret |
PUT | /v1/edge/secrets/{name} | Update secret |
DELETE | /v1/edge/secrets/{name} | Delete secret |
Versions
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/edge/functions/{slug}/versions | List function versions |
POST | /v1/edge/functions/{slug}/rollback | Rollback to version |
How is this guide?