---
title: "Repair Workspace Call Billing Admin"
method: POST
path: "/api/admin/workspaces/{workspace_id}/call-billing/repair"
tags: ["admin-workspaces"]
---

# Repair Workspace Call Billing Admin

`POST /api/admin/workspaces/{workspace_id}/call-billing/repair`

## Request

- Base URL: `https://api.outcallerai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.outcallerai.com/api/admin/workspaces/{workspace_id}/call-billing/repair`
- Auth: none declared

Recalculate per-call billable INR and seconds.

Untagged calls use the legacy gemini rate unless legacy_default_provider is
set. dry_run returns the billing delta and does not write.

## Path parameters

- `workspace_id` string, required

## Query parameters

- `dry_run` boolean
- `legacy_default_provider` string, nullable

## Response `200`

Successful Response

- RepairCallBillingResponse
  - `mode` 'scheduled' | 'preview', required
  - `id` string, nullable
  - `name` string, nullable
  - `repair_scheduled` boolean, nullable
  - `calls_updated` integer, nullable
  - `before` RepairCallBillingTotals
    - `seconds` integer, required
    - `inr` number, required
  - `after` RepairCallBillingTotals
    - `seconds` integer, required
    - `inr` number, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-09** `1ceccd832d1b`: 6 breaking, 6 info
  - the response property `id` became optional for the status `200`
  - the response property `name` became optional for the status `200`
  - the response property `repair_scheduled` became optional for the status `200`
  - response property `id` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - …8 more
- **2026-09-29** `ba78160ee40f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/outcallerai/apis/fastapi/changes/api/admin/workspaces/:workspace_id/call-billing/repair/post.md)

---

[API](https://skmtc.dev/outcallerai/apis/fastapi.md) - [All operations](https://skmtc.dev/outcallerai/apis/fastapi/llms.txt) - [OpenAPI document](https://skmtc.dev/outcallerai/apis/fastapi/revisions/40736cf433b4?raw)
