webhooks
Creates a webhook
Creates a webhook
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
^https?://
- budget.reached
- budget.reset
- domain.created
- deployment.created
- deployment.error
- 400
One of the provided values in the request body is invalid.
- 401
- 403
You do not have permission to access this resource.
fetch('https://api.vercel.com/v1/webhooks', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: '',
events: ['budget.reached'],
projectIds: ['']
})
})
{
"secret": "…",
"events": "deployment.created",
"id": "account_hook_GflD6EYyo7F4ViYS",
"url": "https://my-webhook.com",
"ownerId": "ZspSRT4ljIEEmMHgoDwKWDei",
"createdAt": 1567024758130,
"updatedAt": 1567024758130,
"projectIds": [
"prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB"
]
}
Deletes a webhook
Deletes a webhook
- idstringrequired
- 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.
fetch('https://api.vercel.com/v1/webhooks/{id}', {
method: 'DELETE'
})
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
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}
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
- GET/v1/experimentation/items
- 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/v3/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
Creates a webhook
Creates a webhook
- teamIdstring
The Team identifier to perform the request on behalf of.
- slugstring
The Team slug to perform the request on behalf of.
^https?://
- budget.reached
- budget.reset
- domain.created
- deployment.created
- deployment.error
- 400
One of the provided values in the request body is invalid.
- 401
- 403
You do not have permission to access this resource.
fetch('https://api.vercel.com/v1/webhooks', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: '',
events: ['budget.reached'],
projectIds: ['']
})
})
{
"secret": "…",
"events": "deployment.created",
"id": "account_hook_GflD6EYyo7F4ViYS",
"url": "https://my-webhook.com",
"ownerId": "ZspSRT4ljIEEmMHgoDwKWDei",
"createdAt": 1567024758130,
"updatedAt": 1567024758130,
"projectIds": [
"prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB"
]
}
Deletes a webhook
Deletes a webhook
- idstringrequired
- 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.
fetch('https://api.vercel.com/v1/webhooks/{id}', {
method: 'DELETE'
})
Get a list of webhooks
Get a list of webhooks
- projectIdstring
^[a-zA-z0-9_]+$
- 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/webhooks')
[
{
"projectsMetadata": [
{
"id": "…",
"name": "…",
"framework": "blitzjs",
"latestDeployment": "…"
}
],
"events": "deployment.created",
"id": "account_hook_GflD6EYyo7F4ViYS",
"url": "https://my-webhook.com",
"ownerId": "ZspSRT4ljIEEmMHgoDwKWDei",
"createdAt": 1567024758130,
"updatedAt": 1567024758130,
"projectIds": [
"prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB"
]
}
]
Get a webhook
Get a webhook
- idstringrequired
- 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/webhooks/{id}')
{
"events": "deployment.created",
"id": "account_hook_GflD6EYyo7F4ViYS",
"url": "https://my-webhook.com",
"ownerId": "ZspSRT4ljIEEmMHgoDwKWDei",
"createdAt": 1567024758130,
"updatedAt": 1567024758130,
"projectIds": [
"prj_12HKQaOmR5t5Uy6vdcQsNIiZgHGB"
]
}
Models
idOrName Required |
Accept | */* |
teamId | |
slug |