post_v1_projects_slug_deployments_id_complete
CompleteDeployment is the CI completion hook that flips a queued git deployment to live (or error) once CI has synced the built site to S3. `status` must be `live` or `error`.
CompleteDeployment is the CI completion hook that flips a queued git deployment to live (or error) once CI has synced the built site to S3.
status must be live or error. On a LIVE completion the public host is
claimed FIRST, so the deployment reports the URL it actually OWNS — a
CI-supplied liveUrl is a hint that can refine that URL but can never assert
a subdomain another tenant holds. keys is the manifest CI just uploaded,
relative to the deployment prefix: cloud reconciles the prefix against it so a
page deleted from the build actually stops serving. Omit keys and nothing is
deleted — the prefix only grows. Reconciliation runs only on a live completion
(pruning against a failed build's manifest would delete the site the last good
build is still serving) and is best-effort, so a stale leftover never turns a
successful deploy into a 500. A live completion is also the one billable
moment on the git path; an error completion bills nothing.
Scope: a validated principal is required (403 without one). CI authenticates with an org-scoped token through the gateway, so the deployment is resolved within that principal's org and another tenant's slug or deployment id is a 404.
| Tool | post_v1_projects_slug_deployments_id_complete |
| Door | https://api.hanzo.ai/v1/mcp |
| Method | tools/call (JSON-RPC 2.0) |
| Arguments | 9 |
| Operation | POST /v1/projects/{slug}/deployments/{id}/complete |
| Product | projects |
Arguments
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
bytes | integer | — | — | — |
commit | string | — | — | — |
files | integer | — | — | — |
id | string | — | — | ID is the queued deployment to complete, from the path. |
keys | string[] | — | — | Keys is the manifest CI just uploaded, RELATIVE to the deployment prefix. It is what replaces aws s3 sync --delete: an upload grant authorizes writes only, so CI cannot remove a file, and cloud reconciles the prefix against this list instead (grant.go). Omit it and nothing is deleted — the prefix only grows, which is the old pre-grant behaviour and a safe default. |
liveUrl | string | — | — | — |
message | string | — | — | — |
slug | string | — | — | Slug is the project the deployment belongs to, from the path. |
status | string | — | — | live | error |
This tool's schema does not declare which fields are required, nor any default, nor any enumerated value set. The columns above are empty because the door publishes nothing there, not because the answer is "none" — where a field is constrained, the constraint is stated in that field's own description.
Call it
A tools/call carries every argument in one flat object — nothing binds to a path or a query string. Every declared argument is shown, because the door marks none of them required.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "post_v1_projects_slug_deployments_id_complete",
"arguments": {
"bytes": 0,
"commit": "<commit>",
"files": 0,
"id": "<id>",
"keys": [
"<keys>"
],
"liveUrl": "<liveUrl>",
"message": "<message>",
"slug": "<slug>",
"status": "<status>"
}
}
}'Values are placeholders derived from each field's declared type. tools/list needs no credential; tools/call does — called without one the door answers HTTP 200 with a JSON-RPC result whose isError is set and whose text says what was missing. How to get a key →
The operation behind it
| Operation | Route | Product | Summary |
|---|---|---|---|
cloud_post_v1_projects_by_slug_deployments_by_id_complete | POST /v1/projects/{slug}/deployments/{id}/complete | projects | CI completion hook for a git deployment |
The same capability over plain HTTP is in the projects API reference, on https://api.hanzo.ai.
All 834 tools · The door · API reference
Generated from tools/list on https://api.hanzo.ai/v1/mcp — 834 tools captured 2026-08-01 (this build read the vendored copy; the door was unreachable).
How is this guide?