// API REFERENCE
DNS API
Generated from the OpenAPI 3.1 spec. Authenticate with a bearer sk_segal_… key.
GET/api/v1/dnsList DNS zones
Responses
- 200 — Zones.
- 401 —
Example
bash
curl -X GET https://api.segalcompute.com/api/v1/dns \
-H "Authorization: Bearer sk_segal_..."Try itSandbox · mock data
POST/api/v1/dnsCreate a DNS zone
Body
| Param | Type | Required | Description |
|---|---|---|---|
| name | string | yes |
Responses
- 201 — The created zone.
- 401 —
Example
bash
curl -X POST https://api.segalcompute.com/api/v1/dns \
-H "Authorization: Bearer sk_segal_..." \
-H "Content-Type: application/json" \
-d '{"name":"example.com"}'Try itSandbox · mock data