List and filter deployments
/v2/deploymentsAuthorization
api_key API key for authentication. Use format: Bearer YOUR_API_KEY
In: header
Query Parameters
Filter deployments by procedure ID(s). Omit to list across all procedures.
Filter by deployment environment.
Filter by build status.
True = only deployments pushed to at least one station. False = only deployments not yet pushed.
Filter by the git branch name of the deployment's commit.
Filter by the commit author username.
Filter deployments created after this date (inclusive).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$date-timeFilter deployments created before this date (inclusive).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$date-timeSearch deployments by commit message or SHA.
length <= 256Maximum number of deployments to return.
501 <= value <= 100Cursor for pagination. Use next_cursor from the previous response to fetch the next page.
-9007199254740991 <= value <= 9007199254740991Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v2/deployments"{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"environment": "production",
"trigger": "auto",
"status": "ready",
"skipped": false,
"started_at": "2024-01-15T10:30:00Z",
"ended_at": "2024-01-15T10:35:00Z",
"deployed_at": "2024-01-15T10:25:00Z",
"procedure": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
},
"commit": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"sha": "string",
"message": "string",
"author_username": "string",
"author_avatar_url": "string",
"committed_at": "2019-08-24T14:15:22Z",
"branch": "string"
},
"repository": {
"provider": "github"
},
"stations": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string"
}
]
}
],
"meta": {
"has_more": true,
"next_cursor": 50
}
}{
"message": "Bad request",
"code": "BAD_REQUEST",
"issues": []
}{
"message": "Unauthorized",
"code": "UNAUTHORIZED",
"issues": []
}{
"message": "Not found",
"code": "NOT_FOUND",
"issues": []
}{
"message": "Internal server error",
"code": "INTERNAL_SERVER_ERROR",
"issues": []
}How is this guide?
Get deployment GET
Get a deployment by ID, with its artifact metadata, commit, creator, and per-station push state.
Import runs from structured files POST
Import one or more previously uploaded structured files (OpenHTF, WATS WSJF/WSXF, ATML, NI TestStand, STDF, or ATDF) in a single call. Each file is parsed independently and its result returned per-item, so one bad file does not fail the others. A file that contains several units (a multi-part STDF/ATDF datalog or a multi-report WSXF/TestStand document) creates one run per unit; all run ids are returned in the item’s `ids`.