Skip to main content
GET
Read a table card

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

database
string
required

The database the table belongs to.

Query Parameters

table
string

The table whose card to read. Exactly one of table and tables is required: with table the response is the table's card; sending both is refused.

tables
string

The tables whose cards to render as one text, comma-separated, as the sub-agent's own prompt carries them. The response is then the prompt-cards form, not a card. Goes with tier, question and overview alone: sent with table, whole, families or pattern it is refused.

question
string

What the caller is asking, in a sentence. With tables, the cards are ranked and laid out for it. With table, the response lists the columns the question needs first: every column is a candidate, or only those a pattern matches (a question with no pattern reads as pattern=*). A blank question is ignored. A ranking may call the deployment's grading model, billed as inference.

overview
boolean

With tables and no question: each table in one line (its name, rows, columns and what it holds) rather than its card, for a caller to describe the database by before it has a question. Ignored with table, and when a question is sent.

tier
string

The card tier: lean (the default) or enriched. Any other name is refused rather than read as the lean tier.

whole
integer

With table: lay the card out within a budget. This many columns are listed whole, those with a value in the most rows first, and the rest come as a map of name families. Requires families, must be at least 1, and is refused with pattern or tables.

Required range: x >= 0
families
integer

With whole: the name families the map holds at most, largest first. Requires whole, must be at least 1, and is refused with pattern or tables.

Required range: x >= 0
pattern
string

With table: look columns up by name. A column name, matched whole; * matches any run of characters (name*, *word*); or * alone for every column. The matching entries come back whole, those with a value in the most rows first, without sample rows, and matched says how many there were in all. Must not be empty, and is refused with whole, families or tables.

limit
integer

Entries a pattern lookup (or a question about one table) lists at most. 40 when omitted. Ignored otherwise.

Required range: x >= 0

Response

One of two shapes, by query form. With table (TableCardResponse): the table's stored card of the requested tier, its schema with index roles, per-column statistics and sample rows as last computed, with when it was built, and logical_bytes, the bytes the table is billed storage on, when the deployment meters them. With whole and families the card is laid out within that budget; with pattern, it holds the entries matching it, most rows first, and matched says how many there were; with question, the entries that question needs come first. With tables (PromptCardsResponse), instead of a card: the named tables' cards rendered as text the way the sub-agent's prompt carries them (cards, vocabulary, shown, listed, missing, tier, ranked and graded), ranked for question when one is sent, or one line per table with overview, for a caller to fold into its own prompt unchanged. The x-infino-inference-nanodollars response header says what a ranking's model call was billed, 0 when no model ran.

What GET /v1/table_card/{database} answers, by query form: a table's card with table, the rendered cards of several with tables.

built_ms
integer<int64>
required

Unix epoch milliseconds when the card was last found describing its table: when it was built, or when a later check found the table close enough to it to stand. scanned_ms says when the data was read.

Required range: x >= 0
card
object
required

The card itself.

storage_bytes
integer<int64>
required

The table's footprint on storage in bytes when the card was built, indexes included. Not the bytes billed: that is the response's logical_bytes.

Required range: x >= 0
card_version
integer<int32>

The version of the card format this record was written under; 0 on a record written before the versions existed. A record below the current version is rebuilt once.

Required range: x >= 0
enrichment
null | object

How the enriched tier's descriptions were produced; present on the enriched tier only.

manifest_version
integer<int64> | null

Reserved; always absent.

Required range: x >= 0
scanned_ms
integer<int64> | null

Unix epoch milliseconds when the build that wrote the card's statistics and samples began reading the table; absent on a record written before the field, for which built_ms stands in.

Required range: x >= 0
sketched
boolean

Whether the build that wrote this lean record took the value samples (sketches) at all: false on a record written before they existed, which is rebuilt once.

sketches
object[]

Samples of the values of the table's key-like columns, taken with the lean card; the lean tier only. The service reads them to estimate the joins between tables; a caller has no use for them.

sync_mark
null | object

Where the table's sync stood when this card was last found describing it: what the next sync pass is checked against to tell whether it is the only change since. Absent for a table no sync keeps, and on a record written before the field.

tier
enum<string>

Which tier this record holds: lean or enriched.

Available options:
lean,
enriched
logical_bytes
integer<int64> | null

The bytes the table is billed storage on: what was sent, the figure the invoice's storage line is computed from. The card's own storage_bytes is the footprint on storage, indexes included, and is not what is billed. Absent when the deployment does not meter it or has recorded nothing for the table yet.

Required range: x >= 0
matched
integer | null

With a pattern or question lookup: how many entries matched in all, of which the card carries the first limit. Absent otherwise.

Required range: x >= 0
note
string | null

With pattern: why fewer entries were listed than matched and the limit allowed (the lookup's size budget). Absent otherwise.

pages
boolean

True when the deployment keeps the documents the table's rows were made from, so POST /v1/page/{database} answers for its rows. Omitted when false.