---
title: "Preview a lab correction"
method: POST
path: "/api/correction-equations/fit"
tags: ["correction-equations"]
---

# Preview a lab correction

`POST /api/correction-equations/fit`

## Request

- Base URL: `https://api.ivive.app`
- URL: `https://api.ivive.app/api/correction-equations/fit`
- Auth: OAuth 2 (password, token URL `/api/auth/login`)

Runs IVIVE on each compound and fits log10(observed / predicted plasma CL) = offset + slope × log10(fu_p) for both IVIVE models. Does NOT save.

## Request body

- CorrectionFitRequest
  - `assay_type` 'microsomes' | 'hepatocytes', required
  - `species` 'human' | 'rat' | 'dog'
  - `source` string, nullable: Lab or dataset the compounds come from.
  - `compounds` LabCompound[], required
    - `name` string, required
    - `clint` number, required: In-vitro CLint (µL/min/mg protein or µL/min/10⁶ cells).
    - `fu_mic` number, required: Unbound fraction in the incubation.
    - `fu_p` number, required: Unbound fraction in plasma.
    - `rb` number: Blood-to-plasma ratio.
    - `cl_obs` number, required: Observed total plasma clearance, IV (mL/min/kg).

## Response `200`

Successful Response

- CorrectionFitResponse
  - `n_compounds` integer, required
  - `fu_p_min` number, required
  - `fu_p_max` number, required
  - `fits` object, required: Keyed by IVIVE model.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ivive/apis/ivive-app-api.md) · [All operations](https://skmtc.dev/ivive/apis/ivive-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ivive/apis/ivive-app-api/revisions/a67615eaf584?raw)
