vercel.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Projects
getProjects
projects.getProjects
Get all projects
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | No | — |
until | number | No | — |
since | number | No | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
projects | array | Yes | — |
pagination | object | Yes | — |
Response full type
Response full type
getProject
projects.getProject
Get project details
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
idOrName | string | Yes | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
accountId | string | Yes | — |
createdAt | number | Yes | — |
updatedAt | number | Yes | — |
framework | string | No | — |
link | object | No | — |
latestDeployments | array | No | — |
targets | object | No | — |
Response full type
Response full type
Deployments
getDeployments
deployments.getDeployments
Get all deployments
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | No | — |
limit | number | No | — |
until | number | No | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
deployments | array | Yes | — |
pagination | object | Yes | — |
Response full type
Response full type
getDeployment
deployments.getDeployment
Get deployment details
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
idOrUrl | string | Yes | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | — |
name | string | Yes | — |
url | string | Yes | — |
created | number | Yes | — |
readyState | string | Yes | — |
type | string | Yes | — |
creator | object | No | — |
meta | object | No | — |
target | string | No | — |
aliasError | object | No | — |
aliasAssigned | number | No | — |
inspectorUrl | string | No | — |
Response full type
Response full type
createDeployment
deployments.createDeployment
Create a deployment
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
project | string | No | — |
target | 'production' | 'staging' | No | — |
gitSource | object | No | — |
files | array | No | — |
meta | record | No | — |
env | record | No | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | — |
name | string | Yes | — |
url | string | Yes | — |
created | number | Yes | — |
readyState | string | Yes | — |
type | string | Yes | — |
creator | object | No | — |
meta | object | No | — |
target | string | No | — |
aliasError | object | No | — |
aliasAssigned | number | No | — |
inspectorUrl | string | No | — |
gitSource full type
gitSource full type
Response full type
Response full type
Domains
getDomains
domains.getDomains
Get all domains
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | No | — |
until | number | No | — |
since | number | No | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
domains | array | Yes | — |
pagination | object | Yes | — |
Response full type
Response full type
getProjectDomains
domains.getProjectDomains
Get project domains
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
idOrName | string | Yes | — |
limit | number | No | — |
until | number | No | — |
since | number | No | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
domains | array | Yes | — |
pagination | object | Yes | — |
Response full type
Response full type
Envs
getEnvVariables
envs.getEnvVariables
Get environment variables for a project (may include secret/sensitive values)
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
idOrName | string | Yes | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
envs | array | No | — |
Response full type
Response full type
createEnvVariable
envs.createEnvVariable
Create an environment variable for a project (supports plain, secret, encrypted, and sensitive types)
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
idOrName | string | Yes | — |
key | string | Yes | — |
value | string | Yes | — |
type | 'plain' | 'secret' | 'encrypted' | 'sensitive' | Yes | — |
target | array | Yes | — |
gitBranch | string | No | — |
comment | string | No | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
key | string | Yes | — |
value | string | Yes | — |
type | string | Yes | — |
target | array | Yes | — |
gitBranch | string | No | — |
configurationId | string | No | — |
createdAt | number | Yes | — |
updatedAt | number | Yes | — |
createdBy | string | No | — |
updatedBy | string | No | — |
Response full type
Response full type
Aliases
getAliases
aliases.getAliases
Get all aliases
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | No | — |
until | number | No | — |
since | number | No | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
aliases | array | Yes | — |
pagination | object | Yes | — |
Response full type
Response full type
assignAlias
aliases.assignAlias
Assign an alias
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
deploymentId | string | Yes | — |
alias | string | Yes | — |
redirect | string | No | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | — |
alias | string | Yes | — |
created | string | Yes | — |
oldDeploymentId | string | No | — |
Response full type
Response full type
Webhooks
getWebhooks
webhooks.getWebhooks
Get all webhooks
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
(Array of Webhooks) | array | Yes | — |
Response full type
Response full type
createWebhook
webhooks.createWebhook
Create a webhook
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | — |
events | string[] | Yes | — |
projectIds | string[] | No | — |
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
url | string | Yes | — |
events | array | Yes | — |
ownerId | string | Yes | — |
projectIds | array | No | — |
createdAt | number | Yes | — |
updatedAt | number | Yes | — |
Response full type
Response full type
Teams
getTeams
teams.getTeams
Get all teams
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
teamId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
teams | array | Yes | — |
pagination | object | Yes | — |
Response full type
Response full type