SQL Query
You can run SQL queries on your data stored in Laminar using the SQL query API. Learn more in the SQL Editor reference.Example request
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
The SQL query to execute.
Example:
"SELECT name, input_tokens FROM spans WHERE start_time > now() - interval '1 hour' LIMIT 10"
Response
SQL query executed successfully
The data returned from the SQL query.
Example:
[
{ "name": "workflow", "input_tokens": 0 },
{
"name": "openai.chat",
"input_tokens": 369
}
]