Create a deployment
POST
/v1/deploymentsCopyStarts a deployment for the API key's site from the latest commit on its configured branch. A newer deployment supersedes any queued or building deployment for the same site. Every accepted build counts toward the site's daily deployment limit, including builds that are later canceled.
Header
Authorization
string
required
A site-scoped key created from the Radiant dashboard.
Responses
202
The deployment was accepted and dispatched.id
string (uuid)
required
siteId
string (uuid)
required
status
enum<string>
required
Options:
queued, building, success, failed or canceledtrigger
string
required
The workflow that created the deployment.
commit
object
required
sha
string
required
message
stringnull
required
failure
object | null
required
One of these variants applies.
object
message
string
required
createdAt
string (date-time)
required
updatedAt
string (date-time)
required
401
The request is missing a valid, active Radiant API key.error
object
required
code
string
required
message
string
required
details
object[key: string]
any403
The API key does not have the scope required by the operation.error
object
required
code
string
required
message
string
required
details
object[key: string]
any404
The resource does not exist or is outside the API key's site scope.error
object
required
code
string
required
message
string
required
details
object[key: string]
any409
The site repository or its credentials are not ready for deployment.error
object
required
code
string
required
message
string
required
details
object[key: string]
any429
The site reached its daily deployment limit.error
object
required
code
string
required
message
string
required
details
object[key: string]
any500
Radiant could not complete the request because of an internal error.error
object
required
code
string
required
message
string
required
details
object[key: string]
any502
Radiant could not load the configured repository from GitHub.error
object
required
code
string
required
message
string
required
details
object[key: string]
any503
Radiant created the deployment record but could not dispatch its build.error
object
required
code
string
required
message
string
required
details
object[key: string]
any