api::sql
post/v1/sql/query
Request body
Example request
{
"query": "SELECT name, input_tokens FROM spans WHERE start_time > now() - interval '1 hour' LIMIT 10"
}Response
SQL query executed successfully
Example response
{
"data": [
{
"name": "workflow",
"input_tokens": 0
},
{
"name": "openai.chat",
"input_tokens": 369
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.