The SDKs and MCP server share their core operations. The three webhook-endpoint methods are SDK-only unless MCP_WEBHOOK_ENDPOINT_TOOLS_ENABLED is on; waitForVerification is client-side polling; and the MCP-only ai_record_get and criteria_judgments_get tools exist when their flags are on.
TypeScript is handed over as a tarball made with npm pack; run npm run build before packing. It is not installed from npm. Its default base URL is https://api.acretix.io.
Read the key from ACRETIX_API_KEY and pass it to the constructor. The constructor accepts only an avk_... key.
new AcretixVerify({ apiKey: process.env.ACRETIX_API_KEY ?? '' })| Method | API operation | Scope needed |
|---|---|---|
compileRubric | POST /api/v1/rubrics | rubric:write |
submitVerification | POST /api/v1/verify | verify:submit |
getVerification | GET /api/v1/verifications/{verification_id} | verify:read |
getRubric | GET /api/v1/rubrics/{rubric_id} | Any key of the tenant |
waitForVerification | GET /api/v1/verifications/{verification_id} | verify:read |
getProof | GET /api/v1/verifications/{verification_id}/proof | Any key of the tenant |
reverify | POST /api/v1/verifications/{verification_id}/reverify | verify:submit |
getUsage | GET /api/v1/usage | Any key of the tenant |
submitFeedback | POST /api/v1/verifications/{verification_id}/feedback | Any key of the tenant |
registerWebhookEndpoint | POST /api/v1/webhook-endpoints | verify:read and rubric:write |
listWebhookEndpoints | GET /api/v1/webhook-endpoints | verify:read |
removeWebhookEndpoint | DELETE /api/v1/webhook-endpoints/{endpoint_id} | verify:read and rubric:write |
verifyWebhook(rawBody, signatureHeader, secret, options?)
Pass the raw request body exactly as received, before any JSON parsing.
Failures throw AcretixWebhookError with one of these reasons:
missing_headermalformed_headertimestamp_outside_tolerancesignature_mismatchSee Webhooks for the events, the signature header, and the retries.
Python is handed over as a wheel built with python -m build; it is not installed from PyPI. Its default base URL is https://api.acretix.io.
Read the key from ACRETIX_API_KEY and pass it to the constructor. The constructor accepts only an avk_... key.
AcretixVerify(os.environ["ACRETIX_API_KEY"])| Method | API operation | Scope needed |
|---|---|---|
compile_rubric | POST /api/v1/rubrics | rubric:write |
submit_verification | POST /api/v1/verify | verify:submit |
get_verification | GET /api/v1/verifications/{verification_id} | verify:read |
get_rubric | GET /api/v1/rubrics/{rubric_id} | Any key of the tenant |
wait_for_verification | GET /api/v1/verifications/{verification_id} | verify:read |
get_proof | GET /api/v1/verifications/{verification_id}/proof | Any key of the tenant |
reverify | POST /api/v1/verifications/{verification_id}/reverify | verify:submit |
get_usage | GET /api/v1/usage | Any key of the tenant |
submit_feedback | POST /api/v1/verifications/{verification_id}/feedback | Any key of the tenant |
register_webhook_endpoint | POST /api/v1/webhook-endpoints | verify:read and rubric:write |
list_webhook_endpoints | GET /api/v1/webhook-endpoints | verify:read |
remove_webhook_endpoint | DELETE /api/v1/webhook-endpoints/{endpoint_id} | verify:read and rubric:write |
verify_webhook(raw_body, signature_header, secret, tolerance_seconds=300, now=None)
Pass the raw request body exactly as received, before any JSON parsing.
Failures raise AcretixWebhookError with one of these reasons:
missing_headermalformed_headertimestamp_outside_tolerancesignature_mismatchSee Webhooks for the events, the signature header, and the retries.