deployments
Create a new deployment
Create a new deployment with all the required and intended data. If the deployment is not a git deployment, all files must be provided with the request, either referenced or inlined. Additionally, a deployment id can be specified to redeploy a previous deployment.
post/v13/deployments
Query parameters
forceNew'0' | '1'
Forces a new deployment even if there is a previous similar deployment
Forces a new deployment even if there is a previous similar deployment
skipAutoDetectionConfirmation'0' | '1'
Allows to skip framework detection so the API would not fail to ask for confirmation
Allows to skip framework detection so the API would not fail to ask for confirmation
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.
Request body
Example request
{
"deploymentId": "dpl_2qn7PZrx89yxY34vEZPD31Y9XVj6",
"files": [
{
"file": "folder/file.js"
}
],
"gitMetadata": {
"remoteUrl": "https://github.com/vercel/next.js",
"commitAuthorName": "kyliau",
"commitAuthorEmail": "kyliau@example.com",
"commitMessage": "add method to measure Interaction to Next Paint (INP) (#36490)",
"commitRef": "main",
"commitSha": "dc36199b2234c6586ebe05ec94078a895c707e29",
"dirty": true,
"ci": true,
"ciType": "github-actions",
"ciGitProviderUsername": "rauchg",
"ciGitRepoVisibility": "private"
},
"gitSource": {
"sha": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0"
},
"meta": {
"foo": "bar"
},
"name": "my-instant-deployment",
"project": "my-deployment-project",
"projectSettings": {
"buildCommand": "next build",
"installCommand": "pnpm install"
},
"target": "production"
}Response
The successfully created deployment
Example response
{
"alias": [],
"aliasAssigned": true,
"creator": {
"uid": "96SnxkFiMyVKsK3pnoHfx3Hz",
"username": "john-doe"
},
"userAliases": [
"sub1.example.com",
"sub2.example.com"
],
"id": "dpl_89qyp1cskzkLrVicDaZoDbjyHuDJ",
"createdAt": 1540257589405,
"readyState": "READY",
"name": "my-project",
"deletedAt": 1540257589405,
"regions": [
"sfo1"
],
"source": "cli",
"undeletedAt": 1540257589405,
"url": "my-instant-deployment-3ij3cxz9qr.now.sh",
"userConfiguredDeploymentId": "abc123",
"version": 2
}