Get recent runs of a workflow

GET {{baseUrl}}/insights/:project-slug/workflows/:workflow-name?all-branches=true&branch=consequat est&page-token=consequat est&start-date=2020-08-21T13:26:29Z&end-date=2020-09-04T13:26:29Z

Get recent runs of a workflow. Runs going back at most 90 days are returned. Please note that Insights is not a real time financial reporting tool and should not be used for credit reporting. The most up to date credit information can be found in Plan Overview in the CircleCI UI.

Request Params

KeyDatatypeRequiredDescription
all-branchesbooleanWhether to retrieve data for all branches combined. Use either this parameter OR the branch name parameter.
branchstringThe name of a vcs branch. If not passed we will scope the API call to the default branch.
page-tokenstringA token to retrieve the next page of results.
start-datestringInclude only executions that started at or after this date. This must be specified if an end-date is provided.
end-datestringInclude only executions that started before this date. This date can be at most 90 days after the start-date.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"items":[{"id":"df68fe42-01b1-633a-c6dc-efd157a6fea5","branch":"main","duration":13079952,"created_at":"1960-02-05T21:16:46.019Z","stopped_at":"1984-01-31T01:43:01.641Z","credits_used":63977460,"status":"failed"},{"id":"urn:uuid:77e60740-1a79-d8f9-0c16-6443defb11ca","branch":"main","duration":28266583,"created_at":"1999-04-27T14:16:05.369Z","stopped_at":"2007-10-16T09:18:06.043Z","credits_used":3198326,"status":"success"}],"next_page_token":"ut laborum qui id"}