REST API Reference
Manage projects, deployments, logs, secrets, Sage AI, clients, and invoices over HTTPS.
Base URL, Scopes & Organization Context
Send requests to `https://api.devblocktechnologies.com/api/v1` with a scoped `dck_*` Bearer token from Settings > Developer > API Keys (Pro+ plan). Pass `x-organization-id: <orgId>` to target a specific organization. All endpoints accept and return JSON.
# Base URL: https://api.devblocktechnologies.com/api/v1
curl -X GET "https://api.devblocktechnologies.com/api/v1/projects" \
-H "Authorization: Bearer ${OTTRAL_API_KEY}" \
-H "x-organization-id: ${OTTRAL_ORG_ID}" \
-H "Content-Type: application/json"Response Example (GET /api/v1/projects)
Successful responses return JSON with the requested resource or list:
{
"data": [
{
"id": "proj_9f82d01a",
"name": "core-api-service",
"status": "ACTIVE",
"environment": "production",
"repository": "github.com/org/core-api-service",
"branch": "main",
"url": "https://core-api-service.devblock.app",
"createdAt": "2026-10-10T14:32:00Z",
"updatedAt": "2026-10-12T01:54:00Z"
}
]
}Core Endpoints
All endpoints below are relative to https://api.devblocktechnologies.com: • Identity & Usage GET /api/v1/auth/me — Current authenticated user and active organization GET /api/v1/billing/usage — Plan tier, resource limits, and usage • Projects, Releases & Domains GET /api/v1/projects — List projects in your workspace POST /api/v1/projects — Create a new project GET /api/v1/projects/:id — Get project details PUT /api/v1/projects/:id — Update project settings DELETE /api/v1/projects/:id — Delete a project and its routes GET /api/v1/projects/:projectId/releases — List project releases POST /api/v1/projects/:id/domains — Assign a custom domain • Deployments POST /api/v1/projects/:projectId/deployments — Trigger a new build and deploy GET /api/v1/projects/:projectId/deployments — List deployment history • Logs, Telemetry & Uptime GET /api/v1/logs?projectId=:id — Search project logs and error groups GET /api/v1/telemetry — Query platform and project telemetry WSS /ws?projectId=:id — Stream live output over WebSocket GET /api/v1/uptime — View uptime checks and response latency • Secrets & Sovereign Hosts GET /api/v1/projects/:id/secrets — List secret keys (write-only values) POST /api/v1/projects/:id/secrets — Add or update an encrypted secret GET /api/v1/hosts — List sovereign compute hosts GET /api/v1/hosts/:id/health — Inspect host CPU, memory, and disk health • Sage AI & MCP POST /api/v1/sage/agent — Run a Sage diagnostic session POST /api/v1/sage/chat — Send a message in a Sage chat session GET /api/v1/mcp/tools — Inspect available MCP tools and required scopes POST /api/v1/mcp — Streamable HTTP JSON-RPC 2.0 MCP endpoint • Clients & Invoicing GET /api/v1/clients — List client accounts POST /api/v1/clients — Create a client workspace GET /api/v1/invoices — List invoices and payment status POST /api/v1/invoices — Create and send a client invoice
OpenAPI Spec & Interactive Explorer
Download the OpenAPI 3.1 spec to generate SDKs or import into Postman, or open the interactive API explorer:
# OpenAPI 3.1 Spec
curl https://api.devblocktechnologies.com/api/v1/openapi.json
# Interactive API Explorer
# Open in browser: https://api.devblocktechnologies.com/api/v1/docsError Responses
Failed requests return a JSON error object with a clear message and standard HTTP status code (400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 429 Rate Limit Exceeded):
{
"error": "Unauthorized",
"message": "Invalid or expired API bearer token provided.",
"statusCode": 401
}