{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://signetsentry.com/v1/profile-schema","title":"Signet scoring profile","type":"object","additionalProperties":false,"properties":{"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$","description":"Required when you POST /v1/profiles or import a file. Ignored as the URL name when you PUT /v1/profiles/{name} (the path wins)."},"description":{"type":"string","maxLength":200},"is_default":{"type":"boolean","description":"When true, assessments use this profile unless a name is passed on the request."},"base_score":{"type":"integer","minimum":0,"maximum":100,"description":"Starting score before any rule fires. Omit to inherit the account default."},"thresholds":{"type":"object","additionalProperties":false,"properties":{"review":{"type":"integer","minimum":0,"maximum":100},"deny":{"type":"integer","minimum":0,"maximum":100}},"description":"Must satisfy 0 \u003C= review \u003C= deny \u003C= 100. Omitted fields are inherited."},"rules":{"type":"object","additionalProperties":{"type":"object","additionalProperties":false,"properties":{"score":{"type":"integer","minimum":-100,"maximum":100,"description":"Replaces the rule\u0027s points. Omit to keep the rule\u0027s own points."},"enabled":{"type":"boolean","description":"false switches the rule off for this profile; true switches a rule that is off by default back on."}},"description":"At least one of score or enabled is required."},"description":"Per-rule overrides keyed by rule ID (see GET /v1/rules or GET /v1/scoring). At most 200 entries."},"custom_rules":{"type":"array","items":{"type":"object","required":["id","when"],"properties":{"id":{"type":"string","minLength":1,"maxLength":64},"description":{"type":"string"},"reason_code":{"type":"string"},"score":{"type":"integer","minimum":-100,"maximum":100},"decision":{"type":"string","enum":["allow","review","deny"]},"enabled":{"type":"boolean"},"group":{"type":"string"},"when":{"type":"object","description":"A condition on signals (see the rule builder and GET /v1/rules)."}}},"description":"Extra rules for this profile. The visual rule builder (custom conditions and hard allow / review / deny) is available on the Scale plan."}},"example":{"name":"checkout","description":"Stricter for payments","base_score":0,"thresholds":{"review":30,"deny":60},"rules":{"ip-vpn":{"score":30},"device-bot-ua":{"enabled":false}}}}