Get a list of template runs
Required permission
Account > Templates > General > Read
Path parameters
templateId
string requiredID of the template
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.min1max100page
integerThe page number to access.min1cursor
stringThe cursor returned from the previous page of results, used to request the next page.min length24max length24status
stringFilter by template status.one ofpending, running, success, failure, aborted, aborting, queued, unknown, skipped, waiting, retrying, async_wait, approval_waitconcluded
booleanFilter by whether the template is concluded.
Response body
- {object}Response object.
data
{object} requiredResult data.templateRuns
[array] requiredAn array of template run objects.- {object}
id
string requiredIdentifier of the run.name
stringOptional name of the run.description
stringOptional description of the run.apiVersion
stringTemplate API version.templateId
stringIdentifier of the template, when available.environmentId
stringIdentifier of the preview environment, when available.status
string requiredStatus of the template runone ofpending, running, success, failure, aborted, aborting, queued, unknown, skipped, waiting, retrying, async_wait, approval_waitconcluded
boolean requiredWhether execution has concluded.startedAt
stringWhen execution started.concludedAt
stringWhen execution concluded.createdAt
string requiredWhen the run was created.updatedAt
string requiredWhen the run was last updated.detailsHidden
boolean requiredRun details include available public results. Sensitive inputs and results are omitted.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
GET /v1/templates/{templateId}/runs
GET /v1/teams/{teamId}/templates/{templateId}/runs
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request GET \
"https://api.northflank.com/v1/templates/{templateId}/runs?per_page=50&page=1&status=success"Example response
200 OK
A list of template runs.
JSON
{
"data": {
"templateRuns": [
{
"id": "110ddb52-bdcd-482d-8ac2-05ba580afe2f",
"name": "Production deployment",
"description": "Deploy the latest release.",
"status": "success",
"concluded": true,
"startedAt": "2026-01-01T12:00:00.000Z",
"concludedAt": "2026-01-01T12:01:00.000Z",
"createdAt": "2026-01-01T12:00:00.000Z",
"updatedAt": "2026-01-01T12:01:00.000Z",
"detailsHidden": false
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}