> ## Documentation Index
> Fetch the complete documentation index at: https://infino.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Read a table card

> A card is the table's schema with index roles, per-column statistics and
sample rows, computed by the service shortly after the table changes. It
says nothing about the table's keys to other tables: those are the
`join_keys` route's to return. One route, two answers: `table` reads one
table's card, `tables` renders several tables' cards as prompt text.

For example, `GET /v1/table_card/support?table=issues&tier=enriched`
reads one card, and
`GET /v1/table_card/support?tables=issues,logs&question=which+issues+mention+a+timeout`
renders two tables' cards for a question.

Preview: this route may change between releases. It needs the agent APIs enabled on your account, and answers 403 until they are.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/table_card/{database}
openapi: 3.1.0
info:
  title: Infino API
  description: >-
    The Infino hosted data-plane API: per-database table operations — create,
    ingest, search, and SQL.
  version: 0.1.0
servers:
  - url: https://api.platform.infino.ws
    description: Infino Cloud
security:
  - api_key: []
tags:
  - name: Databases
    description: Create, list, and delete the databases in your account.
  - name: Tables
    description: Create, drop, and list tables, and describe a table's schema.
  - name: Rows
    description: Append, update, and delete rows.
  - name: Search
    description: BM25, vector, and hybrid search, token and exact match, count, and SQL.
  - name: Agent
    description: >-
      Preview routes for agents: table cards, join keys, line search, result
      checks, graph lookups, and the retrieval sub-agent. They need the agent
      APIs enabled on your account.
  - name: Hydrate
    description: >-
      Preview routes for loading a dataset: start a load of files from object
      storage into a table, follow it, cancel or clear it, and run a sync pass.
paths:
  /v1/table_card/{database}:
    get:
      tags:
        - Agent
      summary: Read a table card
      description: >-
        A card is the table's schema with index roles, per-column statistics and

        sample rows, computed by the service shortly after the table changes. It

        says nothing about the table's keys to other tables: those are the

        `join_keys` route's to return. One route, two answers: `table` reads one

        table's card, `tables` renders several tables' cards as prompt text.


        For example, `GET /v1/table_card/support?table=issues&tier=enriched`

        reads one card, and

        `GET
        /v1/table_card/support?tables=issues,logs&question=which+issues+mention+a+timeout`

        renders two tables' cards for a question.


        Preview: this route may change between releases. It needs the agent APIs
        enabled on your account, and answers 403 until they are.
      operationId: table_card
      parameters:
        - name: database
          in: path
          description: The database the table belongs to.
          required: true
          schema:
            type: string
        - name: table
          in: query
          description: |-
            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.
          required: false
          schema:
            type: string
        - name: tables
          in: query
          description: |-
            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.
          required: false
          schema:
            type: string
        - name: question
          in: query
          description: |-
            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.
          required: false
          schema:
            type: string
        - name: overview
          in: query
          description: |-
            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.
          required: false
          schema:
            type: boolean
        - name: tier
          in: query
          description: |-
            The card tier: `lean` (the default) or `enriched`. Any other name is
            refused rather than read as the lean tier.
          required: false
          schema:
            type: string
        - name: whole
          in: query
          description: |-
            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: false
          schema:
            type: integer
            minimum: 0
        - name: families
          in: query
          description: |-
            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: false
          schema:
            type: integer
            minimum: 0
        - name: pattern
          in: query
          description: |-
            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`.
          required: false
          schema:
            type: string
        - name: limit
          in: query
          description: |-
            Entries a `pattern` lookup (or a `question` about one `table`) lists
            at most. 40 when omitted. Ignored otherwise.
          required: false
          schema:
            type: integer
            minimum: 0
      responses:
        '200':
          description: >-
            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.
          headers:
            x-infino-inference-nanodollars:
              schema:
                type: integer
                format: int64
                minimum: 0
              description: >-
                What a ranking's model call was billed, in billionths of a US
                dollar; 0 when no model ran. Not sent on the `overview` form.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TableCardAnswer'
              examples:
                table:
                  summary: 'With `table`: the stored card'
                  value:
                    card:
                      table: issues
                      rows: 1250
                      schema:
                        - name: id
                          type: Int64
                          index: scalar
                          count: 1250
                          min: '1'
                          max: '1250'
                          distinct: 1250
                        - name: status
                          type: Utf8
                          index: scalar
                          count: 1250
                          distinct: 3
                          top_values:
                            - open
                            - closed
                            - triaged
                        - name: title
                          type: Utf8
                          index: fts
                          count: 1250
                          max_chars: 140
                      text_column: title
                      sample_rows:
                        - id: 1
                          status: open
                    tier: lean
                    built_ms: 1772445600000
                    storage_bytes: 482113
                    sketched: true
                    card_version: 7
                    logical_bytes: 391000
                tables:
                  summary: 'With `tables`: the cards as prompt text'
                  value:
                    database: support
                    tier: lean
                    cards: >-
                      [{"table":"issues","rows":1250,"columns":["id Int64
                      scalar","status Utf8 scalar","title Utf8
                      fts"]},{"table":"logs","rows":98000,"columns":["ts
                      Timestamp scalar","message Utf8 fts"]}]
                    vocabulary: ''
                    shown:
                      - issues
                      - logs
                    listed: []
                    missing:
                      - invoices
                    ranked: false
                    graded: false
        '400':
          description: >-
            Neither `table` nor `tables` is given; `tables` comes with `table`,
            `whole`, `families` or `pattern`, or names no table; the tier is not
            `lean` or `enriched`; the database or a table is not a valid
            identifier; `whole` and `families` do not come together or are zero;
            or a `pattern` is empty or comes with `whole` and `families`.
        '401':
          description: Missing or invalid API key.
        '402':
          description: >-
            With a `question`: the account is suspended for non-payment, or its
            free period has ended. The forms without a question read the stored
            card and are not refused for it.
        '403':
          description: >-
            The agent APIs are not enabled for this account, or the API key
            lacks read access to this database.
        '404':
          description: >-
            The database does not exist; no card is stored for the table at that
            tier (the table has not been described since it was created, or does
            not exist); or, with `tables`, none of the named tables has a card.
        '410':
          description: The database is being purged.
        '502':
          description: >-
            With a `question`: the service could not read the ranking computed
            for this request. Transient: retry.
        '503':
          description: >-
            With a `question`: the database is still activating, or no capacity
            is free to serve it. Transient: retry after the `Retry-After`
            interval. The forms without a question read the stored card and do
            not wait on the database.
      security:
        - api_key: []
components:
  schemas:
    TableCardAnswer:
      oneOf:
        - $ref: '#/components/schemas/TableCardResponse'
          description: 'With `table`: the table''s card.'
        - $ref: '#/components/schemas/PromptCardsResponse'
          description: 'With `tables`: the named tables'' cards rendered as prompt text.'
      description: |-
        What `GET /v1/table_card/{database}` answers, by query form: a table's
        card with `table`, the rendered cards of several with `tables`.
    TableCardResponse:
      allOf:
        - $ref: '#/components/schemas/TableCardRecord'
        - type: object
          properties:
            logical_bytes:
              type:
                - integer
                - 'null'
              format: int64
              description: >-
                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.
              minimum: 0
            matched:
              type:
                - integer
                - 'null'
              description: >-
                With a `pattern` or `question` lookup: how many entries matched
                in

                all, of which the card carries the first `limit`. Absent
                otherwise.
              minimum: 0
            note:
              type:
                - string
                - 'null'
              description: >-
                With `pattern`: why fewer entries were listed than matched and
                the

                limit allowed (the lookup's size budget). Absent otherwise.
            pages:
              type: boolean
              description: >-
                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.
      description: |-
        The `table` form's answer: the table's stored card, and beside it what
        the table is billed storage on.
    PromptCardsResponse:
      type: object
      description: |-
        The `tables` form's answer: the cards of the named tables rendered as
        one text, the way the sub-agent's own prompt carries them, for a caller
        to fold into its own prompt unchanged.
      required:
        - database
        - tier
        - cards
        - vocabulary
        - shown
        - listed
        - missing
        - ranked
        - graded
      properties:
        cards:
          type: string
          description: |-
            The cards as JSON text, ready to place in a prompt. With `overview`,
            one line per table instead.
        database:
          type: string
          description: The database the cards describe.
        graded:
          type: boolean
          description: |-
            Whether the ranking was made by the deployment's grading model
            (true) or by the question's words alone (false).
        listed:
          type: array
          items:
            type: string
          description: The tables `cards` names in a line each, without their cards.
        missing:
          type: array
          items:
            type: string
          description: The tables asked for that have no card yet.
        note:
          type:
            - string
            - 'null'
          description: |-
            The note that goes under the question when the cards are ranked for
            one: the tables in the ranking's order and the columns judged to
            hold what the question asks. Absent otherwise.
        ranked:
          type: boolean
          description: |-
            Whether the cards were ranked for the question rather than shown as
            they are.
        shown:
          type: array
          items:
            type: string
          description: The tables whose cards `cards` shows, best first.
        tier:
          $ref: '#/components/schemas/CardTier'
          description: |-
            The richest tier that rendered: a table without a card of the tier
            asked for is rendered from the one below it.
        vocabulary:
          type: string
          description: |-
            The tables' search vocabulary as text, ready to place in a prompt;
            empty when they have none.
    TableCardRecord:
      type: object
      description: |-
        The stored form of a card: the card plus what identifies the table state
        it describes, so a reader can tell a fresh card from a stale one.
      required:
        - card
        - built_ms
        - storage_bytes
      properties:
        built_ms:
          type: integer
          format: int64
          description: |-
            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.
          minimum: 0
        card:
          $ref: '#/components/schemas/TableCard'
          description: The card itself.
        card_version:
          type: integer
          format: int32
          description: |-
            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.
          minimum: 0
        enrichment:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/EnrichmentMeta'
              description: >-
                How the enriched tier's descriptions were produced; present on
                the

                enriched tier only.
        manifest_version:
          type:
            - integer
            - 'null'
          format: int64
          description: Reserved; always absent.
          minimum: 0
        scanned_ms:
          type:
            - integer
            - 'null'
          format: int64
          description: |-
            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.
          minimum: 0
        sketched:
          type: boolean
          description: |-
            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:
          type: array
          items:
            $ref: '#/components/schemas/ColumnSketch'
          description: |-
            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.
        storage_bytes:
          type: integer
          format: int64
          description: |-
            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`.
          minimum: 0
        sync_mark:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/SyncMark'
              description: >-
                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:
          $ref: '#/components/schemas/CardTier'
          description: 'Which tier this record holds: `lean` or `enriched`.'
    CardTier:
      type: string
      description: |-
        Which tier of a table's card a record holds: `lean` (schema, roles,
        statistics and samples, all computed, nothing a model wrote) or
        `enriched` (the lean tier plus descriptions a model wrote).
      enum:
        - lean
        - enriched
    TableCard:
      type: object
      description: |-
        One table's card: what the table holds, described for a model about to
        query it.
      required:
        - table
        - rows
        - schema
        - sample_rows
      properties:
        data_source:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/DataSourceCard'
              description: |-
                What the table is about, written once by the enrichment model.
                Absent on the lean tier.
        graph:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/GraphFactsCard'
              description: >-
                What the knowledge graph holds read from this table, so a reader
                of

                the card knows the facts are there. Absent on a table the graph

                reads no facts from.
        joins:
          type: array
          items:
            $ref: '#/components/schemas/JoinCard'
          description: |-
            The joins this table takes part in with the other tables it was
            served with, on either side, found on the data. A card read alone
            carries none: the keys between tables are what
            `POST /v1/join_keys/{database}` returns. Absent on a card served
            alone.
        kind_column:
          type:
            - string
            - 'null'
          description: |-
            The column that says what kind of record each row is, when the
            table mixes kinds: an event log's event name, a ledger's entry type.
            Found on the data: of the text columns that hold a short value in
            every row and take few distinct ones, the one whose values best
            predict which of the table's other columns a row holds a value in.
            Each column's `kinds` counts its rows by this column's values.
            Absent when no column predicts that, and on a table whose every
            column holds a value in every row.
        rows:
          type: integer
          format: int64
          description: Live row count when the card was built.
        sample_rows:
          type: array
          items:
            type: object
          description: >-
            A few rows as JSON objects keyed by column name: scalar columns
            only,

            the first rows by id so two builds of the same table agree. Null

            cells are omitted. Empty on a `pattern` or `question` lookup.
        schema:
          type: array
          items:
            $ref: '#/components/schemas/ColumnCard'
          description: Every column in schema order, with its index role and statistics.
        table:
          type: string
          description: The table name, as SQL addresses it.
        text_column:
          type:
            - string
            - 'null'
          description: |-
            The column the table holds its prose in: the one marked when the
            table was loaded (the column cut into passages, or the one text
            column that was embedded); else, for a table nothing marked, the
            full-text column whose index holds the most distinct terms. Absent
            only for a table with no full-text column.
    EnrichmentMeta:
      type: object
      description: |-
        How the enriched tier's descriptions were produced, so a reader can tell
        whose words they are and whether they still describe the table's
        columns.
      required:
        - model
        - schema_fingerprint
        - prompt_tokens
        - completion_tokens
      properties:
        columns_described:
          type: integer
          format: int64
          description: |-
            Columns the model described when the layer was written. 0 on a layer
            from before the count, which says nothing about how it was written.
          minimum: 0
        columns_reused:
          type: integer
          format: int64
          description: |-
            Columns whose descriptions were taken from another table's enriched
            card of the same database rather than asked of the model. 0 on
            descriptions from before the reuse.
          minimum: 0
        completion_tokens:
          type: integer
          format: int64
          description: Completion tokens the enrichment calls consumed.
          minimum: 0
        context_digest:
          type: string
          description: |-
            A digest of the table context the descriptions were written with:
            a new context (new documentation, a dataset now recognized) writes
            them again. Empty when no context was informative.
        model:
          type: string
          description: The model that wrote the descriptions.
        prompt_tokens:
          type: integer
          format: int64
          description: Prompt tokens the enrichment calls consumed.
          minimum: 0
        prompt_version:
          type: integer
          format: int32
          description: |-
            The version of the instructions the descriptions were written
            under: a later version writes them again once, columns and context
            unchanged. 0 on descriptions from before the versions.
          minimum: 0
        reused_from:
          type: array
          items:
            $ref: '#/components/schemas/ReusedLayers'
          description: |-
            Where each reused column's layer came from, one entry per enriched
            record it was read from. Empty when nothing was reused.
        schema_fingerprint:
          type: string
          description: |-
            The schema the descriptions were written for: every column's name,
            type and role in one string. A data change that leaves the columns
            alone keeps the descriptions; a schema change writes them again.
    ColumnSketch:
      type: object
      description: |-
        A fixed-size sample of one column's distinct values (a bottom-k sketch):
        the 128 smallest hashes of the values, from which the share of one
        column's values that occur in another is estimated without a statement
        over the two tables. One per key-like column, 32 at most per table. It
        is what join estimates are made from; a caller has no use for it beyond
        that.
      required:
        - column
        - kind
        - distinct
        - hashes
      properties:
        column:
          type: string
          description: The column sampled.
        distinct:
          type: integer
          format: int64
          description: |-
            Distinct values the sample summarizes (of the expression, for a
            derived one), so an estimate has its denominators.
        hashes:
          type: array
          items:
            type: integer
            format: int64
            minimum: 0
          description: |-
            The smallest hashes, ascending. Fewer than 128 means the column has
            that few distinct values and the sample is exact.
        kind:
          $ref: '#/components/schemas/SketchKind'
          description: 'What was sampled: the values, or an expression over them.'
    SyncMark:
      type: object
      description: |-
        Where a synced table stood when its card was last found describing it:
        its live row count, and the highest file number its sync had given.
      required:
        - rows
        - last_file_no
      properties:
        last_file_no:
          type: integer
          format: int32
          description: The highest file number the table's sync had given at that time.
          minimum: 0
        rows:
          type: integer
          format: int64
          description: The table's live row count at that time.
    DataSourceCard:
      type: object
      description: 'The table-level half of the enrichment layer: what kind of data this is.'
      required:
        - category
        - description
      properties:
        basis:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/ContextBasis'
              description: >-
                What that context rests on: the shipped documentation, the
                model's

                recall of a dataset it recognized (unverified), or both.
        category:
          type: string
          description: A specific data-domain label, a few words.
        context:
          type:
            - string
            - 'null'
          description: >-
            What the table's context says the data is, where it came from and
            what

            one row is; absent when nothing was learned.
        dataset:
          type:
            - string
            - 'null'
          description: The dataset's common name, when the enrichment model recognized it.
        description:
          type: string
          description: >-
            What system produces the data, what each row captures, what
            questions

            it answers: a few sentences grounded in the columns and samples.
    GraphFactsCard:
      type: object
      description: |-
        What the knowledge graph holds read from one table: how many facts and
        documents, and the things most of its facts are about, as the graph
        resolved their names.
      required:
        - facts
      properties:
        documents:
          type: integer
          format: int64
          description: Documents they were read from, when the table names documents.
          minimum: 0
        facts:
          type: integer
          format: int64
          description: Facts read from the table.
          minimum: 0
        subjects:
          type: array
          items:
            type: string
          description: The things the most facts are about, the most first.
    JoinCard:
      type: object
      description: |-
        One join between two tables, found on their values: the share of the
        referencing side's distinct values that occur on the referenced side,
        and how the two sides are written in a predicate.

        The sides are columns, or an expression over a column where the values
        meet only through one, such as a path's first segment against a project
        name.
      required:
        - from_table
        - from_column
        - to_table
        - to_column
        - inclusion
        - coverage
        - verified
      properties:
        coverage:
          type: number
          format: double
          description: |-
            Share of the referenced side's distinct values the referencing side
            uses, 0 to 1.
        from_column:
          type: string
          description: The referencing side's column.
        from_expression:
          type:
            - string
            - 'null'
          description: |-
            The SQL over `from_column` the match runs through, with `{column}`
            in place of the column; absent when the column matches as it is.
        from_table:
          type: string
          description: |-
            The referencing side: the table whose column's values are found in
            the other.
        inclusion:
          type: number
          format: double
          description: |-
            Share of the referencing side's distinct values found on the
            referenced side, 0 to 1. An estimate from samples of the two
            columns' values unless `verified`, when it was counted by a
            statement.
        to_column:
          type: string
          description: The referenced side's column.
        to_expression:
          type:
            - string
            - 'null'
          description: |-
            The SQL over `to_column` the match runs through, with `{column}` in
            place of the column; absent when the column matches as it is.
        to_table:
          type: string
          description: 'The referenced side: the table whose column holds the values.'
        verified:
          type: boolean
          description: |-
            Whether a statement on the two tables counted the shares (true), or
            they were estimated from stored samples of the columns' values
            (false).
    ColumnCard:
      type: object
      description: |-
        One column of a table's card: its name, type, index role and what its
        values look like.
      required:
        - name
        - type
        - index
      properties:
        confidence:
          type:
            - number
            - 'null'
          format: double
          description: >-
            The model's confidence in its description, 0 to 1; enriched tier
            only.
        count:
          type:
            - integer
            - 'null'
          format: int64
          description: |-
            Rows holding a value. On every column but a vector and a derived
            text column; absent on a card built before the field. It tells the
            columns of a sparse table apart: a column set in a handful of rows
            describes little of the table.
        derived_from:
          type:
            - string
            - 'null'
          description: |-
            The column this one is derived from: the text rendering of a nested
            column, added beside it when the table was loaded, for the text
            index and the embedding. It carries no statistics of its own; the
            column named here is the one profiled.
        description:
          type:
            - string
            - 'null'
          description: |-
            What the column stores, in a dozen words, written by the enrichment
            model from the type, role, statistics and samples, never from a
            question. Enriched tier only.
        distinct:
          type:
            - integer
            - 'null'
          format: int64
          description: Distinct value count; scalar columns only.
        embedded_from:
          type: array
          items:
            type: string
          description: |-
            The columns this vector column's embedding is made from: the text a
            search by meaning over it matches against. On a vector column only;
            absent on a card built before the field, and on a vector column
            with no record of its source.
        format:
          type:
            - string
            - 'null'
          description: |-
            The value format the model inferred from the samples (`Enum value`,
            `Integer count`, `Alphanumeric ID with prefix`); enriched tier only.
        index:
          type: string
          description: >-
            The index role: `scalar` (filter, group, aggregate in SQL), `fts` (a

            text column that carries a BM25 index, searchable through the search

            functions), or `vector` (a fixed-size float list, the embedding
            column,

            reachable only through vector search). A text column without an
            index

            is a `scalar`, with statistics like any other.
        kinds:
          type: array
          items:
            $ref: '#/components/schemas/KindRows'
          description: |-
            The rows holding a value in this column, by the table's kind (the
            card's `kind_column`): the kinds with the most such rows first, 20
            at most; the rows of the kinds past them are `count` less the listed
            ones' sum. On the kind column itself this is how many rows each kind
            has. On a column holding a value in some rows only, it is which
            kinds of record carry it, so a count over the column alone is not
            read as a count of one kind of record. Absent on a column holding a
            value in every row, where it would repeat the kind column's, and on
            a card with no kind column.
        max:
          type:
            - string
            - 'null'
          description: >-
            Largest value, rendered as text; scalar columns only, absent as
            `min` is.
        max_chars:
          type:
            - integer
            - 'null'
          format: int64
          description: |-
            The longest value in characters; text columns with a value only. A
            column whose longest value runs past a quoted sample is a document
            column, which carries no range.
        min:
          type:
            - string
            - 'null'
          description: >-
            Smallest value, rendered as text; scalar columns only, absent when
            the

            column is empty or its values run past a quoted sample.
        name:
          type: string
          description: The column name.
        references:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/KeyReference'
              description: >-
                The key this column's values come from, when the tables it was

                served with hold one: its values occur in that table's column,
                so a

                join on the pair is the way across and this column is an id into
                that

                table, never a category of its own. Set with the card's `joins`,
                on

                the referencing side only; absent on a card served alone.
        structure:
          type:
            - string
            - 'null'
          description: |-
            For a text column whose values are made of sections: the sections in
            order and the marker line that begins each, with what the marker
            names, written by the enrichment model from samples spread across
            the table. Absent for a value with no sections and for every
            non-text column; enriched tier only.
        synonyms:
          type: array
          items:
            type: string
          description: |-
            Alternative names a user would say for this column, never the name
            itself, and never a word another column's name contains; enriched
            tier only.
        top_prefixes:
          type: array
          items:
            $ref: '#/components/schemas/PrefixCard'
          description: >-
            The groups a scalar text column's values fall into when cut at the

            first `/`, largest first, with the rows in each: the subtrees of a
            path

            column. Listed only for a column too high-cardinality for
            `top_values`

            whose values nonetheless collapse to few groups, so it appears for a

            repository's `path` and not for an identifier, which collapses to

            nothing and lists none.


            One group holding the whole table is the answer too, and the useful

            one: it says the column has no subtrees to split a question across,

            which is the difference between a code index and a bucket under a

            single prefix.
        top_values:
          type: array
          items:
            type: string
          description: |-
            The most frequent values, most frequent first, for a scalar column
            with few distinct values (a category, a status, a region).
        type:
          type: string
          description: |-
            The Arrow type, spelled as Arrow prints it (`Int64`, `Utf8`,
            `LargeUtf8`, `FixedSizeList(384 x non-null Float32)`).
        values:
          type: object
          description: |-
            What each of the column's coded values means, code to meaning, from
            the table's context: the documentation that shipped with the data,
            or the dataset the enrichment model recognized. On every tier;
            absent when nothing decodes the column, which is never a guess from
            a value's spelling.
          additionalProperties:
            type: string
          propertyNames:
            type: string
    ReusedLayers:
      type: object
      description: |-
        Column descriptions an enriched card took from another table's enriched
        card of the same database: that table, when its card was built, and the
        columns, so the words can be traced to where they were first written.
      required:
        - table
        - built_ms
        - columns
      properties:
        built_ms:
          type: integer
          format: int64
          description: When that card was built, Unix epoch milliseconds.
          minimum: 0
        columns:
          type: array
          items:
            type: string
          description: The columns whose descriptions were taken from it.
        table:
          type: string
          description: The table whose enriched card the descriptions were read from.
    SketchKind:
      type: string
      description: |-
        Which values of a column a value sample summarizes: `value` (the
        column's values as stored) or `path_prefix` (the first `/`-separated
        segment of each value).
      enum:
        - value
        - path_prefix
    ContextBasis:
      type: string
      description: |-
        What a table's context rests on: `documentation` (what shipped with the
        data), `recall` (what the model knows of a dataset it recognized,
        unverified), `both`, or `none`.
      enum:
        - documentation
        - recall
        - both
        - none
    KindRows:
      type: object
      description: |-
        One entry of a column's `kinds`: a value of the table's kind column and
        how many of the column's rows with a value are of that kind.
      required:
        - kind
        - rows
      properties:
        kind:
          type: string
          description: 'The kind: a value of the table''s kind column.'
        rows:
          type: integer
          format: int64
          description: Rows of that kind holding a value in the column.
    KeyReference:
      type: object
      description: |-
        The key a column takes its values from: a table and the column of it,
        or the expression over that column, the values are found in.
      required:
        - table
        - column
      properties:
        column:
          type: string
          description: The key column of that table.
        expression:
          type:
            - string
            - 'null'
          description: |-
            The SQL over `column` whose values match, when they match only
            through one (`split_part(path, '/', 1)`); absent when the column's
            values match as they are.
        table:
          type: string
          description: The table holding the key.
    PrefixCard:
      type: object
      description: |-
        One prefix group of a column: a path column's first segment and how many
        rows sit under it.
      required:
        - prefix
        - rows
      properties:
        prefix:
          type: string
          description: The segment itself, without the separator.
        rows:
          type: integer
          format: int64
          description: Rows whose value begins with it.
  securitySchemes:
    api_key:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.