
# Reconcile

```
POST /api/v1/conformance/reconcile
```

Compares each linked app record with golden for every `must_match` contract, and records each result as a state. Send `integration` to check one app only.

CLI: [`fob-mdm conformance run`](/docs/cli/conformance#conformance-run)

## Request Body

| Field | Type | Required | Description |
|---|---|---|---|
| `integration` | number | No | Check only this integration. Omit the body to check all |

## Example Request

```bash
curl -X POST "https://mdm.finopsbricks.com/api/v1/conformance/reconcile" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "integration": 5
  }'
```

## Response

`200 OK`

```json
{
  "data": {
    "checked": 3,
    "conformant": 1,
    "failed": 2
  }
}
```

## Errors

| Status | Code | When |
|---|---|---|
| 401 | `UNAUTHORIZED` | Missing, wrong or expired API credentials |
| 403 | `FORBIDDEN` | The key lacks `conformance:edit` permission |
| 404 | `NOT_FOUND` | No such integration in your organization |

See [Errors](/docs/api/errors) for the envelope.
