Data Governance API
Reference for the 21 Data Governance operations in the Intuidy API.
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.
| Operation | Method and path | Authorization |
|---|---|---|
| Read the data-governance document | GET /policies | policies:read |
| List governance rules | GET /policies/rules | policies:read |
| Get one rule | GET /policies/rules/{ruleId} | policies:read |
| Create or replace a rule | PUT /policies/rules/{ruleId} | policies:write |
| Arm or disarm a rule | PATCH /policies/rules/{ruleId} | policies:write |
| Remove a rule | DELETE /policies/rules/{ruleId} | policies:write |
| List classification tags | GET /policies/classifications | policies:read |
| Create or replace a classification tag | PUT /policies/classifications/{id} | policies:write |
| Remove a classification tag | DELETE /policies/classifications/{id} | policies:write |
| List detectors | GET /policies/detectors | policies:read |
| Create or replace a detector | PUT /policies/detectors/{id} | policies:write |
| Remove a detector | DELETE /policies/detectors/{id} | policies:write |
| Batch governance operations | POST /policies/ops | policies:write |
| Preview what installing the recommended pack would do | GET /policies/recommended | policies:read |
| Install the recommended starter pack | POST /policies/recommended | policies:write |
| Read which AI-learned facts skip the review queue | GET /policies/knowledge-approval | policies:read |
| Sweep previously auto-approved facts back into the review queue | POST /policies/knowledge-approval | policies:write |
| Change which AI-learned facts skip the review queue | PUT /policies/knowledge-approval | policies:write |
| The unified audit trail for the key's company | GET /audit | policies:read |
| Dry-run a payload against the rules | POST /policies/test | policies:read |
| The governance trail | GET /policies/activity | policies:read |
Read the data-governance document
GET /policies
Authorization: scope policies:read.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
include | string | No | Comma-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:
| Field | Type | Description |
|---|---|---|
policy | object | — |
policy.rules | array of PolicyRule | — |
policy.classifications | object | — |
policy.detectors | object | — |
failingDetectors | array of string | Detectors the engine gave up on — surfaced loudly rather than as rules that quietly stop matching |
usage | object | — |
Errors 403. See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
enabled | boolean | No | — |
channel | "ai" or "external" or "export" or "internal" | No | — |
action | "redact" or "require_approval" or "block" | No | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
rules | array of PolicyRule | — |
total | integer | — |
Errors 400. See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
ruleId | string | Yes | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
rule | PolicyRule | — |
Errors 404. See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
ruleId | string | Yes | — |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
id | string | No | — |
name | string | No | — |
description | string | No | — |
enabled | boolean | No | — |
action | "redact" or "require_approval" or "block" | No | When several rules match, the STRICTEST wins. |
channels | array of "ai" or "external" or "export" or "internal" | No | A rule with no channels is invalid, not "everywhere". |
match | object | No | — |
match.classifications | array of string | No | — |
match.detectors | array of string | No | — |
match.sensitivity | array of string | No | — |
match.objectKeys | array of string | No | — |
Response 200 OK
Errors 400, 403, 422, 429 (RATE_LIMITED). See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
ruleId | string | Yes | — |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
enabled | boolean | Yes | — |
Response 200 OK
Errors 400, 403. See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
ruleId | string | Yes | — |
Response 200 OK
Errors 403, 422. See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
include | string | No | usage adds the rules, objects and fields using each tag |
Response 200 OK
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
label | string | No | — |
description | string | No | — |
Response 200 OK
Errors 403. See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
Response 200 OK
Errors 422. See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
include | string | No | patterns 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
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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
label | string | No | — |
kind | "builtin" or "keyword" or "regex" | No | — |
pattern | string | No | Only 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. |
patternRedacted | boolean | No | Present instead of pattern when the caller may not see it. |
keywords | array of string | No | — |
Response 200 OK
Errors 422. See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
Response 200 OK
Errors 422. See Errors, pagination and limits.
Example request
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
curl -X POST "https://vantage.intuidy.com/api/v1/policies/ops" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Preview what installing the recommended pack would do
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
curl -X GET "https://vantage.intuidy.com/api/v1/policies/recommended" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Install the recommended starter pack
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
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:
| Field | Type | Description |
|---|---|---|
policy | object | — |
policy.autoApprove | object | Per category — approve HIGH-confidence extracted facts automatically |
policy.interviewAnswers | boolean | Store onboarding-interview answers as approved |
summary | string | — |
categories | array of object | — |
categories[].key | string | — |
categories[].label | string | — |
Errors 403. See Errors, pagination and limits.
Example request
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)
| Field | Type | Required | Description |
|---|---|---|---|
action | "requeue" | No | — |
scope | all, org or personal | No | — |
Response 200 OK
The body fields:
| Field | Type | Description |
|---|---|---|
action | string | — |
scope | string | — |
requeued | integer | — |
snippets | integer | — |
Errors 403. See Errors, pagination and limits.
Example request
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)
| Field | Type | Required | Description |
|---|---|---|---|
autoApprove | object | No | — |
interviewAnswers | boolean | No | — |
Response 200 OK
Errors 400, 403. See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
days | integer (≤ 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 | — |
outcome | string | No | — |
q | string | No | — |
limit | integer (≤ 5000) | No | — |
Response 200 OK
The body fields:
| Field | Type | Description |
|---|---|---|
days | integer | — |
total | integer | — |
returned | integer | — |
sources | object | — |
rows | array of object | — |
rows[].at | string (date-time) | — |
rows[].actorType | string | — |
rows[].actorId | integer or null | — |
rows[].actorLabel | string | — |
rows[].action | string | — |
rows[].assetType | string or null | — |
rows[].assetId | integer or null | — |
rows[].assetLabel | string or null | — |
rows[].outcome | string | — |
rows[].detail | string | — |
rows[].source | string | — |
rows[].link | object or null | An app page to open in a browser while signed in; not an API URL |
Errors 403. See Errors, pagination and limits.
Example request
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)
| Field | Type | Required | Description |
|---|---|---|---|
text | string (max 20000 chars) | No | — |
objectKey | string | No | Evaluate as if the payload came from this object, picking up its tags |
channel | "ai" or "external" or "export" or "internal" | No | Default "ai" |
includeDisabled | boolean | No | Evaluate unarmed rules too, to preview their effect before enabling |
Response 200 OK
data is PolicyVerdict:
| Field | Type | Description |
|---|---|---|
action | "allow" or "redact" or "require_approval" or "block" | — |
reason | string | — |
findings | array of object | — |
findings[].ruleId | string | — |
findings[].ruleName | string | — |
findings[].action | string | — |
findings[].via | string | — |
findings[].detectorId | string | — |
findings[].count | integer | — |
findings[].fields | array of string | — |
redacted | string or null | The payload as a model would receive it, when the verdict is redact |
scanned | object | — |
scanned.chars | integer | — |
scanned.truncated | boolean | — |
scanned.ms | number | — |
degraded | boolean | The engine failed and fell back to the strict answer |
evaluatedRules | integer | — |
brokenDetectors | array of string | — |
Errors 400, 403, 429 (RATE_LIMITED). See Errors, pagination and limits.
Example request
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
| Name | Type | Required | Description |
|---|---|---|---|
ruleId | string | No | — |
channel | "ai" or "external" or "export" or "internal" | No | — |
action | "redact" or "require_approval" or "block" | No | — |
days | integer (≤ 90) | No | — |
limit | integer (≤ 200) | No | — |
offset | integer | No | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
events | array of PolicyDecisionEvent | — |
days | integer | — |
Errors 400, 403. See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/policies/activity" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Objects
PolicyDecisionEvent
| Field | Type | Description |
|---|---|---|
at | string (date-time) | — |
channel | "ai" or "external" or "export" or "internal" | — |
action | "redact" or "require_approval" or "block" | — |
surface | string | — |
ruleIds | array of string | — |
degraded | boolean | — |
PolicyRule
| Field | Type | Description |
|---|---|---|
id | string | — |
name | string | — |
description | string | — |
enabled | boolean | — |
action | "redact" or "require_approval" or "block" | When several rules match, the STRICTEST wins. |
channels | array of "ai" or "external" or "export" or "internal" | A rule with no channels is invalid, not "everywhere". |
match | object | — |
match.classifications | array of string | — |
match.detectors | array of string | — |
match.sensitivity | array of string | — |
match.objectKeys | array of string | — |
PolicyVerdict
The outcome of a dry run. Carries rule identifiers and counts, never matched values.
| Field | Type | Description |
|---|---|---|
action | "allow" or "redact" or "require_approval" or "block" | — |
reason | string | — |
findings | array of object | — |
findings[].ruleId | string | — |
findings[].ruleName | string | — |
findings[].action | string | — |
findings[].via | string | — |
findings[].detectorId | string | — |
findings[].count | integer | — |
findings[].fields | array of string | — |
redacted | string or null | The payload as a model would receive it, when the verdict is redact |
scanned | object | — |
scanned.chars | integer | — |
scanned.truncated | boolean | — |
scanned.ms | number | — |
degraded | boolean | The engine failed and fell back to the strict answer |
evaluatedRules | integer | — |
brokenDetectors | array of string | — |