Docs / API reference
API overview
The Ferry API lets you create and manage deploys from CI or your own tools. It accepts and returns JSON over HTTPS.
https://api.example.app/v1
Authentication
Create a token under Settings → Tokens and send it in the Authorization header.
curl https://api.example.app/v1/projects \
-H "Authorization: Bearer $FERRY_TOKEN"
Token scopes
Tokens can be limited to one project. Use the narrowest scope your script needs.
Deployments
POST/projects/:id/deploys
Starts a deploy. Upload a .tar.gz of your publish folder as the request body.
| Parameter | Type | Description |
|---|---|---|
env | string | preview, staging or production. Defaults to preview. |
message | string | Optional note shown in the dashboard. |
{
"id": "dep_8Kq2x",
"status": "building",
"url": "https://dep-8kq2x.my-site.example.app"
}
GET/deploys/:id
Returns a deploy and its current status: building, live or failed.
DELETE/deploys/:id
Deletes a preview deploy. Production deploys can't be deleted, only replaced.
Errors
Errors use standard HTTP status codes and a JSON body with a machine-readable code.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | Missing or invalid token. |
| 404 | not_found | The project or deploy doesn't exist. |
| 422 | invalid_bundle | The upload isn't a valid .tar.gz. |
| 429 | rate_limited | Too many requests. Retry after the Retry-After header. |
Last updated: March 2026Edit this page