data

Query Data

Route a data action for an agent's dataset.

Actions:

  • list_tables: return all tables registered for the agent
  • sample: return N sample rows from a table (requires body.table)
  • query: execute a SQL statement (requires body.sql)
  • save: execute SQL and save result as a new Parquet table (requires body.sql + body.name)
  • register_source: create a bare DataTable record (requires body.name + body.backend)
post/api/data/tables/query

Request

  • Base URL: https://api.tintin-x.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.tintin-x.com/api/data/tables/query
  • Auth: HTTP bearer

Request body

agent_idstring uuid required
actionstring required

query | list_tables | sample | register_source | save

sqlstring nullable
tablestring nullable
namestring nullable
limitinteger
backendstring nullable
configobject nullable
credential_idstring uuid nullable
conversation_idstring uuid nullable

Response

Successful Response

successboolean required
columnsstring[]
row_countinteger
total_availableinteger
truncatedboolean
execution_msinteger
backendstring nullable
async_dispatchedboolean
messagestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.