Query SQL

Execute a SQL query and return results as JSON

post/api/sql

Request

  • Base URL: https://api.eu-west-1.aws.dash0.com
  • URL: https://api.eu-west-1.aws.dash0.com/api/sql
  • Auth: none declared

Request body

datasetstring

Optional dataset to query across. Defaults to whatever is configured to be the default dataset for the organization.

querystring required

Example request

{
  "timeRange": {
    "from": "now-30m",
    "to": "now"
  }
}

Response

Returns the SQL query results.

executionTimestring date-time required

A fixed point in time represented as an RFC 3339 date-time string.

Format: YYYY-MM-DDTHH:MM:SSZ (UTC) or YYYY-MM-DDTHH:MM:SS±HH:MM (with timezone offset)

Examples:

  • 2024-01-15T14:30:00Z
  • 2024-01-15T14:30:00+08:00
errorstring
warningsstring[] required

Changes

No recorded changes to this operation across all 1 revision of this API.