CAIN-42 CAIN Studio

API reference · CAIN Compliance

Define Control

POST /fabric/compliance/controls

Last reviewed 2026-10-02

POST /fabric/compliance/controls

Define a new machine-readable control.

Parameters

NameInTypeMeaning
tenant requiredquerystring

Request body

ControlDefine (required)

FieldTypeMeaning
name requiredstring
description requiredstring
category requiredstring
assertion_levelstringdefault "technical_control_verified"
control_logic requiredstring
inputs_requiredarray of stringdefault []
evaluation_method requiredstring
frameworksarray of stringdefault []
requirement_idsarray of stringdefault []
versionstringdefault "1.0"
requires_legal_mappingbooleandefault false

Responses

StatusMeaningBody
200Successful Responseobject
422Validation ErrorHTTPValidationError
401No key, or a key that is not validJSON detail
429Rate limit for your plan reached; retry after the Retry-After secondsJSON detail

Try it

This call changes data in the account the key belongs to.

The request goes from your browser straight to this site. Your key is not stored unless you tick the box, and then only in this tab's session storage.

Code

curl -sS -X POST 'https://cainstudio.online/fabric/compliance/controls?tenant=tenant' \
  -H "X-API-Key: $CAIN_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"name": "name", "description": "description", "category": "category", "assertion_level": "technical_control_verified", "control_logic": "control-logic", "inputs_required": [], "evaluation_method": "evaluation-method", "frameworks": [], "requirement_ids": [], "version": "1.0", "requires_legal_mapping": false}'

Schemas used

ControlDefine · HTTPValidationError · ValidationError

← List Controls · all 35 CAIN Compliance calls · Evaluate Control →

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem