---
title: "Get summary metrics for a project workflow's jobs."
method: GET
path: "/insights/{project-slug}/workflows/{workflow-name}/jobs"
tags: ["Insights"]
---

# Get summary metrics for a project workflow's jobs.

`GET /insights/{project-slug}/workflows/{workflow-name}/jobs`

Get summary metrics for a project workflow's jobs. Job runs going back at most 90 days are included in the aggregation window. Metrics are refreshed daily, and thus may not include executions from the last 24 hours. Please note that Insights is not a financial reporting tool and should not be used for precise credit reporting.  Credit reporting from Insights does not use the same source of truth as the billing information that is found in the Plan Overview page in the CircleCI UI, nor does the underlying data have the same data accuracy guarantees as the billing information in the CircleCI UI.  This may lead to discrepancies between credits reported from Insights and the billing information in the Plan Overview page of the CircleCI UI.  For precise credit reporting, always use the Plan Overview page in the CircleCI UI.

## Path parameters

- `project-slug` string, required
- `workflow-name` string, required

## Query parameters

- `page-token` string
- `all-branches` boolean
- `branch` string
- `reporting-window` 'last-7-days' | 'last-90-days' | 'last-24-hours' | 'last-30-days' | 'last-60-days'
- `job-name` string

## Response `200`

A paginated list of summary metrics by workflow job.

- object — Paginated workflow job summary metrics.
  - `items` object[], required — Job summary metrics.
    - `name` string, required — The name of the job.
    - `metrics` object, required — Metrics relating to a workflow job's runs.
      - `total_runs` integer, required — The total number of runs, including runs that are still on-hold or running.
      - `failed_runs` integer, required — The number of failed runs.
      - `successful_runs` integer, required — The number of successful runs.
      - `duration_metrics` object, required — Metrics relating to the duration of runs for a workflow job.
        - `min` integer, required — The minimum duration, in seconds, among a group of runs.
        - `mean` integer, required — The mean duration, in seconds, among a group of runs.
        - `median` integer, required — The median duration, in seconds, among a group of runs.
        - `p95` integer, required — The 95th percentile duration, in seconds, among a group of runs.
        - `max` integer, required — The max duration, in seconds, among a group of runs.
        - `standard_deviation` number, float, required — The standard deviation, in seconds, among a group of runs.
      - `success_rate` number, float, required
      - `total_credits_used` integer, required — The total credits consumed by the job in the aggregation window. Note that Insights is not a real time financial reporting tool and should not be used for credit reporting.
      - `throughput` number, float, required — The average number of runs per day.
    - `window_start` string, date-time, required — The timestamp of the first build within the requested reporting window.
    - `window_end` string, date-time, required — The timestamp of the last build within the requested reporting window.
  - `next_page_token` string, required — A token to pass as a `page-token` query parameter to return the next page of results.

## Other responses

- `default` — Error response.

---

[API](https://skmtc.net/circleci/apis/api-v2.md) · [All operations](https://skmtc.net/circleci/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/circleci/api-v2/revisions/b9c0e0c24058/schema)
