Ferry Docs v2.4

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.

ParameterTypeDescription
envstringpreview, staging or production. Defaults to preview.
messagestringOptional 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.

StatusCodeMeaning
401unauthorizedMissing or invalid token.
404not_foundThe project or deploy doesn't exist.
422invalid_bundleThe upload isn't a valid .tar.gz.
429rate_limitedToo many requests. Retry after the Retry-After header.
Last updated: March 2026Edit this page