Sources

Preview a SQL query

Changed on

Runs one read-only query and answers at most 100 rows, for previewing a saved query. It reads the database live, so it needs the right to configure the connection. A key that belongs to no person (one created before keys named their creator) is refused with 403.

Scope: sources:write. A key holding only the legacy write scope does not satisfy it.

post/v1/sources/sql/{connectionId}/test-query

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

connectionId, string uuid required

Source connection UUID.

Request body

object required
sql_text, string required

The query.

Response

The preview.

SqlQueryPreview required
columns, object[]
rows, array[]
truncated, boolean

Whether more rows exist than were returned.

Changes