Skip to main content
POST
/
api
/
metrics
/
backfill-costs
Backfill step cost totals
curl --request POST \
  --url https://api.tedro.io/api/metrics/backfill-costs \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <api-key>' \
  --cookie better-auth.session_token= \
  --data '{}'
{
  "updated": 123,
  "total": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.tedro.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Body

application/json

Empty body — backfills totalUsd on workflow_run_step rows that have token data

Response

Backfill counts

Count of steps whose totalUsd was recomputed

updated
integer
required
total
integer
required