---
title: "Get log cost recalculation status"
method: GET
path: "/api/logs/recalculate-cost/status"
tags: ["Logging"]
---

# Get log cost recalculation status

`GET /api/logs/recalculate-cost/status`

Returns the current status of a log cost recalculation job.
When `id` is omitted, the current in-flight job is returned, or `idle` when no job is running.

## Query parameters

- `id` string

## Response `200`

Recalculation job status

- RecalculateCostResponse — Recalculate cost job status
  - `id` string — Background job ID
  - `status` string — Current job status
  - `total` integer — Total matching logs queued for recalculation
  - `processed` integer — Logs processed so far
  - `updated` integer — Logs updated with new costs
  - `skipped` integer — Logs skipped during processing
  - `message` string — Optional progress message
  - `last_error` string — Last error encountered by the job
  - `started_at` string, date-time — Job start time
  - `updated_at` string, date-time — Last status update time

## Other responses

- `404` — Recalculation job not found
- `500` — Internal server error
- `503` — Background job runner is not available

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
