DF DocsForge API

REST + OpenAPI 3.1

API Reference

POST /v2/deployments
deployments:write · 1,200 req / min

Create a deployment

Schedules an immutable regional deployment from a verified Git commit digest. Supports canary traffic shifting and idempotent replay via the Idempotency-Key header.

Response Fields

id string
status enum
canary_weight number
url string
cURL Example
curl -X POST https://api.docsforge.example/v2/deployments \
  -H "Authorization: Bearer $DOCSFORGE_TOKEN" \
  -H "DocsForge-Version: 2026-10-15" \
  -H "Idempotency-Key: deploy-edge-9f4b2c8a" \
  -H "Content-Type: application/json" \
  -d '{
    "project": "edge-gateway",
    "region": "iad1",
    "strategy": "canary",
    "commit_sha": "9f4b2c8a1e7d"
  }'
GET /v2/deployments
deployments:read · 3,000 req / min

List deployments

Returns a cursor-paginated feed of deployments ordered by descending creation timestamp. Stable under concurrent writes.

Response Fields

data Deployment[]
has_more boolean
next_cursor string | null
cURL Example
curl "https://api.docsforge.example/v2/deployments?project=edge-gateway&limit=25" \
  -H "Authorization: Bearer $DOCSFORGE_TOKEN" \
  -H "DocsForge-Version: 2026-10-15"
PATCH /v2/deployments/:id
deployments:write · 600 req / min

Update canary weight

Adjusts live ingress weight for a canary deployment or promotes it atomically to 100% regional traffic.

Response Fields

id string
canary_weight number
status enum
cURL Example
curl -X PATCH https://api.docsforge.example/v2/deployments/dep_01j9x7k4m2p8q \
  -H "Authorization: Bearer $DOCSFORGE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"canary_weight": 1.0, "rollback_on_5xx_rate": 0.01}'
GET /v2/traces/:id
traces:read · 3,000 req / min

Retrieve a trace

Fetches complete request execution spans, edge POP routing metadata, and sub-millisecond timing segments for a distributed trace.

Response Fields

id string
pop string
duration_ms number
spans Span[]
cURL Example
curl "https://api.docsforge.example/v2/traces/trc_01j9x8n1v5w3r?include_spans=true&format=compact" \
  -H "Authorization: Bearer $DOCSFORGE_TOKEN" \
  -H "DocsForge-Version: 2026-10-15"