Operating system set to macOS
Documentation jurisdiction set to United States
Sign inConnect Claude

Invoke Skill Controls Test

post/api/v1/skills/controls.test/invoke

Test internal controls β€” design or operating effectiveness, sample selection, exceptions.

Tests a client's internal controls for design or operating effectiveness, with sample selection and exception reporting. You must supply client_id, and can choose the control set, test type, sample size and period. It returns an overall conclusion, the controls tested with their results, exceptions and recommendations.

Request bodyapplication/json

FieldTypeDescription
client_idrequiredstring (uuid)UUID of the client whose internal controls are tested.
control_set"payment_authorisation" | "journal_approval" | "user_access" | "segregation_of_duties" | "expense_approval" | "custom"Set of controls to test; choose custom to test the controls you list.
payment_authorisationjournal_approvaluser_accesssegregation_of_dutiesexpense_approvalcustom
test_type"design" | "operating" | "both"Whether to test design effectiveness, operating effectiveness or both.
designoperatingboth
sample_sizeintegerNumber of items to sample for each control tested.
periodstring | nullPeriod the controls are tested over, as a free-text label such as 2026-Q2.
custom_controlsstring[]Names of the controls to test when control_set is custom; otherwise empty.

Responses

200Skill executed successfully
FieldTypeDescription
skillrequiredstringβ€”
outputrequiredobjectβ€”
show nested
FieldTypeDescription
artifact_idstring (uuid) | nullβ€”
download_urlstringβ€”
summarystringβ€”
citationsany[]β€”
warningsstring[]β€”
stub_fieldsstring[]β€”
test_idstring (uuid)β€”
overall_conclusion"effective" | "deficient" | "material_weakness"β€”
effectivedeficientmaterial_weakness
controls_testedany[]β€”
exceptionsany[]β€”
recommendationsstring[]β€”
correlation_idrequiredstringβ€”
401Authentication required
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
403Insufficient permissions
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
404Skill not found
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
429Rate limit exceeded
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
5XXInternal server error
FieldTypeDescription
errorrequiredobjectβ€”
show nested
FieldTypeDescription
typerequiredstringβ€”
coderequiredstringβ€”
messagerequiredstringβ€”
paramstringβ€”
retry_after_secondsintegerβ€”
curl https://api.dev.arch.ie/api/v1/skills/controls.test/invoke \
  -X POST \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
       "client_id": "00000000-0000-0000-0000-000000000000",
       "control_set": "payment_authorisation",
       "test_type": "design",
       "sample_size": 0,
       "period": null,
       "custom_controls": [
         "string"
       ]
     }'