- 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
edge-config
Create an Edge Config
Creates an Edge Config.
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
^[\\w-]+$
- 400
One of the provided values in the request body 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.
fetch('https://api.vercel.com/v1/edge-config', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
slug: '',
items: {
ANY_ADDITIONAL_PROPERTY: 'anything'
}
})
})
{
"createdAt": 1,
"updatedAt": 1,
"id": "…",
"slug": "…",
"ownerId": "…",
"digest": "…",
"transfer": {
"fromAccountId": "…",
"startedAt": 1,
"doneAt": null
},
"schema": {},
"purpose": {
"type": "flags",
"projectId": "…"
},
"sizeInBytes": 1,
"itemCount": 1
}
Create an Edge Config token
Adds a token to an existing Edge Config.
- edgeConfigIdstringrequired
- 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 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.
- 404
fetch('https://api.vercel.com/v1/edge-config/{edgeConfigId}/token', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
label: ''
})
})
{
"token": "…",
"id": "…"
}
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
Create an Edge Config
Creates an Edge Config.
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
^[\\w-]+$
- 400
One of the provided values in the request body 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.
fetch('https://api.vercel.com/v1/edge-config', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
slug: '',
items: {
ANY_ADDITIONAL_PROPERTY: 'anything'
}
})
})
{
"createdAt": 1,
"updatedAt": 1,
"id": "…",
"slug": "…",
"ownerId": "…",
"digest": "…",
"transfer": {
"fromAccountId": "…",
"startedAt": 1,
"doneAt": null
},
"schema": {},
"purpose": {
"type": "flags",
"projectId": "…"
},
"sizeInBytes": 1,
"itemCount": 1
}
Create an Edge Config token
Adds a token to an existing Edge Config.
- edgeConfigIdstringrequired
- 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 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.
- 404
fetch('https://api.vercel.com/v1/edge-config/{edgeConfigId}/token', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
label: ''
})
})
{
"token": "…",
"id": "…"
}
Delete an Edge Config
Delete an Edge Config by id.
- edgeConfigIdstringrequired
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
- 204
- 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/v1/edge-config/{edgeConfigId}', {
method: 'DELETE'
})
Delete an Edge Config's schema
Deletes the schema of existing Edge Config.
- edgeConfigIdstringrequired
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
- 204
- 400
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.
- 404
fetch('https://api.vercel.com/v1/edge-config/{edgeConfigId}/schema', {
method: 'DELETE'
})
Delete one or more Edge Config tokens
Deletes one or more tokens of an existing Edge Config.
- edgeConfigIdstringrequired
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
- 204
- 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.
- 404
fetch('https://api.vercel.com/v1/edge-config/{edgeConfigId}/tokens', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
tokens: ['']
})
})
Get all tokens of an Edge Config
Returns all tokens of an Edge Config.
- edgeConfigIdstringrequired
- 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/v1/edge-config/{edgeConfigId}/tokens')
{
"token": "…",
"label": "…",
"id": "…",
"edgeConfigId": "…",
"createdAt": 1
}
The EdgeConfig.
Get an Edge Config
Returns an Edge Config.
- edgeConfigIdstringrequired
- 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/v1/edge-config/{edgeConfigId}')
{
"createdAt": 1,
"updatedAt": 1,
"id": "…",
"slug": "…",
"ownerId": "…",
"digest": "…",
"transfer": {
"fromAccountId": "…",
"startedAt": 1,
"doneAt": null
},
"schema": {},
"purpose": {
"type": "flags",
"projectId": "…"
},
"sizeInBytes": 1,
"itemCount": 1
}
The EdgeConfig.
Get an Edge Config item
Returns a specific Edge Config Item.
- edgeConfigIdstring
^ecfg_
required - edgeConfigItemKeystringrequired
- 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/v1/edge-config/{edgeConfigId}/item/{edgeConfigItemKey}')
{
"key": "…",
"value": "…",
"description": "…",
"edgeConfigId": "…",
"createdAt": 1,
"updatedAt": 1
}
The EdgeConfig.
Get Edge Config backup
Retrieves a specific version of an Edge Config from backup storage.
- edgeConfigIdstringrequired
- edgeConfigBackupVersionIdstringrequired
- 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/v1/edge-config/{edgeConfigId}/backups/{edgeConfigBackupVersionId}')
{
"id": "…",
"lastModified": 1,
"backup": {
"digest": "…",
"items": {
"ANY_ADDITIONAL_PROPERTY": {
"updatedAt": 1,
"value": "…",
"description": "…",
"createdAt": 1
}
},
"slug": "…",
"updatedAt": 1
},
"metadata": {
"updatedAt": "…",
"updatedBy": "…",
"itemsCount": 1,
"itemsBytes": 1
},
"user": {
"id": "…",
"username": "…",
"email": "…",
"name": "…",
"avatar": "…"
}
}
Get Edge Config backups
Returns backups of an Edge Config.
- edgeConfigIdstringrequired
- nextstring
- limitnumbermin:0max:50
- metadatastring
- 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/v1/edge-config/{edgeConfigId}/backups')
{
"backups": [
{
"metadata": {
"updatedAt": "…",
"updatedBy": "…",
"itemsCount": 1,
"itemsBytes": 1
},
"id": "…",
"lastModified": 1
}
],
"pagination": {
"hasNext": true,
"next": "…"
}
}
Get Edge Config items
Returns all items of an Edge Config.
- edgeConfigIdstring
^ecfg_
required
- 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/v1/edge-config/{edgeConfigId}/items')
{
"key": "…",
"value": "…",
"description": "…",
"edgeConfigId": "…",
"createdAt": 1,
"updatedAt": 1
}
The EdgeConfig.
Get Edge Config schema
Returns the schema of an Edge Config.
- edgeConfigIdstringrequired
- 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/v1/edge-config/{edgeConfigId}/schema')
null
The EdgeConfig.
Get Edge Config token meta data
Return meta data about an Edge Config token.
- edgeConfigIdstringrequired
- tokenstringrequired
- 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/v1/edge-config/{edgeConfigId}/token/{token}')
{
"token": "…",
"label": "…",
"id": "…",
"edgeConfigId": "…",
"createdAt": 1
}
The EdgeConfig.
Get Edge Configs
Returns all Edge Configs.
- 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/v1/edge-config')
{
"id": "…",
"createdAt": 1,
"ownerId": "…",
"slug": "…",
"updatedAt": 1,
"digest": "…",
"transfer": {
"fromAccountId": "…",
"startedAt": 1,
"doneAt": null
},
"schema": {},
"purpose": {
"type": "flags",
"projectId": "…"
},
"sizeInBytes": 1,
"itemCount": 1
}
List of all edge configs.
Update an Edge Config
Updates an Edge Config.
- edgeConfigIdstringrequired
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
^[\\w-]+$
- 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.
- 404
fetch('https://api.vercel.com/v1/edge-config/{edgeConfigId}', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
slug: ''
})
})
{
"createdAt": 1,
"updatedAt": 1,
"id": "…",
"slug": "…",
"ownerId": "…",
"digest": "…",
"transfer": {
"fromAccountId": "…",
"startedAt": 1,
"doneAt": null
},
"schema": {},
"purpose": {
"type": "flags",
"projectId": "…"
},
"sizeInBytes": 1,
"itemCount": 1
}
Update Edge Config items in batch
Update multiple Edge Config Items in batch.
- edgeConfigIdstring
^ecfg_
required
- dryRunstring
- 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 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.
- 404
- 409
fetch('https://api.vercel.com/v1/edge-config/{edgeConfigId}/items', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
items: [{
operation: null,
key: '',
value: null,
description: ''
}],
definition: null
})
})
{
"status": "…"
}
Update Edge Config schema
Update an Edge Config's schema.
- edgeConfigIdstringrequired
- dryRunstring
- 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 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.
- 404
fetch('https://api.vercel.com/v1/edge-config/{edgeConfigId}/schema', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
definition: null
})
})
null
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}
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 |