Skip to content
Docs

List all attempts for an invocation

GEThttps://api.vercel.com/v1/vercel-ci/invocations/{invocationId}/attempts
List Invocation Attempts
Request
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.vercelCi.listVercelCiInvocationAttempts({
invocationId: "<id>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();
Response
{
"attempts": [
{
"invocationId": "example_id",
"attempt": "123",
"teamId": "example_id",
"source": {
"type": "string"
},
"createdAt": "123",
"repositoryKey": "string",
"ref": "string",
"commitSha": "string",
"skipped": {
"reason": "Customer requested refund"
},
"bootstrappingStarted": {
"startedAt": "123"
},
"bootstrappingFailed": {
"reason": "Customer requested refund"
},
"sandboxSnapshotted": {
"sandboxSnapshotId": "example_id",
"workingDirectory": "string",
"snapshottedAt": "123"
},
"sandboxNamed": {
"sandboxName": "Example Name",
"workingDirectory": "string",
"readyAt": "123"
},
"jobDefinitionsCreated": {
"names": [],
"source": "string",
"scheduledAt": "123"
},
"completed": {
"completedAt": "123",
"conclusion": "string"
},
"setupConclusion": {
"result": "string"
},
"runConclusion": {
"result": "string"
},
"status": "string"
}
],
"repositories": "value"
}
Errors
{
"error": {
"code": "string",
"message": "string"
}
}
AuthorizationbearerToken

Default authentication mechanism

invocationIdstringRequired
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Successfully listed invocation attempts.
attemptsarrayRequired
repositoriesobjectRequired
400One of the provided values in the request query is invalid.
401The request is not authorized.
errorobjectRequired
403You do not have permission to access this resource.
errorobjectRequired
404Error
410Error
429Error
errorobjectRequired
500Error
errorobjectRequired