Skip to main content
POST
Deploy a site from an archive

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

site_name
string
required

The site's name, which is also its host label.

Query Parameters

alias
string

The alias to go live under; production when absent.

source
string

Where the deploy came from: api, cli, mcp or portal.

Body

The body is of type file.

Response

The deployment is live.

An immutable deployment of a site. A deployment still uploading when its upload window closes is expired: it can no longer be finalized.

id
string<uuid>
required
site_id
string<uuid>
required
status
enum<string>
required
Available options:
uploading,
ready,
expired
alias
string
required

The alias the deployment went live under, or goes live under once finalized.

source
enum<string>
required
Available options:
api,
cli,
mcp,
portal
file_count
integer
required
total_bytes
integer
required
url
string
required

The alias's address once the deployment is ready; empty before, and while no Pages domain is configured.

created_at
string<date-time>
required
ready_at
string<date-time> | null
required
upload_expires_at
string<date-time> | null
required
error_message
string