- POST/v9/projects/{idOrName}/custom-environments
- DELETE/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}
- GET/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}
- GET/v9/projects/{idOrName}/custom-environments
- PATCH/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}
environment
Create a custom environment for the current project.
Creates a custom environment for the current project. Cannot be named 'Production' or 'Preview'.
- idOrNamestringrequired
The unique project identifier or the project name
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
The slug of the custom environment to create.
Description of the custom environment. This is optional.
How we want to determine a matching branch. This is optional.
Where to copy environment variables from. This is optional.
- 400
One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- 401
- 402
The account was soft-blocked for an unhandled reason. The account is missing a payment so payment method must be updated
- 403
You do not have permission to access this resource.
- 500
fetch('https://api.vercel.com/v9/projects/{idOrName}/custom-environments', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
slug: '',
description: '',
branchMatcher: {
type: 'equals',
pattern: ''
},
copyEnvVarsFrom: ''
})
})
{}
Remove a custom environment
Remove a custom environment for the project. Must not be named 'Production' or 'Preview'.
- idOrNamestringrequired
The unique project identifier or the project name
- environmentSlugOrIdstringrequired
The unique custom environment identifier within the project
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
Delete Environment Variables that are not assigned to any environments.
- 400
One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- 401
- 403
You do not have permission to access this resource.
fetch('https://api.vercel.com/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
deleteUnassignedEnvironmentVariables: true
})
})
{}
Vercel REST API
The Vercel REST API is a REST-styled API that gives you full control over the entire Vercel platform. You can use it with any programming language or framework that can send HTTP requests. You need to authenticate with a Vercel access token for every request.
Production API
access-groups
- POST/v1/access-groups/{accessGroupIdOrName}/projects
- POST/v1/access-groups
- DELETE/v1/access-groups/{accessGroupIdOrName}/projects/{projectId}
- DELETE/v1/access-groups/{idOrName}
- GET/v1/access-groups
- GET/v1/access-groups/{idOrName}/members
- GET/v1/access-groups/{idOrName}/projects
- GET/v1/access-groups/{idOrName}
- GET/v1/access-groups/{accessGroupIdOrName}/projects/{projectId}
- POST/v1/access-groups/{idOrName}
- PATCH/v1/access-groups/{accessGroupIdOrName}/projects/{projectId}
aliases
api-experimentation
artifacts
authentication
certs
checks
deployments
- PATCH/v12/deployments/{id}/cancel
- POST/v13/deployments
- DELETE/v13/deployments/{id}
- GET/v13/deployments/{idOrUrl}
- GET/v3/deployments/{idOrUrl}/events
- GET/v7/deployments/{id}/files/{fileId}
- GET/v6/deployments/{id}/files
- GET/v6/deployments
- PATCH/v1/deployments/{deploymentId}/integrations/{integrationConfigurationId}/resources/{resourceId}/actions/{action}
- POST/v2/files
dns
domains
edge-config
- POST/v1/edge-config
- POST/v1/edge-config/{edgeConfigId}/token
- DELETE/v1/edge-config/{edgeConfigId}
- DELETE/v1/edge-config/{edgeConfigId}/schema
- DELETE/v1/edge-config/{edgeConfigId}/tokens
- GET/v1/edge-config/{edgeConfigId}/tokens
- GET/v1/edge-config/{edgeConfigId}
- GET/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}
- GET/v1/edge-config/{edgeConfigId}/backups/{edgeConfigBackupVersionId}
- GET/v1/edge-config/{edgeConfigId}/backups
- GET/v1/edge-config/{edgeConfigId}/items
- GET/v1/edge-config/{edgeConfigId}/schema
- GET/v1/edge-config/{edgeConfigId}/token/{token}
- GET/v1/edge-config
- PUT/v1/edge-config/{edgeConfigId}
- PATCH/v1/edge-config/{edgeConfigId}/items
- POST/v1/edge-config/{edgeConfigId}/schema
environment
- POST/v9/projects/{idOrName}/custom-environments
- DELETE/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}
- GET/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}
- GET/v9/projects/{idOrName}/custom-environments
- PATCH/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}
Create a custom environment for the current project.
Creates a custom environment for the current project. Cannot be named 'Production' or 'Preview'.
- idOrNamestringrequired
The unique project identifier or the project name
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
The slug of the custom environment to create.
Description of the custom environment. This is optional.
How we want to determine a matching branch. This is optional.
Where to copy environment variables from. This is optional.
- 400
One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- 401
- 402
The account was soft-blocked for an unhandled reason. The account is missing a payment so payment method must be updated
- 403
You do not have permission to access this resource.
- 500
fetch('https://api.vercel.com/v9/projects/{idOrName}/custom-environments', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
slug: '',
description: '',
branchMatcher: {
type: 'equals',
pattern: ''
},
copyEnvVarsFrom: ''
})
})
{}
Remove a custom environment
Remove a custom environment for the project. Must not be named 'Production' or 'Preview'.
- idOrNamestringrequired
The unique project identifier or the project name
- environmentSlugOrIdstringrequired
The unique custom environment identifier within the project
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
Delete Environment Variables that are not assigned to any environments.
- 400
One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- 401
- 403
You do not have permission to access this resource.
fetch('https://api.vercel.com/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
deleteUnassignedEnvironmentVariables: true
})
})
{}
Retrieve a custom environment
Retrieve a custom environment for the project. Must not be named 'Production' or 'Preview'.
- idOrNamestringrequired
The unique project identifier or the project name
- environmentSlugOrIdstringrequired
The unique custom environment identifier within the project
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
- 400
One of the provided values in the request query is invalid.
- 401
- 403
You do not have permission to access this resource.
- 404
fetch('https://api.vercel.com/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}')
{}
Retrieve custom environments
Retrieve custom environments for the project. Must not be named 'Production' or 'Preview'.
- idOrNamestringrequired
The unique project identifier or the project name
- gitBranchstring
Fetch custom environments for a specific git branch
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
- 400
One of the provided values in the request query is invalid.
- 401
- 403
You do not have permission to access this resource.
fetch('https://api.vercel.com/v9/projects/{idOrName}/custom-environments')
{
"environments": [
{}
]
}
Update a custom environment
Update a custom environment for the project. Must not be named 'Production' or 'Preview'.
- idOrNamestringrequired
The unique project identifier or the project name
- environmentSlugOrIdstringrequired
The unique custom environment identifier within the project
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
The slug of the custom environment.
Description of the custom environment. This is optional.
- 400
One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- 401
- 402
The account was soft-blocked for an unhandled reason. The account is missing a payment so payment method must be updated
- 403
You do not have permission to access this resource.
- 500
fetch('https://api.vercel.com/v9/projects/{idOrName}/custom-environments/{environmentSlugOrId}', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
slug: '',
description: '',
branchMatcher: {
type: 'equals',
pattern: ''
}
})
})
{}
integrations
logDrains
marketplace
- POST/v1/installations/{integrationConfigurationId}/events
- POST/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items
- DELETE/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}
- GET/v1/installations/{integrationConfigurationId}/account
- GET/v1/installations/{integrationConfigurationId}/billing/invoices/{invoiceId}
- GET/v1/installations/{integrationConfigurationId}/member/{memberId}
- HEAD/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/edge-config
- PUT/v1/installations/{integrationConfigurationId}/resources/{resourceId}
- POST/v1/installations/{integrationConfigurationId}/billing/invoices/{invoiceId}/actions
- PATCH/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/items/{itemId}
- PUT/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/edge-config
- POST/v1/integrations/sso/token
- POST/v1/installations/{integrationConfigurationId}/billing
- POST/v1/installations/{integrationConfigurationId}/billing/invoices
- POST/v1/installations/{integrationConfigurationId}/billing/balance
- PUT/v1/installations/{integrationConfigurationId}/resources/{resourceId}/secrets
- PUT/v1/installations/{integrationConfigurationId}/products/{integrationProductIdOrSlug}/resources/{resourceId}/secrets
projectMembers
projects
- PUT/projects/transfer-request/{code}
- POST/v10/projects/{idOrName}/domains
- POST/v11/projects
- POST/v10/projects/{idOrName}/env
- POST/projects/{idOrName}/transfer-request
- DELETE/v9/projects/{idOrName}
- PATCH/v9/projects/{idOrName}/env/{id}
- GET/v9/projects/{idOrName}
- GET/v9/projects/{idOrName}/domains/{domain}
- GET/v1/projects/{projectId}/promote/aliases
- POST/v1/projects/{projectId}/pause
- POST/v10/projects/{projectId}/promote/{deploymentId}
- DELETE/v9/projects/{idOrName}/domains/{domain}
- DELETE/v9/projects/{idOrName}/env/{id}
- GET/v10/projects
- GET/v9/projects/{idOrName}/domains
- GET/v1/projects/{idOrName}/env/{id}
- GET/v10/projects/{idOrName}/env
- POST/v1/projects/{projectId}/unpause
- PATCH/v9/projects/{idOrName}/domains/{domain}
- PATCH/v9/projects/{idOrName}
- PATCH/v1/projects/{idOrName}/protection-bypass
- PATCH/v1/data-cache/projects/{projectId}
- POST/v9/projects/{idOrName}/domains/{domain}/verify
secrets
security
teams
- POST/v1/teams
- DELETE/v1/teams/{teamId}
- DELETE/v1/teams/{teamId}/invites/{inviteId}
- GET/v2/teams/{teamId}
- GET/v1/teams/{teamId}/request/{userId}
- POST/v1/teams/{teamId}/members
- POST/v1/teams/{teamId}/members/teams/join
- GET/v2/teams
- GET/v2/teams/{teamId}/members
- DELETE/v1/teams/{teamId}/members/{uid}
- POST/v1/teams/{teamId}/request
- PATCH/v2/teams/{teamId}
- PATCH/v1/teams/{teamId}/members/{uid}
user
webhooks
Models
idOrName Required |
Accept | */* |
teamId | |
slug |