---
title: "Record bias measurement"
method: POST
path: "/api/v1/euaiact/accuracy/bias"
tags: ["EU AI Act"]
---

# Record bias measurement

`POST /api/v1/euaiact/accuracy/bias`

## Request

- Base URL: `https://orchestrator.getaxonflow.com`
- URL: `https://orchestrator.getaxonflow.com/api/v1/euaiact/accuracy/bias`
- Auth: none declared
- TypeScript: <https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/docs/api/v1/euaiact/accuracy/bias/post.ts> (a function with typed inputs; its response is checked against the schema)

Record a bias detection measurement for a model.

## Headers

- `X-Org-ID` string

## Request body

- RecordBiasRequest
  - `model_id` string, required
  - `category` 'gender' | 'age' | 'ethnicity' | 'disability' | 'religion' | 'nationality' | 'socioeconomic' | 'custom', required
  - `group_a` string, required: Name of the first comparison group
  - `group_b` string, required: Name of the second comparison group
  - `group_a_rate` number, double, required: Positive outcome rate for group A
  - `group_b_rate` number, double, required: Positive outcome rate for group B
  - `sample_size` integer
  - `window_start` string, date-time
  - `window_end` string, date-time
  - `metadata` object

## Response `201`

Bias record created

- BiasRecord
  - `id` string
  - `org_id` string
  - `model_id` string
  - `category` 'gender' | 'age' | 'ethnicity' | 'disability' | 'religion' | 'nationality' | 'socioeconomic' | 'custom'
  - `score` number, double: Calculated bias score (difference ratio)
  - `threshold` number, double
  - `is_violation` boolean
  - `sample_size` integer
  - `group_a` string
  - `group_b` string
  - `group_a_rate` number, double
  - `group_b_rate` number, double
  - `timestamp` string, date-time
  - `window_start` string, date-time
  - `window_end` string, date-time
  - `metadata` object

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api.md) - [All operations](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaxonflow/apis/axonflow-orchestrator-api/revisions/f408ef3ec9dd?raw)
