Skip to main content
GET
Suggest the relations your documents already hold

Authorizations

Authorization
string
header
required

An organization API key. Keys carry a role (read_write or read_only) and may be restricted to a namespace prefix such as acme/*, or to one namespace such as acme/prod/tenant_1. A prefix matches on a / boundary: acme/prod/tenant_1* covers acme/prod/tenant_1 and everything under acme/prod/tenant_1/, never acme/prod/tenant_12.

Path Parameters

ns
string
required

A namespace name, or a template prefix ending in /*, with any / sent as %2F: acme%2Fprod%2Ftenant_123 or acme%2Fprod%2F*.

A namespace name, or a template prefix: a namespace path ending in /*, such as acme/prod/*, which every namespace under acme/prod/ inherits judgments from. Up to 256 bytes. Never exactly . or .., which a URL path can't carry.

Required string length: 1 - 256
Pattern: ^(?!\.\.?$)[A-Za-z0-9._:/-]+(/\*)?$

Query Parameters

kind
string

The attribute to take as the kind, one of the candidates. Omitted, the response picks one and names it.

Minimum string length: 1

Response

The suggestions, from a bounded sample; complete says whether the budget ran out.

The attributes that look like relations, from a bounded sample of documents. A value that resolves to a document id is evidence of a possible relation, not proof of one; nothing is created.

tenant
string | null
required

On a template prefix, the tenant namespace whose documents were sampled, as an example. Null on a namespace.

sampled_documents
integer
required

Documents in the sample.

Required range: x >= 0
kind
object
required

How the sample was split into kinds.

relations
object[]
required

Each attribute of each kind whose values resolve to documents, kinds with the most sampled documents first, attributes in name order.

complete
boolean
required

False when a budget dimension ran out before every kind and attribute was examined; what was found is still returned.

exhausted
enum<string> | null
required

The budget dimension that ran out. Null when complete.

Available options:
bytes_read,
attributes_examined,
ids_looked_up
budget
object
required

What the suggestion spent of each budget dimension.

note
string
required

Says that a resolving value is evidence of a possible relation, not proof, and that nothing was created.

usage
object
required

What this response billed.