POST /v13/deployments
Creates a new deployment for the authenticated team or user. For non-git deployments, upload files first via the file upload API, then reference them here by SHA — or inline small files directly in the request body. To redeploy an existing deployment, provide its deploymentId; all settings are inherited unless explicitly overridden. The deployment begins building immediately and transitions through QUEUED → INITIALIZING → BUILDING before reaching READY or ERROR.
Servers
- https://api.vercel.com
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
teamId |
String | No |
The Team identifier to perform the request on behalf of. |
slug |
String | No |
The Team slug to perform the request on behalf of. |
skipAutoDetectionConfirmation |
String | No |
Set to Valid values:
|
forceNew |
String | No |
Forces a new deployment even if there is a previous similar deployment. Set to Valid values:
|
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
projectSettings |
Object | No |
Project settings that will be applied to the deployment. It is required for the first deployment of a project and will be saved for any following deployments |
projectSettings.commandForIgnoringBuildStep |
String | No | |
projectSettings.devCommand |
String | No |
The dev command for this project. When |
projectSettings.rootDirectory |
String | No |
The name of a directory or relative path to the source code of your project. When |
projectSettings.sourceFilesOutsideRootDirectory |
Boolean | No |
Indicates if there are source files outside of the root directory, typically used for monorepos |
projectSettings.skipGitConnectDuringLink |
Boolean | No |
Opts-out of the message prompting a CLI user to connect a Git repository in |
projectSettings.installCommand |
String | No |
The install command for this project. When |
projectSettings.nodeVersion |
String | No |
Override the Node.js version that should be used for this deployment Valid values:
|
projectSettings.outputDirectory |
String | No |
The output directory of the project. When |
projectSettings.buildCommand |
String | No |
The build command for this project. When |
projectSettings.serverlessFunctionRegion |
String | No |
The region to deploy Serverless Functions in this project |
projectSettings.framework |
String | No |
The framework that is being used for this project. When Valid values:
|
customEnvironmentSlugOrId |
String | No |
The slug or ID of a custom environment to deploy to, overriding the default target environment. When omitted, the deployment targets the environment inferred from the branch (production or preview). |
deploymentId |
String | No |
The ID of an existing deployment to redeploy. All project settings and environment variables are inherited from the original unless explicitly overridden in this request. The redeployment gets a new ID, URL, and build. |
files[] |
Array | No |
The files to include in the deployment. Each entry is either an inlined file (with |
name |
String | Yes |
A string with the project name used in the deployment URL |
target |
String | No |
Either not defined, |
meta |
Object | No |
An object containing the deployment's metadata. Multiple key-value pairs can be attached to a deployment |
withLatestCommit |
Boolean | No |
When |
gitMetadata |
Object | No |
Populates initial git metadata for different git providers. |
gitMetadata.commitMessage |
String | No |
The commit message |
gitMetadata.ciGitProviderUsername |
String | No |
The username used for the Git Provider (e.g. GitHub) if their CI (e.g. GitHub Actions) was used, if available |
gitMetadata.commitSha |
String | No |
The hash of the commit |
gitMetadata.dirty |
Boolean | No |
Whether or not there have been modifications to the working tree since the latest commit |
gitMetadata.commitAuthorName |
String | No |
The name of the author of the commit |
gitMetadata.ciGitRepoVisibility |
String | No |
The visibility of the Git repository if their CI (e.g. GitHub Actions) was used, if available |
gitMetadata.ciType |
String | No |
The type of CI system used |
gitMetadata.ci |
Boolean | No |
True if process.env.CI was set when deploying |
gitMetadata.remoteUrl |
String | No |
The git repository's remote origin url |
gitMetadata.commitAuthorEmail |
String | No |
The email of the author of the commit |
gitMetadata.commitRef |
String | No |
The branch on which the commit was made |
monorepoManager |
String | No |
The monorepo manager that is being used for this deployment. When |
gitSource |
No |
Defines the Git Repository source to be deployed. This property can not be used in combination with |
|
project |
String | No |
The target project identifier in which the deployment will be created. When defined, this parameter overrides name |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.