---
title: "Get Run Expected"
method: GET
path: "/api/v1/cost/detections/{detection_id}/expected"
---

# Get Run Expected

`GET /api/v1/cost/detections/{detection_id}/expected`

## Request

- Base URL: `https://api.stacktrace.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stacktrace.ai/api/v1/cost/detections/{detection_id}/expected`
- Auth: none declared

Whether a Session cost detection's run is marked expected: the mark,
or 404 when it is not.

## Path parameters

- `detection_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- ExpectedRun: A run marked expected, as the console reads it back.
  - `agent_kind` string, required
  - `run_id` string, required
  - `detection_id` string, nullable, required
  - `marked_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api.md) - [All operations](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stacktrace/apis/stacktrace-fleet-api/revisions/0ee5484d1d0b?raw)
