
# Conformance

Conformance checks whether each connected app still holds the golden value, for every field a [contract](/docs/api/endpoints/conformance-contracts) covers, and fixes the ones that don't. Each (integration, record, field) is a **state**: `conformant`, `failed` or `pending`. All of these need the `conformance` scope; the actions need `conformance:edit`.

> **Simulated apps:** Apps are simulated for now. An app's copy is the data saved by its last [pull](/docs/api/endpoints/integrations/pull); an `auto` push writes the golden value into that copy; and [Confirm Fix](/docs/api/endpoints/conformance/confirm) stands in for the app's owner making the change. Reconcile recomputes from that copy, so it turns a `pending` ticket back to `failed` until the fix is confirmed.

## Endpoints

| Method | Endpoint | Page |
|---|---|---|
| POST | `/api/v1/conformance/reconcile` | [Reconcile](/docs/api/endpoints/conformance/reconcile) |
| GET | `/api/v1/conformance/states` | [List States](/docs/api/endpoints/conformance/states) |
| POST | `/api/v1/conformance/states/:id/enforce` | [Enforce](/docs/api/endpoints/conformance/enforce) |
| POST | `/api/v1/conformance/states/:id/confirm` | [Confirm Fix](/docs/api/endpoints/conformance/confirm) |
| GET | `/api/v1/enforcement-events` | [List Enforcement Events](/docs/api/endpoints/conformance/events) |

## Quick Example

```bash
curl -X POST "https://mdm.finopsbricks.com/api/v1/conformance/reconcile" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET"
```

From the terminal: [`fob-mdm conformance`](/docs/cli/conformance).
