Get started with Turso using the libSQL remote protocol in a few simple steps.
Create HTTP Database URL
/v2/pipeline
to the URL and continue.Create Database Auth Token
Create JSON Request Payload
stmt.sql
to select from a table you already have.Bound parameter examples included on the Reference Page,Execute HTTP Request
Authorization
header set to the token you created, and the request body as JSON with your SQL statement.You must append to the Base URL the actual pipeline URL that accepts requests — /v2/pipeline
.Response
results
array containing the results of your query that looks something like this:type
field within each arg corresponds to the column datatype and can be one of the following: null
, integer
, float
, text
, or blob
.value
is a String
to avoid losing precision, because some
JSON implementations treat all numbers as 64-bit floats.