Ontology API
Reference for the 13 Ontology 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 |
|---|---|---|
| List ontology objects | GET /ontology/objects | ontology:read |
| Describe one object | GET /ontology/objects/{key} | ontology:read |
| Describe an object and/or set its curation flags | PATCH /ontology/objects/{key} | ontology:write |
| Remove an object's curated entry | DELETE /ontology/objects/{key} | ontology:write |
| Search the business glossary | GET /ontology/glossary | ontology:read |
| Define or update a business term | PUT /ontology/glossary | ontology:write |
| Remove a business term | DELETE /ontology/glossary | ontology:write |
| Batch ontology operations | POST /ontology/ops | ontology:write |
| Read the discovered-objects catalog | GET /ontology/discovery | ontology:read |
| Re-introspect the organization's live data sources | POST /ontology/discovery/refresh | ontology:write |
| Draft object descriptions and glossary terms with AI | POST /ontology/infer | ontology:write |
| Read the business profile | GET /ontology/business-profile | ontology:read |
| Update business profile fields | PUT /ontology/business-profile | ontology:write |
List ontology objects
GET /ontology/objects
The organization's semantic layer: apps, managed-database tables, workflow tables, integration entities and workflow output datasets, with whatever business meaning has been curated for them.
Authorization: scope ontology:read.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | No | Free-text filter over keys, labels, descriptions and field names |
status | "all" or "needs" or "review" or "verified" | No | — |
source | "all" or "inferred" or "integration" or "chat" or "user" | No | Filter by description provenance |
kind | "all" or "app" or "managed-db" or "integration" or "workflow-output" or "tenant-db" | No | Rejected with 400 if not one of these — an unrecognised kind would otherwise return an empty page that reads as "you have none". |
include_hidden | boolean | No | Include entries a curator has hidden |
page | integer | No | — |
page_size | integer (≤ 100) | No | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
objects | array of OntologyObjectRow | — |
page | Page | — |
Errors 400, 403 (INSUFFICIENT_SCOPE). See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/ontology/objects" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Describe one object
GET /ontology/objects/{key}
Curated meaning merged over the live schema, with joins and per-field detail.
Authorization: scope ontology:read.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Registry key, e.g. app::deals or managed-db:3:orders. Keys contain no slashes or reserved characters, and : is legal in a path segment, so it may be sent raw or percent-encoded. |
Response 200 OK
data is OntologyObject:
| Field | Type | Description |
|---|---|---|
found | boolean | — |
key | string | — |
label | string | — |
description | string or null | — |
grain | string | — |
primaryKey | array of string | — |
alsoCalled | array of string | — |
sensitivity | "public" or "internal" or "financial" or "pii" | — |
classifications | array of string | — |
approxRows | integer | — |
joins | array of object | Relationships to other objects |
joins[].from | string | — |
joins[].to | string | — |
joins[].cardinality | string | — |
joins[].confirmed | boolean | True for foreign keys and human-drawn joins |
possibleJoins | array of object | Guessed from column naming — verify before relying on them |
schemaFields | object | Per-column type, meaning, sensitivity and value dictionary |
glossaryTerms | array of string | — |
Errors 400 (INVALID_OBJECT_KEY), 404 (OBJECT_NOT_FOUND). See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/ontology/objects/<key>" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Describe an object and/or set its curation flags
PATCH /ontology/objects/{key}
Descriptive fields and flags are applied as ONE atomic batch: an unrecognised classification tag or sensitivity level rejects the whole request rather than half-applying it.
PROVENANCE: an API key writes at user rank, the highest, so its text outranks inference and chat capture. Requests arriving from an in-product agent write at chat rank instead, and cannot overwrite what a person typed.
GOVERNANCE MARKINGS ARE RANK-GUARDED SEPARATELY. flags.sensitivity and flags.classifications (and their per-field twins) may be changed or cleared only by a writer at or above the rank that last set them. A lower-ranked writer may ADD a classification tag but never remove one, and may fill an empty sensitivity slot but never downgrade a marking — a tag that silently disappears leaves every rule gating on it looking armed while matching nothing.
Authorization: scope ontology:write.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Registry key, e.g. app::deals or managed-db:3:orders. Keys contain no slashes or reserved characters, and : is legal in a path segment, so it may be sent raw or percent-encoded. |
Request body (application/json, optional)
| Field | Type | Required | Description |
|---|---|---|---|
label | string | No | — |
description | string | No | Empty string clears it (only user rank may clear) |
grain | string | No | — |
refreshCadence | string | No | — |
primaryKey | array of string | No | — |
aliases | array of string | No | — |
links | array of object | No | — |
fieldDescriptions | object | No | — |
fieldValues | object | No | REPLACES a field's whole value list — resend siblings or they are dropped |
fieldSensitivity | object | No | — |
fieldClassifications | object | No | — |
flags | object | No | — |
flags.hidden | boolean | No | — |
flags.includeInPrompt | boolean | No | — |
flags.sensitivity | "public" or "internal" or "financial" or "pii" | No | — |
flags.classifications | array of string | No | — |
flags.noSample | boolean | No | Exclude this object from deep-scan row profiling |
flags.verified | boolean | No | — |
flags.ownerUserId | integer | No | — |
Response 200 OK
data is RegistryOpResult:
| Field | Type | Description |
|---|---|---|
applied | array of string | — |
skipped | array of object | — |
skipped[].op | string | — |
skipped[].target | string | — |
skipped[].reason | string | — |
skipped[].detail | string | — |
Errors 400, 403 (INSUFFICIENT_SCOPE), 409, 422. See Errors, pagination and limits.
Example request
curl -X PATCH "https://vantage.intuidy.com/api/v1/ontology/objects/<key>" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"<label>"}'Remove an object's curated entry
DELETE /ontology/objects/{key}
Removes CURATION only. A still-connected source surfaces the object again on the next discovery scan, undescribed.
Authorization: scope ontology:write.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Registry key, e.g. app::deals or managed-db:3:orders. Keys contain no slashes or reserved characters, and : is legal in a path segment, so it may be sent raw or percent-encoded. |
Response 200 OK
Errors 403. See Errors, pagination and limits.
Example request
curl -X DELETE "https://vantage.intuidy.com/api/v1/ontology/objects/<key>" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Search the business glossary
GET /ontology/glossary
Terms are addressed by the term query parameter rather than a path segment: they are user-authored free text and routinely contain / and %.
Authorization: scope ontology:read.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | No | Free-text search across terms, aliases, definitions and calculations |
term | string | No | Exact term (case-insensitive) — for looking up a single item |
category | "metric" or "entity" or "process" or "acronym" | No | — |
status | "draft" or "approved" or "deprecated" | No | — |
include_hidden | boolean | No | — |
page | integer | No | — |
page_size | integer (≤ 100) | No | — |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
terms | array of GlossaryTerm | — |
page | Page | — |
Errors 400. See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/ontology/glossary" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Define or update a business term
PUT /ontology/glossary
Authorization: scope ontology:write.
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
term | string | Yes | — |
definition | string | No | Empty string clears it (only user rank may clear) |
calculation | string | No | — |
category | "metric" or "entity" or "process" or "acronym" | No | — |
aliases | array of string | No | — |
relatedObjects | array of string | No | — |
examples | array of string | No | — |
notToBeConfusedWith | array of string | No | — |
flags | object | No | — |
flags.hidden | boolean | No | — |
flags.status | "draft" or "approved" or "deprecated" | No | — |
flags.supersededBy | string | No | — |
Response 200 OK
Errors 400, 403, 422. See Errors, pagination and limits.
Example request
curl -X PUT "https://vantage.intuidy.com/api/v1/ontology/glossary" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"term":"<term>"}'Remove a business term
DELETE /ontology/glossary
Authorization: scope ontology:write.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
term | string | Yes | — |
Response 200 OK
Errors 400, 403. See Errors, pagination and limits.
Example request
curl -X DELETE "https://vantage.intuidy.com/api/v1/ontology/glossary" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Batch ontology operations
POST /ontology/ops
The bulk operation, for loading or migrating a semantic layer. Accepts either an op list or any single-action shape. ATOMIC: an unrecognised gating value rejects the whole batch. Maximum 200 operations per request.
Authorization: scope ontology:write.
Request body (application/json)
object or object
Response 200 OK
data is RegistryOpResult:
| Field | Type | Description |
|---|---|---|
applied | array of string | — |
skipped | array of object | — |
skipped[].op | string | — |
skipped[].target | string | — |
skipped[].reason | string | — |
skipped[].detail | string | — |
Errors 400, 403, 409, 422. See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/ontology/ops" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Read the discovered-objects catalog
GET /ontology/discovery
Serves the CACHED catalog (6h TTL) and never forces a rebuild — a scan opens live connections to the organization's databases, so it lives behind POST /ontology/discovery/refresh.
Authorization: scope ontology:read.
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
objects | object | — |
errors | array of object | — |
generated_at | string (date-time) | — |
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/ontology/discovery" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Re-introspect the organization's live data sources
POST /ontology/discovery/refresh
Side-effecting and billed. deep: true additionally profiles column VALUES, reading real rows — it is throttled harder, counts against both windows, and honours the noSample / pii exclusions the registry flags declare. Throttle buckets are shared with the Ontology UI, so an organization gets the advertised ceiling once, not once per access method.
Authorization: scope ontology:write.
Request body (application/json, optional)
| Field | Type | Required | Description |
|---|---|---|---|
deep | boolean | No | Default false |
include_catalog | boolean | No | Return the full catalog as well as the counts |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
deep | boolean | — |
objects | integer | — |
errors | array of object | — |
generated_at | string | — |
Errors 403, 429 (RATE_LIMITED). See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/ontology/discovery/refresh" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"deep":"<deep>"}'Draft object descriptions and glossary terms with AI
POST /ontology/infer
COSTS TOKENS. Two-phase: send dryRun: true to get proposed operations without persisting, then POST the approved subset back as ops to apply them. Everything lands at inferred rank with no user attribution, so a draft can never outrank text a person wrote. Only the DRAFTING phase counts against the enrichment throttle — an accept round-trip must not burn budget the caller already spent producing the drafts.
Authorization: scope ontology:write.
Request body (application/json, optional)
| Field | Type | Required | Description |
|---|---|---|---|
scope | "objects" or "glossary" or "all" | No | Default "all" |
keys | array of string | No | Limit enrichment to these objects |
includeSamples | boolean | No | Opt-in. Reads a few real rows to feed the model, honouring the registry's noSample/pii exclusions. |
dryRun | boolean | No | Default false |
ops | array of object | No | Approved drafts from a previous dry run. Only updateObject and defineTerm are accepted here. |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
dryRun | boolean | — |
ops | array of object | — |
applied | array of string | — |
skipped | array of object | — |
draftedObjects | integer | — |
draftedTerms | integer | — |
Errors 403, 422, 429 (RATE_LIMITED). See Errors, pagination and limits.
Example request
curl -X POST "https://vantage.intuidy.com/api/v1/ontology/infer" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"scope":"<scope>"}'Read the business profile
GET /ontology/business-profile
The third half of the organization's semantic layer alongside objects and the glossary: who the company is, what it sells, its customers, KPIs and terminology. Returns the profile document with per-field provenance, the field registry (render or validate field keys without hardcoding them), and the fields still unknown.
Authorization: scope ontology:read.
Response 200 OK
data is BusinessProfile:
| Field | Type | Description |
|---|---|---|
profile | BusinessProfileDoc | — |
fieldRegistry | array of object | Every field the profile can hold, with labels and hints |
fieldRegistry[].key | string | — |
fieldRegistry[].label | string | — |
fieldRegistry[].hint | string | — |
fieldRegistry[].multiline | boolean | — |
missingFields | array of object | Fields with no value yet |
missingFields[].key | string | — |
missingFields[].label | string | — |
missingFields[].hint | string | — |
Errors 403 (INSUFFICIENT_SCOPE). See Errors, pagination and limits.
Example request
curl -X GET "https://vantage.intuidy.com/api/v1/ontology/business-profile" \
-H "Authorization: Bearer $INTUIDY_API_KEY"Update business profile fields
PUT /ontology/business-profile
Merges fields into the stored profile under source-rank rules. PROVENANCE: an API key writes at user rank, like an edit in the profile UI; requests arriving from an in-product agent write at chat rank and can never overwrite what a person typed. An empty-string value clears a field (user-rank writers only); unknown field keys are reported in skipped, never guessed at. The onboarding confirm stamp is deliberately not settable here — it is a human consent bit.
Authorization: scope ontology:write.
Request body (application/json)
| Field | Type | Required | Description |
|---|---|---|---|
fields | object | Yes | fieldKey → value, e.g. {"industry": "Commercial HVAC"}. Valid keys come from the GET response's fieldRegistry. |
Response 200 OK
data fields:
| Field | Type | Description |
|---|---|---|
profile | BusinessProfileDoc | — |
applied | array of string | — |
skipped | array of object | — |
skipped[].field | string | — |
skipped[].reason | string | — |
Errors 400, 403. See Errors, pagination and limits.
Example request
curl -X PUT "https://vantage.intuidy.com/api/v1/ontology/business-profile" \
-H "Authorization: Bearer $INTUIDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fields":"<fields>"}'Objects
BusinessProfile
The GET payload — the profile document plus the field registry and the fields still unknown.
| Field | Type | Description |
|---|---|---|
profile | BusinessProfileDoc | — |
fieldRegistry | array of object | Every field the profile can hold, with labels and hints |
fieldRegistry[].key | string | — |
fieldRegistry[].label | string | — |
fieldRegistry[].hint | string | — |
fieldRegistry[].multiline | boolean | — |
missingFields | array of object | Fields with no value yet |
missingFields[].key | string | — |
missingFields[].label | string | — |
missingFields[].hint | string | — |
BusinessProfileDoc
The stored profile document, with per-field provenance.
| Field | Type | Description |
|---|---|---|
version | integer | — |
confirmedAt | string (date-time) or null | When a person marked the profile reviewed, in the UI |
confirmedBy | integer or null | — |
fields | object | fieldKey → stored entry with provenance |
GlossaryTerm
| Field | Type | Description |
|---|---|---|
term | string | — |
definition | string or null | — |
definitionSource | "inferred" or "integration" or "chat" or "user" | — |
category | "metric" or "entity" or "process" or "acronym" | — |
status | "draft" or "approved" or "deprecated" | — |
aliases | array of string | — |
calculation | string | — |
relatedObjects | array of string | — |
supersededBy | string | — |
hidden | boolean | — |
OntologyObject
Full detail for one object — curated meaning merged over the live schema.
| Field | Type | Description |
|---|---|---|
found | boolean | — |
key | string | — |
label | string | — |
description | string or null | — |
grain | string | — |
primaryKey | array of string | — |
alsoCalled | array of string | — |
sensitivity | "public" or "internal" or "financial" or "pii" | — |
classifications | array of string | — |
approxRows | integer | — |
joins | array of object | Relationships to other objects |
joins[].from | string | — |
joins[].to | string | — |
joins[].cardinality | string | — |
joins[].confirmed | boolean | True for foreign keys and human-drawn joins |
possibleJoins | array of object | Guessed from column naming — verify before relying on them |
schemaFields | object | Per-column type, meaning, sensitivity and value dictionary |
glossaryTerms | array of string | — |
OntologyObjectRow
Summary row for one object in the semantic layer.
| Field | Type | Description |
|---|---|---|
key | string | <sourceType>:<sourceId>:<entity>, e.g. app::deals, managed-db:3:orders |
kind | string | — |
label | string | — |
described | boolean | Whether a business description has been written for it |
description | string | — |
descriptionSource | "inferred" or "integration" or "chat" or "user" | Provenance rank. Higher ranks are never overwritten by lower ones. |
grain | string | What ONE ROW represents |
sensitivity | "public" or "internal" or "financial" or "pii" | — |
classifications | array of string | Governance tags; data rules match on these |
hidden | boolean | — |
verified | boolean | — |
verificationStale | boolean | — |
orphaned | boolean | Curated but its underlying source no longer exists |
source | string | — |
linkCount | integer | — |
Page
| Field | Type | Description |
|---|---|---|
page | integer | 1-based page number, clamped into range |
page_size | integer | — |
total | integer | — |
page_count | integer | — |
RegistryOpResult
| Field | Type | Description |
|---|---|---|
applied | array of string | — |
skipped | array of object | — |
skipped[].op | string | — |
skipped[].target | string | — |
skipped[].reason | string | — |
skipped[].detail | string | — |