Data Governance API

Reference for the 21 Data Governance operations in the Intuidy API.

Updated in Intuidy 2026.11.2118 min read

Responses are JSON. A successful response is { "success": true, "data": …, "meta": … }, and each operation below documents its data. Errors use the error envelope described in Errors, pagination and limits.

OperationMethod and pathAuthorization
Read the data-governance documentGET /policiespolicies:read
List governance rulesGET /policies/rulespolicies:read
Get one ruleGET /policies/rules/{ruleId}policies:read
Create or replace a rulePUT /policies/rules/{ruleId}policies:write
Arm or disarm a rulePATCH /policies/rules/{ruleId}policies:write
Remove a ruleDELETE /policies/rules/{ruleId}policies:write
List classification tagsGET /policies/classificationspolicies:read
Create or replace a classification tagPUT /policies/classifications/{id}policies:write
Remove a classification tagDELETE /policies/classifications/{id}policies:write
List detectorsGET /policies/detectorspolicies:read
Create or replace a detectorPUT /policies/detectors/{id}policies:write
Remove a detectorDELETE /policies/detectors/{id}policies:write
Batch governance operationsPOST /policies/opspolicies:write
Preview what installing the recommended pack would doGET /policies/recommendedpolicies:read
Install the recommended starter packPOST /policies/recommendedpolicies:write
Read which AI-learned facts skip the review queueGET /policies/knowledge-approvalpolicies:read
Sweep previously auto-approved facts back into the review queuePOST /policies/knowledge-approvalpolicies:write
Change which AI-learned facts skip the review queuePUT /policies/knowledge-approvalpolicies:write
The unified audit trail for the key's companyGET /auditpolicies:read
Dry-run a payload against the rulesPOST /policies/testpolicies:read
The governance trailGET /policies/activitypolicies:read

Read the data-governance document

GET /policies

Authorization: scope policies:read.

Query parameters

NameTypeRequiredDescription
includestringNoComma-separated. usage adds per-tag and per-detector reference counts (what makes a delete safe). patterns returns raw detector regexes and requires the editor permission — asking without it is a 403 rather than a silent downgrade, because a caller that believes it received patterns and did not would draw the wrong conclusion from an absence of matches.

Response 200 OK

data fields:

FieldTypeDescription
policyobject—
policy.rulesarray of PolicyRule—
policy.classificationsobject—
policy.detectorsobject—
failingDetectorsarray of stringDetectors the engine gave up on — surfaced loudly rather than as rules that quietly stop matching
usageobject—

Errors 403. See Errors, pagination and limits.

Example request

bash
curl -X GET "https://vantage.intuidy.com/api/v1/policies" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

List governance rules

GET /policies/rules

Authorization: scope policies:read.

Query parameters

NameTypeRequiredDescription
enabledbooleanNo—
channel"ai" or "external" or "export" or "internal"No—
action"redact" or "require_approval" or "block"No—

Response 200 OK

data fields:

FieldTypeDescription
rulesarray of PolicyRule—
totalinteger—

Errors 400. See Errors, pagination and limits.

Example request

bash
curl -X GET "https://vantage.intuidy.com/api/v1/policies/rules" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

Get one rule

GET /policies/rules/{ruleId}

Authorization: scope policies:read.

Path parameters

NameTypeRequiredDescription
ruleIdstringYes—

Response 200 OK

data fields:

FieldTypeDescription
rulePolicyRule—

Errors 404. See Errors, pagination and limits.

Example request

bash
curl -X GET "https://vantage.intuidy.com/api/v1/policies/rules/<ruleId>" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

Create or replace a rule

PUT /policies/rules/{ruleId}

The id comes from the PATH. A body id that disagrees is a 400 rather than a silent pick — a data rule written to the wrong id is a rule that silently is not enforcing what someone believes it is.

Authorization: scope policies:write.

Path parameters

NameTypeRequiredDescription
ruleIdstringYes—

Request body (application/json)

FieldTypeRequiredDescription
idstringNo—
namestringNo—
descriptionstringNo—
enabledbooleanNo—
action"redact" or "require_approval" or "block"NoWhen several rules match, the STRICTEST wins.
channelsarray of "ai" or "external" or "export" or "internal"NoA rule with no channels is invalid, not "everywhere".
matchobjectNo—
match.classificationsarray of stringNo—
match.detectorsarray of stringNo—
match.sensitivityarray of stringNo—
match.objectKeysarray of stringNo—

Response 200 OK

Errors 400, 403, 422, 429 (RATE_LIMITED). See Errors, pagination and limits.

Example request

bash
curl -X PUT "https://vantage.intuidy.com/api/v1/policies/rules/<ruleId>" \
  -H "Authorization: Bearer $INTUIDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"<id>"}'

Arm or disarm a rule

PATCH /policies/rules/{ruleId}

Authorization: scope policies:write.

Path parameters

NameTypeRequiredDescription
ruleIdstringYes—

Request body (application/json)

FieldTypeRequiredDescription
enabledbooleanYes—

Response 200 OK

Errors 400, 403. See Errors, pagination and limits.

Example request

bash
curl -X PATCH "https://vantage.intuidy.com/api/v1/policies/rules/<ruleId>" \
  -H "Authorization: Bearer $INTUIDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"enabled":"<enabled>"}'

Remove a rule

DELETE /policies/rules/{ruleId}

Authorization: scope policies:write.

Path parameters

NameTypeRequiredDescription
ruleIdstringYes—

Response 200 OK

Errors 403, 422. See Errors, pagination and limits.

Example request

bash
curl -X DELETE "https://vantage.intuidy.com/api/v1/policies/rules/<ruleId>" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

List classification tags

GET /policies/classifications

The join between the ontology and governance: a tag applied to a column in Objects & Glossary is what a rule here matches on.

Authorization: scope policies:read.

Query parameters

NameTypeRequiredDescription
includestringNousage adds the rules, objects and fields using each tag

Response 200 OK

Example request

bash
curl -X GET "https://vantage.intuidy.com/api/v1/policies/classifications" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

Create or replace a classification tag

PUT /policies/classifications/{id}

Authorization: scope policies:write.

Path parameters

NameTypeRequiredDescription
idstringYes—

Request body (application/json)

FieldTypeRequiredDescription
labelstringNo—
descriptionstringNo—

Response 200 OK

Errors 403. See Errors, pagination and limits.

Example request

bash
curl -X PUT "https://vantage.intuidy.com/api/v1/policies/classifications/<id>" \
  -H "Authorization: Bearer $INTUIDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label":"<label>"}'

Remove a classification tag

DELETE /policies/classifications/{id}

Authorization: scope policies:write.

Path parameters

NameTypeRequiredDescription
idstringYes—

Response 200 OK

Errors 422. See Errors, pagination and limits.

Example request

bash
curl -X DELETE "https://vantage.intuidy.com/api/v1/policies/classifications/<id>" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

List detectors

GET /policies/detectors

Authorization: scope policies:read.

Query parameters

NameTypeRequiredDescription
includestringNopatterns returns raw regexes and requires the editor permission. usage adds the rules referencing each detector.

Response 200 OK

Errors 403. See Errors, pagination and limits.

Example request

bash
curl -X GET "https://vantage.intuidy.com/api/v1/policies/detectors" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

Create or replace a detector

PUT /policies/detectors/{id}

A regex detector's pattern is validated before storage — length cap, allowed flags, and a structural scan for catastrophic backtracking, inside a time budget. An unsafe pattern is a 422, never a stored regex that later eats the evaluation budget on live traffic.

Authorization: scope policies:write.

Path parameters

NameTypeRequiredDescription
idstringYes—

Request body (application/json)

FieldTypeRequiredDescription
labelstringNo—
kind"builtin" or "keyword" or "regex"No—
patternstringNoOnly returned with include=patterns AND the editor permission. A pattern states exactly which strings trip a block rule, so it is withheld from every other reader.
patternRedactedbooleanNoPresent instead of pattern when the caller may not see it.
keywordsarray of stringNo—

Response 200 OK

Errors 422. See Errors, pagination and limits.

Example request

bash
curl -X PUT "https://vantage.intuidy.com/api/v1/policies/detectors/<id>" \
  -H "Authorization: Bearer $INTUIDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label":"<label>"}'

Remove a detector

DELETE /policies/detectors/{id}

Authorization: scope policies:write.

Path parameters

NameTypeRequiredDescription
idstringYes—

Response 200 OK

Errors 422. See Errors, pagination and limits.

Example request

bash
curl -X DELETE "https://vantage.intuidy.com/api/v1/policies/detectors/<id>" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

Batch governance operations

POST /policies/ops

Accepts an op list or any single-action shape. ATOMIC: an unrecognised action, channel or detector kind, an unsafe regex, or a delete of something still referenced rejects the WHOLE batch. A half-applied governance change leaves rules that look armed but no longer match.

Authorization: scope policies:write.

Request body (application/json)

object or object

Response 200 OK

Errors 400, 403, 422. See Errors, pagination and limits.

Example request

bash
curl -X POST "https://vantage.intuidy.com/api/v1/policies/ops" \
  -H "Authorization: Bearer $INTUIDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /policies/recommended

The recommended rules are already present in every organization, all disabled, so installing the pack means "enable the ones still off". This lists exactly which rules those are — with their action, channels and matchers — before anything fires. Call it before the POST: these rules block and redact live traffic the moment they are enabled. Detector patterns are redacted.

Authorization: scope policies:read.

Response 200 OK

Errors 403. See Errors, pagination and limits.

Example request

bash
curl -X GET "https://vantage.intuidy.com/api/v1/policies/recommended" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

POST /policies/recommended

Adds the standard tags, detectors and rules most organizations want. Idempotent: it only adds what is missing, so re-running never resurrects something a curator deleted or re-arms something they turned off.

Authorization: scope policies:write.

Response 200 OK

Errors 403. See Errors, pagination and limits.

Example request

bash
curl -X POST "https://vantage.intuidy.com/api/v1/policies/recommended" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

Read which AI-learned facts skip the review queue

GET /policies/knowledge-approval

Facts a model extracts from conversations land in the knowledge base as Pending by default and are never sent to agents until a person approves them. This returns your organization's approval policy: which categories (if any) approve high-confidence facts automatically, and whether onboarding-interview answers are approved immediately. Typed and imported entries are always approved.

Authorization: scope policies:read.

Response 200 OK

The body fields:

FieldTypeDescription
policyobject—
policy.autoApproveobjectPer category — approve HIGH-confidence extracted facts automatically
policy.interviewAnswersbooleanStore onboarding-interview answers as approved
summarystring—
categoriesarray of object—
categories[].keystring—
categories[].labelstring—

Errors 403. See Errors, pagination and limits.

Example request

bash
curl -X GET "https://vantage.intuidy.com/api/v1/policies/knowledge-approval" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

Sweep previously auto-approved facts back into the review queue

POST /policies/knowledge-approval

The remediation that goes with tightening the approval policy: facts the OLD policy approved automatically are moved back to Pending so a person reviews them. scope is all (default), org (facts shared across your organization) or personal (the key owner's). Same behavior as the requeue in the web app.

Authorization: scope policies:write.

Request body (application/json, optional)

FieldTypeRequiredDescription
action"requeue"No—
scopeall, org or personalNo—

Response 200 OK

The body fields:

FieldTypeDescription
actionstring—
scopestring—
requeuedinteger—
snippetsinteger—

Errors 403. See Errors, pagination and limits.

Example request

bash
curl -X POST "https://vantage.intuidy.com/api/v1/policies/knowledge-approval" \
  -H "Authorization: Bearer $INTUIDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"<action>"}'

Change which AI-learned facts skip the review queue

PUT /policies/knowledge-approval

Merges a partial update into the policy. Non-boolean values are ignored and unknown categories dropped. Requires policies:write and the key owner's organization AI-context permission (the rule governs agent context across the organization).

Authorization: scope policies:write.

Request body (application/json)

FieldTypeRequiredDescription
autoApproveobjectNo—
interviewAnswersbooleanNo—

Response 200 OK

Errors 400, 403. See Errors, pagination and limits.

Example request

bash
curl -X PUT "https://vantage.intuidy.com/api/v1/policies/knowledge-approval" \
  -H "Authorization: Bearer $INTUIDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"autoApprove":"<autoApprove>"}'

The unified audit trail for the key's company

GET /audit

One list across actors: user sign-ins, agent tool calls (executed, denied, awaiting approval), workflow runs by trigger, API-key calls, saves and restores, agent-created assets, and files an HTML dashboard page handed a viewer (source: files, downloaded or opened). Each row carries at, actorType (user | agent | key | system), actorLabel, action, assetType/assetId/assetLabel, outcome and source, plus sharing and role changes (source: access). A row can carry link, an app page to open in a browser. Same rows as Settings → Logs.

Authorization: scope policies:read.

Query parameters

NameTypeRequiredDescription
daysinteger (≤ 90)No—
actor"all" or "user" or "agent" or "key" or "system"No—
source"all" or "login_history" or "ledger" or "usage" or "aipi" or "versions" or "provenance" or "files" or "access"No—
outcomestringNo—
qstringNo—
limitinteger (≤ 5000)No—

Response 200 OK

The body fields:

FieldTypeDescription
daysinteger—
totalinteger—
returnedinteger—
sourcesobject—
rowsarray of object—
rows[].atstring (date-time)—
rows[].actorTypestring—
rows[].actorIdinteger or null—
rows[].actorLabelstring—
rows[].actionstring—
rows[].assetTypestring or null—
rows[].assetIdinteger or null—
rows[].assetLabelstring or null—
rows[].outcomestring—
rows[].detailstring—
rows[].sourcestring—
rows[].linkobject or nullAn app page to open in a browser while signed in; not an API URL

Errors 403. See Errors, pagination and limits.

Example request

bash
curl -X GET "https://vantage.intuidy.com/api/v1/audit" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

Dry-run a payload against the rules

POST /policies/test

"What would happen if I sent this?" NOTHING IS PERSISTED, no model is called, and nothing is recorded — callers testing a PHI rule send real PHI. Requires the editor permission despite carrying only policies:read, because the response reveals which patterns trip which rules.

Authorization: scope policies:read.

Request body (application/json)

FieldTypeRequiredDescription
textstring (max 20000 chars)No—
objectKeystringNoEvaluate as if the payload came from this object, picking up its tags
channel"ai" or "external" or "export" or "internal"NoDefault "ai"
includeDisabledbooleanNoEvaluate unarmed rules too, to preview their effect before enabling

Response 200 OK

data is PolicyVerdict:

FieldTypeDescription
action"allow" or "redact" or "require_approval" or "block"—
reasonstring—
findingsarray of object—
findings[].ruleIdstring—
findings[].ruleNamestring—
findings[].actionstring—
findings[].viastring—
findings[].detectorIdstring—
findings[].countinteger—
findings[].fieldsarray of string—
redactedstring or nullThe payload as a model would receive it, when the verdict is redact
scannedobject—
scanned.charsinteger—
scanned.truncatedboolean—
scanned.msnumber—
degradedbooleanThe engine failed and fell back to the strict answer
evaluatedRulesinteger—
brokenDetectorsarray of string—

Errors 400, 403, 429 (RATE_LIMITED). See Errors, pagination and limits.

Example request

bash
curl -X POST "https://vantage.intuidy.com/api/v1/policies/test" \
  -H "Authorization: Bearer $INTUIDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"<text>"}'

The governance trail

GET /policies/activity

Which rules actually fired, where, and what happened. Without it the feature is unfalsifiable — you cannot tell a rule that is protecting you from one that never matches anything. Only non-allow decisions are recorded, and entries carry rule and detector IDENTIFIERS and counts, never the matched values.

Authorization: scope policies:read.

Query parameters

NameTypeRequiredDescription
ruleIdstringNo—
channel"ai" or "external" or "export" or "internal"No—
action"redact" or "require_approval" or "block"No—
daysinteger (≤ 90)No—
limitinteger (≤ 200)No—
offsetintegerNo—

Response 200 OK

data fields:

FieldTypeDescription
eventsarray of PolicyDecisionEvent—
daysinteger—

Errors 400, 403. See Errors, pagination and limits.

Example request

bash
curl -X GET "https://vantage.intuidy.com/api/v1/policies/activity" \
  -H "Authorization: Bearer $INTUIDY_API_KEY"

Objects

PolicyDecisionEvent

FieldTypeDescription
atstring (date-time)—
channel"ai" or "external" or "export" or "internal"—
action"redact" or "require_approval" or "block"—
surfacestring—
ruleIdsarray of string—
degradedboolean—

PolicyRule

FieldTypeDescription
idstring—
namestring—
descriptionstring—
enabledboolean—
action"redact" or "require_approval" or "block"When several rules match, the STRICTEST wins.
channelsarray of "ai" or "external" or "export" or "internal"A rule with no channels is invalid, not "everywhere".
matchobject—
match.classificationsarray of string—
match.detectorsarray of string—
match.sensitivityarray of string—
match.objectKeysarray of string—

PolicyVerdict

The outcome of a dry run. Carries rule identifiers and counts, never matched values.

FieldTypeDescription
action"allow" or "redact" or "require_approval" or "block"—
reasonstring—
findingsarray of object—
findings[].ruleIdstring—
findings[].ruleNamestring—
findings[].actionstring—
findings[].viastring—
findings[].detectorIdstring—
findings[].countinteger—
findings[].fieldsarray of string—
redactedstring or nullThe payload as a model would receive it, when the verdict is redact
scannedobject—
scanned.charsinteger—
scanned.truncatedboolean—
scanned.msnumber—
degradedbooleanThe engine failed and fell back to the strict answer
evaluatedRulesinteger—
brokenDetectorsarray of string—