Skills › Review
Review a Document for Regulatory Compliance Gaps
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_idstring · uuidRequired
UUID of the uploaded document to review.
frameworkstringRequired
Name of the framework to review against, such as 'FRS 102', 'IFRS' or 'US GAAP'.
scopearray of strings
Optional list of topic names as plain text to concentrate on; an empty list reviews the whole document.
Returns
Skill executed successfully
skillstringRequired
Example review_compliance
outputobjectRequired
output.stub_fieldsarray of strings
output.warningsarray of strings
output.statusstring · default
output.findingsarray of values
output.risk_levelstring · default low
output.recommendationsarray of strings
output.coverage_pctnumber · default 0
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALID Authentication required
403PERMISSION.CAPABILITY_DENIED Insufficient permissions
404SKILL.NOT_FOUND Skill not found
422VALIDATION.INVALID_FORMAT Validation error
429RATE_LIMIT.USER Rate limit exceeded
5XXINTERNAL.UNKNOWN Internal server error
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>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"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.