Skip to content
Docs

List invocations for a team, optionally filtered by repository and invocation metadata

GEThttps://api.vercel.com/v2/vercel-ci/invocations
List Invocations
https://api.vercel.com/v2/vercel-ci/invocations
const response = await fetch('https://api.vercel.com/v2/vercel-ci/invocations?provider=string&repository=string&branchName=string&snapshot=string&status=[]&conclusion=[]&source=[]&authorGitHubId=string&author=string&createdAfter=123&createdBefore=123&limit=123&cursor=string&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
{
"invocations": [
{
"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",
"pagination": {
"nextCursor": "string"
}
}
Errors
{
"error": {
"code": "string",
"message": "string"
}
}
AuthorizationbearerToken

Default authentication mechanism

providerstringOptional
Repository provider (e.g., "github").
repositorystringOptional
Repository slug (e.g., "vercel/next.js").
branchNamestringOptional
Branch name (e.g., "main").
snapshotstringOptional
Snapshot/commit hash.
statusarrayOptional
conclusionarrayOptional
sourcearrayOptional
authorGitHubIdstringOptional
authorstringOptional
GitHub author login.
createdAfternumberOptional
createdBeforenumberOptional
limitnumberOptional
Number of results per page (default: 20, max: 100).
cursorstringOptional
Pagination cursor from a previous response.
teamIdstringOptional
The Team identifier to perform the request on behalf of.
slugstringOptional
The Team slug to perform the request on behalf of.
200Successfully listed invocations.
invocationsarrayRequired
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
503Error