Deploy a site
Builds and publishes the site's current main branch to production. Asynchronous: responds 202 with a pending deployment; poll GET /sites/{id}/deployments for the outcome (live or failed).
If a deploy is already in flight, that one is returned instead of starting a second build — still 202. A build this call started is pending with a null started_at; one already running is building.
Request
- Base URL: https://api.crevio.co/v1
- URL: https://api.crevio.co/v1/sites/{id}/deploy
- Auth: API key in header Authorization
Path parameters
The resource ID (e.g., "prod_abc123") or slug (e.g., "my-product")
Headers
Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.
Response
The queued deployment
Changes
No recorded changes to this operation across all 2 revisions of this API.