Skip to content
Docs

Get deployment events

GEThttps://api.vercel.com/v3/deployments/{idOrUrl}/events
Get the build logs of a deployment by deployment ID and build ID. It can work as an infinite stream of logs or as a JSON endpoint depending on the input parameters.
https://api.vercel.com/v3/deployments/{idOrUrl}/events
const response = await fetch('https://api.vercel.com/v3/deployments/idOrUrl/events?direction=string&follow=123&limit=123&name=string&since=123&until=123&statusCode=value&delimiter=123&builds=123&teamId=string&slug=string', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
Response
[
{
"type": "command",
"created": "123",
"payload": {
"deploymentId": "example_id",
"info": {
"type": "string",
"name": "Example Name",
"entrypoint": "string",
"path": "string",
"step": "string",
"readyState": "string",
"serviceName": "Example Name"
},
"text": "string",
"id": "icfg_1234567890",
"date": "123",
"serial": "string",
"created": "123",
"statusCode": "123",
"requestId": "example_id",
"proxy": {
"timestamp": "123",
"method": "string",
"host": "string",
"path": "string",
"statusCode": "123",
"userAgent": [],
"referer": "string",
"clientIp": "string",
"region": "string",
"scheme": "string",
"responseByteSize": "123",
"cacheId": "example_id",
"pathType": "string",
"pathTypeVariant": "string",
"vercelId": "example_id",
"vercelCache": "BYPASS",
"lambdaRegion": "string",
"wafAction": "bypass",
"wafRuleId": "example_id"
}
}
}
]
AuthorizationbearerToken

Default authentication mechanism

idOrUrlstringRequired
The unique identifier or hostname of the deployment.
directionstringOptional
Order of the returned events based on the timestamp.
follownumberOptional
When enabled, this endpoint will return live events as they happen.
limitnumberOptional
Maximum number of events to return. Provide -1 to return all available logs.
namestringOptional
Deployment build ID.
sincenumberOptional
Timestamp for when build logs should be pulled from.
untilnumberOptional
Timestamp for when the build logs should be pulled up until.
statusCodeanyOptional
HTTP status code range to filter events by.
delimiternumberOptional
buildsnumberOptional
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Success
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
410Error
500Error