# Review a Document for Regulatory Compliance Gaps

> Reviews an uploaded document against an accounting or regulatory framework and reports where it falls short. Supply the document_id and the framework…

POST /api/v1/skills/compliance.review/invoke

Reviews an uploaded document against an accounting or regulatory framework and reports where it falls short. Supply the document_id and the framework, such as FRS 102 or IFRS, and optionally the topics to concentrate on. It returns a status, findings with severity and a recommendation each, an overall risk level and the share of the document covered.

Body parameters

document_id string · uuid Required

UUID of the uploaded document to review.

framework string Required

Name of the framework to review against, such as 'FRS 102', 'IFRS' or 'US GAAP'.

scope array of strings

Optional list of topic names as plain text to concentrate on; an empty list reviews the whole document.

Returns

Skill executed successfully

skill string Required

Example review_compliance

output object Required

output.stub_fields array of strings

output.warnings array of strings

output.status string · default

output.findings array of values

output.risk_level string · default low

output.recommendations array of strings

output.coverage_pct number · default 0

correlation_id string Required

Errors

Status Type When

401 AUTH.TOKEN_INVALID Authentication required

403 PERMISSION.CAPABILITY_DENIED Insufficient permissions

404 SKILL.NOT_FOUND Skill not found

422 VALIDATION.INVALID_FORMAT Validation error

429 RATE_LIMIT.USER Rate limit exceeded

5XX INTERNAL.UNKNOWN Internal server error

[Next Review Wills, Trusts, Beneficiaries, Control →](https://heyarchie.com/en-gb/developers/api-reference/review/review-wills-trusts-beneficiaries-control/)

```
curl https://uk.heyarchie.com/api/v1/skills/compliance.review/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "document_id": "00000000-0000-0000-0000-000000000000",
       "framework": "string",
       "scope": [
         "string"
       ]
     }'
```

```
from heyarchie import Archie
archie = Archie(api_key="sk_...")
result = archie.skills.invoke(
    "compliance.review",
    document_id="00000000-0000-0000-0000-000000000000",
    framework="string",
    scope=["string"],
)
print(result)
```

```
import { Archie } from "heyarchie";

const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("compliance.review", {
  "document_id": "00000000-0000-0000-0000-000000000000",
  "framework": "string",
  "scope": [
    "string"
  ]
});
console.log(result);
```

Response

```
{
  "skill": "review_compliance",
  "output": {
    "coverage_pct": 85,
    "findings": [
      {
        "area": "Related party disclosures",
        "description": "Note 18 does not name the director who controls Kestrel Holdings Ltd.",
        "recommendation": "Name the controlling party and the transactions.",
        "severity": "medium"
      }
    ],
    "recommendations": [
      "Expand note 18 before the accounts are approved."
    ],
    "risk_level": "medium",
    "status": "completed"
  },
  "correlation_id": "<string>"
}
```

```
{
  "error": {
    "type": "<string>",
    "code": "<string>",
    "message": "<string>",
    "param": "<string>",
    "retry_after_seconds": "<integer>"
  }
}
```

Every response also carries X-Request-ID. Quote it if you write to us about a call.
