Get deployment events
GET
https://api.vercel.com/v3/deployments/{idOrUrl}/eventsGet 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