---
title: "List metric collection jobs"
method: GET
path: "/v1/metric/collection-jobs"
tags: ["Metric Collection Job"]
---

# List metric collection jobs

`GET /v1/metric/collection-jobs`

Returns a paginated list of metric collection jobs for the project.

## Query parameters

- `limit` integer — Maximum number of jobs to return (default: 20, max: 50)
- `after` string — Cursor for pagination - use the nextCursor value from a previous response
- `status` 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED' — Filter by job status

## Response `200`

Paginated list of metric collection jobs

- GetMetricCollectionJobsResponse — Paginated list of metric collection jobs
  - `data` MetricCollectionJobResponse[], required
    - `id` string, uuid, required — Unique identifier of the metric collection job
    - `status` 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED', required — Current status of the job
    - `triggeredBy` 'USER_MANUAL' | 'USER_API' | 'METRIC_POLICY' | 'SIMULATION', required — What triggered this job
    - `totalItems` integer, required — Total number of call-metric pairs to process
    - `completedItems` integer, required — Number of successfully completed items
    - `failedItems` integer, required — Number of failed items
    - `startedAt` string, nullable, required — When the job started processing
    - `completedAt` string, nullable, required — When the job completed
    - `errorMessage` string, nullable, required — Error message if the job failed
    - `policyIds` string[], required — IDs of the metric policies that triggered this job
    - `createdAt` string, required — When the job was created
    - `updatedAt` string, required — When the job was last updated
  - `pagination` object, required
    - `total` number, required — Total number of items
    - `hasMore` boolean, required — Whether there are more items to fetch
    - `nextCursor` string, nullable, required — Cursor for the next page of items

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/roarkhq/apis/roark-analytics-api.md) · [All operations](https://skmtc.net/roarkhq/apis/roark-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roarkhq/roark-analytics-api/revisions/83528d3618ef/schema)
