GET v2/deployments/{idOrUrl}/events

vercel.com

Summary: Get deployment events
Operation ID: getDeploymentEvents
Auth: unknown
Description

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.

Parameters (11)

builds (number, query, optional)

Constraints: {'enum': [0, 1]}

delimiter (number, query, optional)

Constraints: {'enum': [0, 1]}

direction (string, query, optional, default: forward)

Order of the returned events based on the timestamp.

Constraints: {'enum': ['backward', 'forward']}

follow (number, query, optional)

When enabled, this endpoint will return live events as they happen.

Constraints: {'enum': [0, 1]}

idOrUrl (string, path, required)

The unique identifier or hostname of the deployment.

limit (number, query, optional)

Maximum number of events to return. Provide `-1` to return all available logs.

name (string, query, optional)

Deployment build ID.

since (number, query, optional)

Timestamp for when build logs should be pulled from.

statusCode (?, query, optional)

HTTP status code range to filter events by.

teamId (string, query, optional)

The Team identifier or slug to perform the request on behalf of.

until (number, query, optional)

Timestamp for when the build logs should be pulled up until.

No probe data for this endpoint yet.