> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unprice.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get budgeted run

> Get the current status and budget for a run.

Use `runs.get` to inspect the current state of a budgeted run.

<RequestExample>
  ```ts theme={null}
  const { result, error } = await unprice.runs.get({
    runId: "brun_123"
  });

  if (error) {
    console.error(error.message);
    return;
  }

  console.log(result.remainingAmountMinor);
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "runId": "brun_123",
    "status": "running",
    "customerId": "cus_1234567890",
    "budgetAmountMinor": 5000,
    "consumedAmountMinor": 1200,
    "remainingAmountMinor": 3800,
    "currency": "USD",
    "workloadType": "workflow",
    "workloadId": "wf_summary_123",
    "traceId": "trace_123",
    "parentRunId": null
  }
  ```
</ResponseExample>

## Request

<ParamField body="runId" type="string" required>
  The budgeted run ID.
</ParamField>

<ParamField body="project_id" type="string">
  Optional project override for main-project keys.
</ParamField>

## Response

Returns the current budget, consumed amount, remaining amount, status, and workload labels for the
run.
