Skip to Content
Sql

Run Sql

POST
/v0/projects/{idOrSlug}/sql/query

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Request Body

application/json
  1. body
sql*string
Length1 <= length <= 8000

Response Body

Success

application/json
  1. response
columns*array<>
rows*array<>
truncated*boolean
elapsedMs*number|
Example Request
curl -X POST 'https://api.faststats.dev/v0/projects/string/sql/query' \
  -H 'Content-Type: application/json' \
  -d '{
  "sql": "string"
}'
Example Response
{
  "columns": [
    {
      "name": "string",
      "type": "string",
      "numeric": true
    }
  ],
  "rows": [
    {}
  ],
  "truncated": true,
  "elapsedMs": 0
}