---
title: "Get project factory failure rates"
method: GET
path: "/experimental/projects/{projectId}/factory/metrics/failure-rates"
tags: ["Projects"]
---

# Get project factory failure rates

`GET /experimental/projects/{projectId}/factory/metrics/failure-rates`

## Request

- Base URL: `https://api.tessl.io`
- URL: `https://api.tessl.io/experimental/projects/{projectId}/factory/metrics/failure-rates`
- Auth: none declared

Counts the finished runs of the project's Loops created in the requested window (`filter[timestamp][gte]` to the exclusive `filter[timestamp][lt]`, at most 90 days, the last 7 days when neither is given) and in the window of the same length just before it, and how many of them failed, by cause. `series` has one point per UTC day that the current window touches, with its finished and failed runs and zeros included, so the points add up to `current`.

## Path parameters

- `projectId` string, uuid, required

## Query parameters

- `filter[timestamp][gte]` string, date-time
- `filter[timestamp][lt]` string, date-time

## Headers

- `Authorization` string

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, uuid, required
    - `type` 'project-factory-failure-rates', required
    - `attributes` object, required
      - `current` object, required
        - `from` string, date-time, required
        - `to` string, date-time, required
        - `finished` integer, required: Runs created in the period that completed, failed or were cancelled.
        - `failed` integer, required: Finished runs classified as a failure, whatever the cause.
        - `byCause` object, required: Failed runs by cause: our platform, the agent, the run setup, running out of credits, a usage limit, or a launch policy block.
          - `platform` integer, required
          - `agent` integer, required
          - `setup` integer, required
          - `credits` integer, required
          - `limits` integer, required
          - `policy` integer, required
      - `previous` object, required
        - `from` string, date-time, required
        - `to` string, date-time, required
        - `finished` integer, required: Runs created in the period that completed, failed or were cancelled.
        - `failed` integer, required: Finished runs classified as a failure, whatever the cause.
        - `byCause` object, required: Failed runs by cause: our platform, the agent, the run setup, running out of credits, a usage limit, or a launch policy block.
          - `platform` integer, required
          - `agent` integer, required
          - `setup` integer, required
          - `credits` integer, required
          - `limits` integer, required
          - `policy` integer, required
      - `series` object[], required
        - `day` string, required
        - `finished` integer, required
        - `failed` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Default Response
- `404`: Not Found
- `500`: Internal Server Error

## Changes

- **2026-10-29** `06d2142ed144`: 1 info
  - api operation id `listProjectFactoryMetricFailureRates` was added
- **2026-10-27** `e25ca4b503fc`: 3 info
  - added the new optional `query` request parameter `filter[timestamp][gte]`
  - added the new optional `query` request parameter `filter[timestamp][lt]`
  - added the required property `data/attributes/series` to the response with the `200` status
- **2026-10-27** `5e39ea5d8009`: 4 info
  - added the required property `data/attributes/current/byCause/limits` to the response with the `200` status
  - added the required property `data/attributes/current/byCause/policy` to the response with the `200` status
  - added the required property `data/attributes/previous/byCause/limits` to the response with the `200` status
  - added the required property `data/attributes/previous/byCause/policy` to the response with the `200` status
- **2026-10-27** `2768b0628d3c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tessl/apis/tessl-api/changes/experimental/projects/:projectId/factory/metrics/failure-rates/get.md)

---

[API](https://skmtc.dev/tessl/apis/tessl-api.md) - [All operations](https://skmtc.dev/tessl/apis/tessl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tessl/apis/tessl-api/revisions/4fa2a17154e4?raw)
