Entity curation API
The entity curation API lets applications create and curate catalog entities, maintain shared vocabulary values such as tags and domains, and read the active entity catalog.
All endpoints require authentication and return the standard DataDios response envelope:
{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {}
}
A refused request has STATUS: "FAIL" and a machine-readable code in DATA.reason. Applications
should branch on DATA.reason, never on the text in MESSAGE.
Entity references use the public shape {guid, name}. Responses do not expose internal
identifiers, relationship keys, or search fields. Attributes are addressed and returned by name
within their owning entity type.
Write entities
| Method and path | Purpose | Success status |
|---|---|---|
POST /entities | Create an entity within an existing entity type | 201 when created; 200 when the name already exists |
PATCH /entities/{guid}/attributes | Set or clear attribute values on an entity | 200 |
POST /entities/vocabulary | Create a vocabulary value, such as a tag, domain, or environment; optional catalog_id (create inside a catalog) | 201 when created; 200 when the value already exists |
PATCH /entities/{guid}/name | Rename a user-created entity or vocabulary value | 200 |
PATCH /entities/{guid}/parent | Move a user-created entity under another parent, or to the root | 200 |
DELETE /entities/vocabulary/{guid} | Remove a vocabulary value from every entity and delete it | 202 |
DELETE /entities/attributes/{type_guid}/{name} | Withdraw an attribute from an entity type | 202 |
POST /entities/curation-jobs | Apply attribute values across many entities | 202 |
Create an entity
{
"entity_type": "<entity type guid>",
"name": "Customer Orders",
"attributes": {
"domain": ["Finance"],
"tags": ["PII", "GDPR"]
}
}
POST /entities is create-or-get, not create-or-update. Names are compared after trimming spaces
and ignoring letter case. If the name already exists, the API returns that entity with
"created": false and writes nothing.
One case does not return the existing entity: if the name you supplied is one that another value
was renamed onto, the create is refused with 409 name_already_in_use. A value keeps its
original identity through a rename, so a value created as "PII" and renamed to "Sensitive" is still
identified as "PII" — creating "Sensitive" would therefore mint a second, separate value displaying
the same text in the same type. The refusal is what prevents that. Use the existing value instead
of creating a new one.
The reverse also follows from the same rule: creating "PII" after that rename returns the same
value with "created": false, and its name in the response reads "Sensitive" — the name you
asked for identified it, and the response reports what it is called now. Match on the returned
guid, not on the name you sent.
From the DataDios release after v1.13.0, a user-created name is unique per parent, not per type. Send
parent with the create to put the entity under another entity:
{
"entity_type": "<Term type guid>",
"name": "Revenue",
"parent": "<guid of the Finance glossary>"
}
A second "Revenue" under another glossary is a separate entity. A name used as a reference value or a filter value finds the entity with no parent. Refer to an entity that has a parent by its guid.
The parent must follow the type's parent rule (see
Say where a type's entities may sit).
A parent of a type the rule does not list is refused with 400 parent_not_allowed. So is an entity
type row as the parent. It is refused with 400 parent_required when the rule
needs a parent and none was sent. It is refused with 400 hierarchy_too_deep past 10 ancestors.
From the DataDios release after v1.13.0, a name may be up to 256 characters. A longer name is refused
with 400 value_too_long, and the message names the field and the limit. The same limit applies to a
vocabulary value and to a rename. In a rare case a shorter name is also refused with 400 value_too_long:
lower-casing makes a few letters, such as "İ", two characters long, so a long name made of them, under a
parent, can give a stored key over 512 characters.
If a create request includes attributes, parent, sub_type, catalog_id or lineage_graph but finds an existing entity, the
request is refused with 409 entity_already_exists. So sending the "Revenue" example above a second
time is refused. Use PATCH /entities/{guid}/attributes to update an entity that may already exist.
To change its parent, use PATCH /entities/{guid}/parent (see Move an entity).
From the DataDios release after v1.13.0, send catalog_id, the guid of a catalog, to create the
entity inside that catalog. The name is then unique per catalog, and the same name in another catalog,
or outside any, is a separate entity. See Create inside a catalog.
From the DataDios release after v1.13.0,
entities of a type DataDios manages, such as dashboard, can't be created through this API. The
request is refused with 409 type_instances_managed, because DataDios adds those entries itself
(see Dashboards in the catalog). You can still set
their attributes. When you set an attribute that refers to entities by name, a
name of a managed type must be one that already exists: naming a dashboard that doesn't exist is
refused with the same 409 type_instances_managed, rather than creating it.
Set or clear attributes
{
"attributes": {
"tags": ["PII"],
"cost_center": []
}
}
An empty list clears that attribute. An attribute omitted from the request is left unchanged. The operation is all-or-nothing: if one value is refused, nothing in the request is written.
A reference value can be a name or an entity guid. From the DataDios release after v1.13.0, the guid of a discovered entity, such as a table or a column, links that entity:
{
"attributes": {
"used_by": ["<guid of the orders table>"]
}
}
A guid that names no entity is refused with 404 referent_not_found, and nothing is created. A guid
of an entity whose type is not in the attribute's allowed_ref_types is refused with
400 ref_type_mismatch. A name works only when the attribute allows one type. With several allowed
types, a name is refused with 400 ref_name_needs_one_type. A name finds only an entity with no
parent. So a name never works when the one allowed type needs a parent: creating the entity is
refused with 400 parent_required. The same rules apply to bulk curation.
Automatic classification and the source field
The built-in classification attribute is multi-valued, and each of its values carries a source:
either manual or auto. Both kinds sit on the same column side by side — they never compete for
one slot, so adding one never removes the other.
manual— every value a steward writes, whether throughSet or clear attributes, bulk curation, or the catalog's editable cell. Any value you create through this API ismanual; you do not setsourceyourself.auto— values the profiler writes after it classifies a column, for examplepii-email-addressfor a detectedEMAIL_ADDRESS, ormoneyfor a spaCy content match (a Presidio/pattern result keeps thepii-prefix, a content result does not; both are lowercase-hyphenated). Only the profiler writesautovalues: it adds or refreshes the ones it still detects and removes the ones it no longer detects on the next profiling run.
A write through this API only ever touches manual values. Clearing the classification attribute,
or omitting an auto value from a Set or clear attributes request, does not remove that
auto value — the profiler owns it, and a steward cannot edit or remove it here. To stop a column
from carrying an auto label, change what the profiler detects; the label disappears on the next
profiling run. The profiler never touches a manual value in return. Every classification value
that existed before this source field was introduced is treated as manual.
Person fields
Every system entity type carries three person fields alongside the other platform attributes. They hold a
DataDios user's guid as text, not an entity, and GET /entities/types/{guid}/attributes lists them
with the other attributes. A type you create yourself, such as Employee, carries only owner_by_person:
it leaves out same_as and same_as_by_admin, and also owner and member_of, which the scan fills only
on what it discovers. On such a type a request that names one of those four gets
404 attribute_not_found, as for any attribute the type does not have.
| Field | Who can write it | What it holds |
|---|---|---|
owner_by_person | Any user | The guid of the DataDios user who owns the entity |
same_as | The scan only | The user the scan matched to this entity's source account |
same_as_by_admin | A tenant admin only | The user an admin says the account is, or "none" for "not the same person" |
Each value of owner_by_person and same_as_by_admin must be the guid of a user in your own
tenant. A guid that belongs to no user, or to a user of another tenant, is refused with
400 person_not_in_tenant ("Person not found"); the two cases give the same answer on purpose.
"none" is the one value that is not a guid, and only same_as_by_admin accepts it.
same_as is written by the scan alone, like owner and member_of. On a system type, a request that
sets, adds to, removes from or clears any of them is refused with 400 scan_only, whatever the values are.
The same refusal applies to account_read and account_read_at on a data source, which record the scan's
last read of the source's accounts, and to account_status and source_email on an account.
On a system type, a request from a user who is not a tenant admin that sets, adds to, removes from or
clears same_as_by_admin is refused with 403 not_admin. This includes clearing it, so only an admin can
undo an admin's decision.
Write into another user's catalog
Each user has their own catalog. A tenant admin can write the person fields in another user's catalog
by sending owner_id, the user's id, in the JSON body of PATCH /entities/{guid}/attributes and of
POST /entities/curation-jobs:
{
"owner_id": "<user id>",
"attributes": {
"owner_by_person": ["<user guid>"]
}
}
The entity guid, and every guid in a bulk request, is then looked up in that user's catalog. The
rules for owner_id:
- Only
owner_by_personandsame_as_by_admincan be written this way. Any other attribute in the request is refused with400 invalid_request, and nothing is written. - The user must be in the same tenant as the admin. A user that does not exist and a user of another
tenant both give
404 source_not_found("Source owner not found"). - A caller who is not a tenant admin is refused with
403 not_admin. Sending your own id is the same as leavingowner_idout. owner_idgoes in the body. In the URL, as?owner_id=, it is refused with400 invalid_request, because the request would otherwise land in your own catalog.- A blank
owner_idis refused with400 invalid_request. Leave the field out to write to your own catalog.
A bulk job started with owner_id is tracked the same way as any other: poll
POST /async_status_check with the request_id and the job type entity_bulk_curate.
Create or rename a vocabulary value
Create a value:
{
"entity_type": "<tag type guid>",
"name": "PII"
}
Rename a value:
{
"name": "Sensitive PII"
}
PATCH /entities/{guid}/name renames any entity you created, not only a vocabulary value — the
same call renames a tag value and an ordinary entity. Values discovered from a source and built-in
values keep their source-owned names and cannot be renamed. Two values of one type cannot be given
the same name: a rename onto a name another value already displays is refused with
409 name_already_in_use. From the DataDios release after v1.13.0, the check is per parent: only a
value under the same parent blocks the name.
Both paths ignore letter case. Creating "pii" where "PII" already exists returns the existing value rather than a second one. A new value is matched on its name with spaces trimmed and letter case ignored. A rename to "pii" next to a sibling named "PII" is refused. An older release compared renames exactly, so "PII" and "pii" can still sit side by side in one type. Treat a value's name as a label for people and its guid as its identity. Do not use letter case to tell two values apart.
A rename changes only the display name. Existing assignments, filters, and counts continue to refer to the same value.
A rename cannot be undone by the system and is not recorded in an audit trail. The previous name is returned in the rename response and is not stored anywhere afterwards, so keep it if you need it. Renaming also reorders the value within name-sorted listings: if you are paging through a list while a rename happens, the renamed row can appear twice or not at all on the pages you have left to fetch. Start the listing again if you need an exact set.
Move an entity
From the DataDios release after v1.13.0, PATCH /entities/{guid}/parent moves a user-created entity
under a new parent. Send null to move it to the root. The parent key is required.
{
"parent": "<guid of the Accounting glossary>"
}
{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {
"guid": "<entity guid>",
"parent": "<guid of the Accounting glossary>",
"in_data_source": false
}
}
Only the parent changes. The guid, the attribute values and every reference to the entity stay as
they are, and its children move with it. parent is the new parent's current guid. If you sent an
old guid of a renamed entity, the response gives the new one. in_data_source is true when the
new parent sits inside a data source. Deleting that data source then deletes the moved entity too.
| Reason | Status | When |
|---|---|---|
move_not_allowed | 409 | The entity was discovered from a source, or it is an entity type row |
parent_is_a_descendant | 409 | The new parent is the entity itself or one of its descendants |
name_already_in_use | 409 | The new parent already holds an entity of this type and sub-type with that name |
parent_not_allowed | 400 | The type's rule does not list the new parent's type, or the new parent is an entity type row |
parent_required | 400 | null was sent, and the type's rule needs a parent |
hierarchy_too_deep | 400 | The entity, or an entity below it, would have more than 10 ancestors |
entity_not_found | 404 | The entity or the new parent does not exist, or was retired while the move waited |
Delete a vocabulary value or withdraw an attribute
Both delete endpoints accept an optional confirmation body:
{
"confirm": true
}
When the operation affects more than 10,000 entities, omitting confirmation returns
409 confirmation_required. Only the JSON boolean true is accepted; the string "true" is not
confirmation. Operations affecting 10,000 or fewer entities do not require confirmation.
Withdrawing an attribute is irreversible and has no retention window. The attribute disappears
from reads and writes when the request is accepted, while stored values are removed in the
background. Attributes cannot be renamed or have their value type changed. The built-in domain,
env, tags, classification, and groups attributes cannot be withdrawn.
Curate many entities
{
"entity_guids": ["<entity guid>", "<entity guid>"],
"entity_type": "<entity type guid>",
"set_values": {
"domain": ["Finance"]
},
"delta_values": {
"tags": {
"add": ["PII"],
"remove": ["Legacy"]
}
}
}
set_values supplies the complete desired list for an attribute. delta_values adds and removes
individual values. An attribute can appear in only one of these request sections.
A bulk request accepts at most 25,000 entities and 10 attributes. If entity_type is supplied,
attribute names are resolved against that type and the built-in attributes. If it is omitted,
only built-in attributes are available.
A guid that no longer resolves is reported under DATA.skipped.entity_not_found, with a count and
a sample of up to 50 guids. It appears in the submit response and in the background job's status,
so losing the submit response does not lose the report. Entities skipped later because an attribute
does not apply or the entity was retired are added to the same place as the job runs. If no guid
resolves, the request is refused with 400 no_entities_resolved.
A tenant admin can add owner_id to this request. See
Write into another user's catalog.
Track background operations
The two delete endpoints and the bulk curation endpoint return 202 with DATA.request_id. Poll
the existing POST /async_status_check endpoint with:
{
"request_id": "<request id>",
"job_type": "entity_bulk_curate"
}
Use the job type that matches the submitted operation:
| Operation | job_type |
|---|---|
| Delete a vocabulary value | entity_vocabulary_delete |
| Withdraw an attribute | entity_attribute_withdraw |
| Curate many entities | entity_bulk_curate |
Large removals are processed in batches of 5,000. An entity updated at the same time can briefly remain filterable by the removed value; a background repair corrects that temporary state.
Read entities
| Method and path | Purpose | Success status |
|---|---|---|
POST /entities/filter | Filter one entity type by attribute values | 200 |
POST /entities/catalog | One name-sorted page spanning several entity types | 200 |
POST /entities/lookup | Read the rows for a list of guids you already hold | 200 |
POST /entities/info | Read schema drift and curated attributes for entities by guid | 200 |
POST /entities/facets | List values for one attribute or count named attribute/value pairs | 200 |
GET /entities?type={guid} | Browse active entities of one type | 200 |
GET /entities/{guid} | Read an active entity profile | 200 |
GET /entities/{guid}/children | List direct active children | 200 |
GET /entities/resolve/{guid} | Resolve a live guid or remembered rename | 200; unknown guid returns 404 |
Read endpoints return active entities only, with no request option to include missing or retired
entities. POST /entities/info is the exception: it answers for missing and retired entities too.
Review and audit views are separate from this API.
Filter entities
{
"entity_type": "<entity type guid>",
"terms": [
{
"attribute": "domain",
"values": ["Finance"]
},
{
"attribute": "tags",
"values": ["PII", "GDPR"],
"any": true
}
],
"page_size": 50
}
Terms combine with AND. Values within a term also combine with AND unless that term sets
"any": true, which changes only that term to OR. Every filter is scoped to entity_type because
the same attribute name can mean different things on different types.
A filter value can be a name or an entity guid, as a reference value can. From the DataDios release after v1.13.0, the guid of a discovered entity filters on that entity:
{ "attribute": "used_by", "values": ["<guid of the orders table>"] }
A guid that names no active entity is refused with 404 value_not_found. A name on an attribute
that allows several types is refused with 400 ref_name_needs_one_type.
Catalog entities
POST /entities/catalog is one name-sorted page spanning several entity types — the catalog
screen's table. It is not a widened filter: it has its own request shape and its own cursor kind.
{
"entity_types": ["<entity type guid>", "<entity type guid>"],
"terms": [{ "attribute": "domain", "values": ["Finance"] }],
"name_prefix": "orders",
"page_size": 50
}
From the DataDios release after v1.13.0, catalog_id limits the page to one catalog (see
Read inside a catalog). entity_types selects which types the page spans; an empty list means every type. terms filters
the same way POST /entities/filter does. name_prefix matches case-insensitively. text and
text_attrs search inside names and attribute values (see Search by text).
From the DataDios release after v1.13.0, name_contains matches text anywhere in the name, also case-insensitively, and combines with
name_prefix and terms; POST /entities/facets takes it too, so the rail counts the same match
set. Each query it runs has a 10-second limit, and a search past it is refused with
400 name_search_timed_out. It does not combine with status, all_owners or text
(400 invalid_request): send name_contains to search names, and text when attribute values must
match too. A name_contains page lists the best matches first: the exact name (ignoring case), then
names that start with the text, then the rest, each in name order. Its next_cursor follows that
order and works only for a name_contains read; a cursor from a read without it is refused with
400 invalid_cursor, and the other way round. All fields are optional.
From the DataDios release after v1.13.0, four entity types no longer exist: View,
Materialized view, Procedure and Function. Objects of those kinds are now catalogued as
Table, and each row carries its own kind in sub_type — view, materialized view,
procedure or function. A plain table's sub_type is null.
The same arrangement already applied to files, which share one file type and carry their
extension in sub_type.
What changes for you:
- Listing entity types returns four fewer. A saved request naming one of their guids is answered
404 entity_type_not_found. - Selecting Table in the catalog now returns views and routines alongside tables. Use
sub_typeto tell them apart, or to filter client-side. - An entity keeps its guid and its name. Only its type and
sub_typechange. - Attributes declared on Table are untouched, and so are the built-in
domain,env,tags,classificationandgroupsattributes, which every type shares.
Every attribute you declared on View, Materialized view, Procedure or Function is deleted by the upgrade, together with every value recorded against it and every label built from those values. An attribute belongs to one entity type, so an attribute declared on View has no owner once the type is gone. This is irreversible and has no retention window.
Read the values out before you move to the release after v1.13.0: POST /entities/catalog over
each of the four types returns their rows with the curated values. Afterwards you can declare the
same attribute on Table and record the values again from what you saved.
The response carries two fields no other read returns, alongside the usual entities and
next_cursor:
{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {
"entities": [{ "guid": "<entity guid>", "name": "orders" }],
"count": 1250,
"count_capped": true,
"matched_definitions": [
{ "guid": "<attribute def guid>", "name": "domain" }
]
}
}
count is the total matching the request, capped at a fixed ceiling; count_capped tells you
whether the number is exact or a floor. matched_definitions lists every attribute definition a
filter term's attribute name matched — useful because the same attribute name can belong to more
than one type when the request spans several types, and a caller seeing only rows cannot tell which
definition it filtered on.
Sending more than 10,000 entity type guids in one request is refused with
400 invalid_request ("Malformed request body"), and an invalid name_prefix with
400 invalid_name_prefix, and an invalid name_contains with 400 invalid_name_contains.
A request with no type selection, no filter term and no name_prefix is the catalog's landing
state: it reads every type the schema has, and is answered normally.
Filter by source or by system kind. From the DataDios release after v1.13.0, ds_names keeps the objects of the data sources you name.
system_kinds keeps the objects of your data sources of those kinds: database, warehouse,
data_lake or app. A source's kind comes from its connector: a folder or object store (such as
Amazon S3 or Azure Blob) is data_lake, a warehouse connector (such as BigQuery, Redshift or
Databricks) is warehouse, a database connector (such as Oracle or PostgreSQL) is database, and any
other connector is app. Send both and only sources that match both are kept. Either filter drops the
rows no data source owns: vocabulary values, system rows and entities you created yourself.
system_kinds does not combine with status (400 invalid_request). Both filters are part of the
cursor: keep them the same from page to page.
{
"entity_types": ["<entity type guid>"],
"ds_names": ["Finance warehouse"],
"system_kinds": ["warehouse"]
}
Each row also carries source, the data source it came from, or null when no data source owns it:
{ "guid": "<entity guid>", "name": "orders", "source": { "name": "Finance warehouse", "ds_type": "BigQuery Database", "system_kind": "warehouse" } }
An all_owners read (below) returns no source on its rows.
Search by text
From the DataDios release after v1.13.0, text finds entities by a piece of their name, or of
the text in some of their attributes:
{
"entity_types": ["<entity type guid>"],
"text": "revenue",
"text_attrs": ["description"]
}
textis 1 to 256 characters, counting any spaces around it. It matches anywhere in the name, ignoring letter case. Spaces around it are ignored. Atextthat is only spaces, or holds a NUL character, is refused with400 invalid_text. An emptytextis refused with400 invalid_request, and atextover 256 characters with400 value_too_long.text_attrsnames at most 5 attributes, each 1 to 128 characters. An entity also matches when one of those attributes holds a text value that containstext. Each name must be a string attribute of one of the selected types (or one that every type carries), and must not be withdrawn. Otherwise the request is refused with400 invalid_text. More than 5 names, ortext_attrswithouttext, is refused with400 invalid_request.textgoes withterms,name_prefixand the other filters. It does not go withall_owners.
No index serves a search inside a name, so each scan reads at most 25,000 entities, shared by the selected types (the first page runs two scans: the page and its count). Past 250 selected types, each type is still read for at least 100 entities. When the limit is reached before the page is full:
- The page can be short, or empty, and still carry
next_cursor. Keep paging untilnext_cursoris absent. An empty page does not mean there are no more matches. countis a lower bound, andcount_cappedistrueeven whencountis below 500.
Business glossary terms
From the DataDios release after v1.13.0, DataDios holds a business glossary in two built-in entity
types, business_category and business_term. They add no routes. You create, link and find terms
with the routes above. Read their types and attributes in
Glossary types, and get each type's guid from
GET /entities/types, by name.
Create a category, at the root or under another category with parent:
{
"entity_type": "<business_category type guid>",
"name": "Finance",
"parent": "<guid of another category>"
}
Create a term. A term takes no parent; it joins a category through glossary_category:
{
"entity_type": "<business_term type guid>",
"name": "Net revenue",
"attributes": {
"glossary_definition": ["Revenue after returns and discounts"],
"glossary_category": ["<guid of the Finance category>"],
"glossary_status": ["Draft"]
}
}
Use the category's guid, not its name: a name finds only an entity with no parent, so a category that sits under another one can only be named by guid.
Link a table or a column to its terms with PATCH /entities/{guid}/attributes. The list is the
whole set of terms the entity carries, and an empty list clears it:
{ "attributes": { "glossary_terms": ["<guid of the Net revenue term>"] } }
Find the terms with POST /entities/catalog, sending the term type's guid in entity_types.
Find the tables and columns that use a term with a terms filter on glossary_terms over the
table and column types:
{
"entity_types": ["<table type guid>", "<column type guid>"],
"terms": [{ "attribute": "glossary_terms", "values": ["<guid of the Net revenue term>"] }]
}
A glossary_status other than Draft, Approved or Deprecated is refused with
400 not_in_allowed_values.
A term sent with a parent, or a category whose parent is not a category, is refused with
400 parent_not_allowed.
A glossary_terms or glossary_related value that is not a term is refused with
400 ref_type_mismatch.
Read source accounts for review
The same POST /entities/catalog reads the account type by review status. Send the account type's guid alone in entity_types;
any other type, or more than one, is refused with 400 invalid_request.
{
"entity_types": ["<account entity type guid>"],
"status": "needs_review",
"all_owners": true,
"ds_names": ["Finance warehouse"],
"sub_types": ["user"],
"name_prefix": "tb",
"page_size": 50
}
| Field | Meaning |
|---|---|
status | One of needs_review, linked or not_a_person. needs_review is an account with neither same_as nor same_as_by_admin. linked has either one (same_as_by_admin other than "none"). not_a_person has same_as_by_admin set to "none". Adds the row fields below. |
all_owners | Tenant admin only. Reads the accounts of the tenant's source owners as one list. Needs status. Not with owner_id or terms. A tenant with over 5,000 active users is refused with 400 invalid_request ("read one owner at a time"). Owners that cannot be opened are skipped, and a request stops after opening 300 owners, so a page can end early; keep paging while next_cursor is present. |
owner_id | Tenant admin only. Reads one owner's accounts, as in Write into another user's catalog. Not with all_owners. |
ds_names | Keeps accounts of these data sources, by name. Without status it keeps objects instead (see Catalog entities). At most 50 values, each 1 to 128 characters. |
sub_types | Keeps accounts of these kinds: user, role or group. Needs status. At most 50 values, each 1 to 128 characters. |
name_prefix | Keeps accounts whose name starts with this text, without regard to case. |
A caller who is not a tenant admin and sends all_owners is refused with 403 not_admin. A
combination the table rules out is refused with 400 invalid_request.
Each row has guid and name as in any catalog read, and these fields:
| Row field | Meaning |
|---|---|
status | needs_review, linked or not_a_person. |
source_email | The email the source reported for the account, in lower case. null when the source reported none, or when the account was scanned before this field existed and its source has not been scanned since. |
person | {guid, name} of the DataDios user the account is linked to, or null when status is not linked. The name reads Former user when that user is no longer active in your tenant. |
linked_by | admin or email when status is linked, otherwise null. An admin's choice wins over the scan's. |
candidates | [{guid, name}]: the tenant users who share this row's source_email, at most 5, in name order. Empty unless two or more users share the email. |
owner | With all_owners only: {id, name} of the user who owns the account's data source. Send that id as owner_id when you write to the account. |
{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {
"entities": [
{
"guid": "<entity guid>",
"name": "DATA_TEAM",
"status": "needs_review",
"source_email": "data-team@northwind.io",
"person": null,
"linked_by": null,
"candidates": [
{ "guid": "<user guid>", "name": "Aisha Khan" },
{ "guid": "<user guid>", "name": "Jordan Blake" }
]
}
],
"count": 3,
"count_capped": false,
"status_counts": {
"needs_review": { "count": 3, "capped": false },
"linked": { "count": 500, "capped": true },
"not_a_person": { "count": 1, "capped": false }
},
"next_cursor": "<opaque cursor>"
}
}
Counts. status_counts holds one capped count per status, each {count, capped}. A capped
count is a floor: the real number is at least that large. It comes on the first page only, so
keep it when you ask for the next page. count is the count for the status you asked for.
With all_owners there are no counts: count is null, count_capped is true and
status_counts is left out. To count one owner's accounts, send owner_id instead.
Paging. A status read looks at a bounded number of accounts per request, so a page can be
short or empty and still carry next_cursor. That means keep going, not the end. The list ends
only when next_cursor is absent. Send it in the X-Pagination-Cursor header, as described in
Browse and paginate. A cursor works only for the same status and owner it was issued for; any other gets
400 invalid_cursor. On any status read, the cursor is also tied to the same ds_names and sub_types;
only name_prefix is yours to keep the same from page to page.
To link an account, mark it as not a person, or undo either, write same_as_by_admin with
PATCH /entities/{guid}/attributes and the owner's owner_id
(see Person fields). Sending an empty list clears it, which is Undo in the app.
Look up entities by guid
POST /entities/lookup is the read to use when you already hold a set of entity guids and want
their current rows in one call — for example, guids you stored earlier or received from another
read. Send up to 500 guids in one request:
{ "guids": ["<guid>", "<guid>"] }
It answers with the same rows every other list read returns, and it is not paged: your guid list is the page, so no cursor comes back.
{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {
"entities": [{ "guid": "<entity guid>", "name": "orders" }],
"forwarded": {}
}
}
Three behaviours are worth knowing before you build on it:
- A guid that names no active entity is left out of the response, not treated as an error. There are several ordinary reasons for this, so treat an absent guid as normal rather than building a list of cases to guard against: cataloguing runs in the background, so an object can be visible elsewhere in the platform before its entity exists; the entity may since have been retired; and a data source shared with you is catalogued under its owner's account, not yours. Read the response by guid and show a row with no attributes when a guid is absent.
- Order is not preserved and repeated guids collapse. Match rows to your list by guid rather than by position.
- A renamed entity comes back under its new guid. If an entity has been renamed since you
stored its guid, the lookup follows the rename and returns the current row — under the new guid,
not the one you sent. The
forwardedmap in the response tells you which guid answered which request ({"<guid you sent>": "<guid that answered>"}), and is present even when empty. Check it for any guid you do not find among the returned rows.
Sending more than 500 guids is refused with 400 too_many_guids. An empty list is refused with
400 invalid_request, the same code any malformed body gets — the list is a required field, not a
value checked once the request is otherwise valid.
Read entity information
POST /entities/info answers "what do you know about these entities?" for guids you already hold.
It returns one result per guid: whether the guid still names an entity, and one entry per
information type you asked for in include. There are two types:
schema_drift— the schema changes the drift job recorded for that entity within the lastdays.curated_attributes— every attribute value the entity carries now, built-in and custom.
It has two modes:
summary, the default, takes up to 100 guids and returns one state and asummaryfor each.itemsstays empty. One call behind a table page; send more guids in batches.detailtakes exactly one guid and one information type and returns itsitemsa page at a time. The drill-down behind one row.
{
"guids": ["<guid>", "<guid>"],
"include": ["schema_drift", "curated_attributes"],
"mode": "summary",
"days": 30
}
{
"guids": ["<guid>"],
"include": ["schema_drift"],
"mode": "detail",
"days": 30,
"page_size": 50
}
| Field | Rule |
|---|---|
guids | Required. 1 to 100 distinct guids; repeats collapse. The format is not checked — a guid that names nothing comes back not_found, so one bad guid does not fail the batch. |
include | Required. The information types to return: schema_drift, curated_attributes. |
mode | summary (default) or detail. |
days | Whole number, 1 to 365, default 30. How far back schema_drift reads. curated_attributes ignores it. |
page_size | detail only. 1 to 100, default 50. A drift page can hold fewer items: it also stops once its diffs pass about 4 MB. Follow next_cursor; do not count items. |
X-Pagination-Cursor header | detail only. Send the previous response's next_cursor to get the next page. A cursor works only with the same guid, include and days. |
The response keys results by the guid you sent:
{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {
"results": {
"<guid>": {
"state": "resolved",
"entity": {
"guid": "<guid>",
"name": "orders",
"entity_type": "table"
},
"info": {
"schema_drift": {
"state": "has_data",
"reason": null,
"summary": {
"highest_impact": "HIGH",
"change_count": 20,
"latest_change_at": "2026-10-01T09:30:00"
},
"items": []
},
"curated_attributes": {
"state": "has_data",
"reason": null,
"summary": {
"value_count": 2,
"truncated": false,
"attributes": [
{
"attribute_name": "owner",
"ordinal": 0,
"value": "finance-team"
},
{
"attribute_name": "tags",
"ordinal": 0,
"value": "PII",
"reference": { "guid": "<tag guid>", "name": "PII" }
}
]
},
"items": []
}
}
},
"<old guid>": {
"state": "unresolved",
"reason": "renamed",
"new_guid": "<guid>"
},
"<unknown guid>": { "state": "unresolved", "reason": "not_found" }
}
}
}
In detail mode items is filled and DATA.next_cursor appears beside results while another
page exists. It is absent on the last page. Drift items come newest first:
"items": [
{
"version": 12,
"sync_time": "2026-10-01T09:30:00",
"inherited": false,
"object_id": "sales:public:orders",
"version_summary": { "...": "..." },
"object_details": { "...": "..." }
}
]
A data source's items are per-sync summaries — version, sync_time, inherited and
version_summary, with no object_id or object_details.
A column's change is recorded with its table, so a column's item is cut from the table's record:
{
"version": 12,
"sync_time": "2026-10-01T09:30:00",
"inherited": false,
"object_id": "sales:public:orders",
"version_summary": null,
"object_details": {
"diff_type": "update",
"meta_diff": {
"attributes": {
"AMOUNT": {
"is_diff": true,
"property_diff": { "DATA_TYPE": [true, "BIGINT", "INTEGER"] }
}
}
}
}
}
object_idis the table's, andobject_detailsholds this column's entry only, never its siblings'.- Each property is
[changed, new value, old value]. An added column has empty old values and a dropped column has empty new values. diff_typesays what happened to the table:update,insertordelete.inheritedistruewhen the table itself was added or dropped, so the column is listed without a change of its own. It isfalseeverywhere else.version_summaryis null, because the table's summary describes the whole table.
Reading a column through its table's records is limited to 10 seconds. If that read fails, the
columns in the request return error for schema_drift and every other entity keeps its answer.
A NUL character in a table's record comes back as U+FFFD in a column's item.
Some connectors record drift for the column itself. Those items come back as stored, like a
table's: the column's own object_id, its version_summary and its full object_details.
Guid states. Every guid gets a state, and unresolved carries a reason:
state | reason | Meaning | entity and info returned? |
|---|---|---|---|
resolved | none | An active entity | Yes |
unresolved | missing | Not found by the last sync; it may come back | Yes |
unresolved | retired | Gone | Yes |
unresolved | renamed | Renamed. new_guid is the current guid; ask again with it | No |
unresolved | not_found | No record: it never existed, its data source was deleted, or it is not catalogued yet | No |
Information states. Every information type answers with the same four states, and each type carries its own, so one type being unavailable does not affect the others in the same response:
state | Meaning |
|---|---|
has_data | The type holds something for this entity. summary is filled. |
no_data | The type holds nothing for this entity. summary is null. |
unavailable | The type cannot answer for this entity. reason says why. |
error | This type failed; other types are unaffected. |
For schema_drift:
state | reason | Meaning |
|---|---|---|
has_data | null | At least one drift record within days, not counting the baseline (see below). |
no_data | null | No drift record within days other than the baseline. |
unavailable | drift_not_supported | The connector has no drift support, or the entity belongs to no data source. |
unavailable | drift_not_scheduled | The data source has no drift schedule and no drift record within days, baseline included. Switch drift on from the Drift tab of the data source dialog. |
highest_impact is HIGH, MEDIUM, LOW, or null when no record carried an impact score.
For a column it is usually null: the impact is scored for the table as a whole, so it is not
reported on the column. A column's change_count adds one for each sync whose table record shows
a change to the column, including a later sync that added or dropped the table (the baseline sync
is not counted).
For curated_attributes, has_data means the entity carries at least one value and no_data
means it carries none. It is never unavailable.
- Each attribute is one value:
attribute_name,ordinal(its position within a multi-valued attribute) andvalue. A value that is another entity, such as a tag or a domain, also carriesreferencewith that entity'sguidandname. - In
summarymode the values are insummary.attributes. An entity with more than 200 values, or whose values weigh more than 40 KiB (attribute names, text, JSON and number values, and the names of referenced entities), returnstruncated: trueand an emptyattributes;value_countstill gives the total. Read that entity indetailmode. - A number value is a JSON number when that is exact: a whole number up to 2^53, or any value
a float holds without loss. Any other number is sent as decimal text: plain decimal text up to
40 characters, sign and decimal point included, such as
"12345678901234567890123456789012345678", and exponent form past that, such as"1E+5000". A number inside a JSON value is sent as stored. - A date value is ISO-8601 text in UTC with no offset, such as
"2026-10-01T10:00:00". Drift'ssync_timeandlatest_change_athave the same form. - In
detailmode the values are initems, ordered by attribute name, andsummaryholds onlyvalue_count. - A withdrawn attribute's values are left out.
- A value that points at an entity no longer active has a null
valueandreference. - Missing entities, and entities retired because they were dropped, still return their attributes. An entity retired by a rename returns none: its attributes moved to the entity it was renamed to.
A detail request for attributes, and one of the items it returns:
{
"guids": ["<guid>"],
"include": ["curated_attributes"],
"mode": "detail",
"page_size": 50
}
"items": [
{
"attribute_name": "tags",
"ordinal": 0,
"value": "PII",
"reference": { "guid": "<tag guid>", "name": "PII" }
}
]
Seven drift behaviours to know before you build on it:
no_dataforschema_driftis not proof that nothing changed. A record counts only for a sync that found a change (a data source's first sync is the baseline, see below).- A database or schema reads
has_datawhenever one of its tables changed. Itschange_countcan be 0 in that case. - Drift follows a rename. The new guid returns the history recorded under the old name.
- Missing and retired entities still return their drift, including the record of the drop.
- Drift recorded before it was linked to entities is linked by the upgrade. A record whose object is no longer listed in the data source stays hidden.
- The first drift sync of a data source is the baseline. It compares against nothing, so it
records every object as added, and those records do not count. An entity with only baseline
records reads
no_data, whether or not drift is scheduled, andchange_countandhighest_impactleave the baseline out. A table first seen in a later sync still counts as drift. The detail pages still list a baseline record next to a real change, so a column can show one more item than itschange_count. Adetailrequest for an entity with only baseline records readsno_dataand returns no items. - Only connectors that support drift answer. The rest return
unavailable.
If every information type you asked for fails, the whole request returns 500 internal_error
instead of an error state. So a request for one type never returns error.
More than 100 distinct guids is refused with 400 too_many_guids, and a cursor that is malformed
or was issued for a different guid, include or days with 400 invalid_cursor. Everything else
is 400 invalid_request: an unknown include, detail with more than one guid or more than one
include, a page_size or a cursor in summary mode, days outside 1-365, and a page_size
outside 1-100.
Read facets
List the values for one attribute:
{
"entity_type": "<entity type guid>",
"attribute": "tags",
"page_size": 50
}
Count a named set of attribute/value pairs:
{
"entity_type": "<entity type guid>",
"pairs": [
{
"attribute": "domain",
"value": "Finance"
},
{
"attribute": "tags",
"value": "PII"
}
]
}
The catalog rail sends attributes, a list of attribute names, and gets every named attribute's
values in one call. From the DataDios release after v1.13.0, each rail value also carries its
path, in the same form as a catalog row. Two values with one name can then be told apart:
{
"value": {
"guid": "<table guid>",
"name": "orders",
"path": "sales_db/public/orders",
"path_truncated": false
},
"count": 3
}
path_truncated is true when the path stops before the top: at a retired ancestor, at a missing
row, or at the limit of 10 ancestors.
From the DataDios release after v1.13.0, the rail takes the catalog's source filters too, ds_names and system_kinds, so its counts follow
the table. Send "sources": true and the answer also carries object counts per data source and per
system kind, most objects first:
{
"sources": {
"values": [{ "name": "Finance warehouse", "ds_type": "BigQuery Database", "system_kind": "warehouse", "count": 120 }],
"counts_partial": false
},
"system_kinds": { "values": [{ "kind": "warehouse", "count": 120 }], "counts_partial": false }
}
With a filter or a search active, these count the matching rows the rail tallies, and
counts_partial is true when there are more than that. With none, they count each of your data
sources' active objects of the selected types, and stop at 500 per source: counts_partial is then
true when any source has more. A source with no objects is left out. The counts have a 5-second
limit; past it, or on an error, they are left out and skipped contains "sources". The rest of the
rail is still answered. ds_names, system_kinds and sources need the attributes shape; with
attribute or pairs they are refused with 400 invalid_request.
From the DataDios release after v1.13.0, the rail also takes text and text_attrs, with the
rules in Search by text. Its counts cover the same entities the catalog page
shows for that search. counts_partial is true on a dimension when the search stopped at its
limit, so its counts are lower bounds. text is accepted only with attributes; with attribute
or pairs it is refused with 400 invalid_request.
A facet request must contain exactly one of attribute, attributes or pairs. The pair-count response echoes
the supplied attribute and value beside each count.
To count one set of entity types only, add "count_by_type": true to the rail request, with
attributes and entity_types (1 to 20 type guids). The counts then cover only those types, tallied
live and capped at 500. A dimension with counts_partial: true has counts that are a floor: show
them as "500+". A value first seen past the cap may be missing from the list. Without attributes,
or with no entity_types or more than 20, the request is refused with 400.
{
"entity_types": ["<entity type guid>"],
"attributes": ["domain", "tags"],
"count_by_type": true
}
Stored facet counts can temporarily be higher than the number of visible filter results. Counts include entities in the temporary missing state, while reads return active entities only. A zero-count facet value is still returned.
Browse and paginate
Browse one entity type with GET /entities?type={guid}. Filter, browse, children, and facet-value
responses use cursor pagination:
{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {
"entities": [
{
"guid": "<entity guid>",
"name": "orders"
}
],
"next_cursor": "<opaque cursor>"
}
}
next_cursor is omitted on the final page. Store it unchanged, then send it only in the
X-Pagination-Cursor request header on the next call:
X-Pagination-Cursor: <opaque cursor from the previous page>
Do not put cursors in a JSON body or query string; those forms are refused. Do not decode,
construct, modify, share between users, or reuse a cursor on another endpoint. A malformed,
truncated, modified, endpoint-foreign, or cross-user cursor returns 400 invalid_cursor.
The facet pair-count shape is not paginated. Supplying either page_size or
X-Pagination-Cursor with pairs returns 400 invalid_request.
Page size must be between 1 and 500. The API does not return a total result count.
Read a profile
GET /entities/{guid} returns the entity, its type and parent, and values grouped by attribute
name:
{
"STATUS": "SUCCESS",
"MESSAGE": "",
"DATA": {
"entity": {
"guid": "<entity guid>",
"name": "orders"
},
"type": {
"guid": "<entity type guid>",
"name": "table"
},
"parent": {
"guid": "<parent guid>",
"name": "public"
},
"attributes": {
"domain": [
{
"guid": "<domain guid>",
"name": "Finance"
}
],
"tags": [
{
"guid": "<tag guid>",
"name": "PII"
}
],
"score": [7]
}
}
}
type and parent are each null when that related row is retired; parent is also null for
a root entity. A retired referenced value is returned as null rather than exposing stale
identity information.
Read direct children
GET /entities/{guid}/children returns only the entity's direct active children. It does not
return ancestors, breadcrumbs, a recursive subtree, missing entities, or retired entities.
Resolve a guid
GET /entities/resolve/{guid} has two successful outcomes.
A live guid, or an old guid that forwards to a live renamed entity, returns:
{
"outcome": "entity",
"entity": {
"guid": "<entity guid>",
"name": "orders"
}
}
When a rename is remembered but its successor is no longer active, the response returns:
{
"outcome": "alias_memory",
"alias": {
"old_name": "orders_old",
"successor_guid": "<successor guid or null>",
"method": "<rename method>",
"established_at": "<timestamp>"
}
}
successor_guid remains available while the successor row exists, including when it is retired,
and is null only after that row is gone. An unknown guid returns 404 entity_not_found.
Remembered renames are resolved in one request; callers do not follow alias chains themselves.
From the DataDios release after v1.13.0, a confirmed rename also moves what points at the old
entity. Reference values that named orders_old name orders instead. So do attribute defaults.
User-created children of orders_old move under orders. A child stays where it is if orders
already has a child of the same type, sub-type and name.
Request rules and limits
Unrecognized fields and non-object JSON bodies are refused with 400 invalid_request; they are
not silently ignored. Other limits are also refusals, never silent truncation:
| Limit | Maximum |
|---|---|
| Filter terms | 50 |
| Values in one filter term | 50 |
| Named facet pairs | 50 |
| Guids in one lookup | 500 |
| Guids in one info request | 500 (distinct) |
| Items in one info detail page | 100 |
| Bulk entities | 25,000 |
| Attributes in one bulk request | 10 |
| Entity name length | 256 characters |
| Text value length | 1,000 characters |
| JSON value size | 16 KB |
| Number precision | 38 significant digits |
| Request body size | 8 MB |
Curated values cannot contain a NUL character.
Any text field over its maximum length is refused with 400 value_too_long, and the message names the
field and the limit.
Refusal codes
These lists cover the codes reachable through the endpoints on this page, not every refusal code the entity API has — a handful more belong to endpoints (attribute definitions, entity deletion, the review queue) outside this guide's scope.
400: Fix the request
invalid_request, invalid_cursor, invalid_page_size, invalid_filter_shape,
attribute_not_filterable, type_mismatch, not_in_allowed_values, cardinality_violation,
unknown_value_type, unknown_def, ref_type_mismatch, empty_value, too_many_values,
too_many_defs, def_in_both_request_shapes, no_entities_resolved, value_too_long,
value_too_large, number_too_precise, nul_byte_in_value, too_many_allowed_values,
too_many_guids, invalid_type_selection, invalid_name_prefix, invalid_name_contains, name_search_timed_out, invalid_text, scan_only,
person_not_in_tenant, ref_name_needs_one_type, parent_not_allowed, parent_required,
hierarchy_too_deep, parent_type_by_name, parent_rule_not_bulk, too_many_allowed_ref_types.
invalid_request also covers a misused owner_id: in the URL, blank, or sent with an attribute
other than owner_by_person and same_as_by_admin.
403: The caller may not do this
not_admin. The request needs a tenant admin: it sends owner_id for another user, or it
writes same_as_by_admin. The message is "Only a tenant admin can do this".
404: A named object does not exist
entity_not_found, entity_type_not_found, unknown_entity_type, attribute_not_found,
value_not_found, parent_not_found, def_not_found, referent_not_found,
source_not_found.
409: The target's state or references refuse the operation
entity_already_exists, confirmation_required, already_withdrawn,
system_def_not_withdrawable, not_a_vocabulary_value, attribute_withdrawn, entity_retired,
referent_retired, name_already_in_use, rename_not_allowed, move_not_allowed,
parent_is_a_descendant, parent_rule_in_use, parent_rule_on_system_type,
type_instances_managed, type_has_live_instances, type_owns_attribute_defs,
referenced_as_allowed_ref_type, referenced_as_default_value, referenced_as_parent_type.
The last five codes mean that something still points at the target being removed.
413: The request body is too large
request_too_large. The body exceeded 8 MB and was refused before it was read, so nothing
about its contents was checked. Send fewer entities or fewer values per request. A bulk
request that stays inside the per-value limits above can still exceed this ceiling, because
those limits apply per value and this one applies to the whole body.