Skip to main content
POST
Search or enumerate indexed connection entities

Authorizations

Authorization
string
header
required

Auth0-issued user JWT. Provide as Authorization: Bearer <token>.

Body

application/json

Request body for the search_connection_entities endpoint. Self-contained and scoped to the connection index — it does not reference the broader internal retrieval context. Results are always grouped by table.

scopes
object[]
required

Connection scopes to search within. Results are restricted to the union of these scopes, further intersected with what the caller can access. At least one scope is required.

Minimum array length: 1
query
string | null

Natural-language text to semantically match against indexed entities. When null or empty, the endpoint enumerates every indexed entity in scope (no semantic matching) — used by callers that just want to list the contents of a connection.

entity_types
enum<string>[] | null

Restrict results to these entity types. When omitted, all types are returned.

The type of connection-index entity to search for. all is a convenience marker that matches every concrete type.

Available options:
all,
table,
column,
dimension,
measure,
view,
join,
dimensional_value
origin_types
enum<string>[] | null

Restrict results to entities of these origins. When omitted, all origins are returned.

The origin of a connection-index entity. all is a convenience marker that matches every origin.

Available options:
all,
published,
sql_logs,
llm_generated
include_joined_entities
boolean | null
default:false

When true, also include entities reachable from the scoped tables via joins. Defaults to false.

min_score
number | null

Minimum cosine-similarity score for a semantic match (ignored when enumerating). Defaults to 0.

top_n_results
integer | null

Maximum number of table-grouped results to return. Omit for the service default; a value <= 0 returns every matching table.

max_entities_per_result
integer | null

Maximum number of entities to return per table. A limit is strongly recommended for performance.

max_dimensional_values
integer | null

Maximum number of dimensional values to return per matched dimension.

limit
integer | null

Maximum number of distinct tables to return, paged in a stable order (by connection, catalog, schema, table). Only honored on the enumerate path (no query); ranked search is not pageable. Omit for the current unbounded behavior — every in-scope table is returned. When set, the total number of in-scope tables is reported on the Total-Count response header so the caller can compute the next offset, and top_n_results is ignored (the page window bounds the table count instead).

Required range: x >= 1
offset
integer | null

Number of tables to skip before the page (0-based), in the same stable order as limit. Only honored on the enumerate path. Omit or 0 for the first page.

Required range: x >= 0

Response

OK

package_info
object | null

The package info for the result (can be null if the result is not scoped by a package)

model_uri
string | null

The relative URI of the model for the result (can be null if the result is not scoped by a model)

source
string | null

The Malloy source for the result (can be null if the result is not scoped by a source)

source_docs
string | null

Documentation for the source (extracted from Malloy annotations)

score
number | null

Overall score for the result (for comparing multiple results)

matches
object[]