Invoke Skill Controls Test
post
/api/v1/skills/controls.test/invokeTest 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
| Field | Type | Description |
|---|---|---|
client_idrequired | string (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_size | integer | Number of items to sample for each control tested. |
period | string | null | Period the controls are tested over, as a free-text label such as 2026-Q2. |
custom_controls | string[] | Names of the controls to test when control_set is custom; otherwise empty. |
Responses
200Skill executed successfully
| Field | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
skillrequired | string | β | ||||||||||||||||||||||||||||||||||||
outputrequired | object | βshow nested
| ||||||||||||||||||||||||||||||||||||
correlation_idrequired | string | β |
401Authentication required
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
403Insufficient permissions
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
404Skill not found
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
429Rate limit exceeded
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
5XXInternal server error
| Field | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
errorrequired | object | βshow nested
|
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"
]
}'