Skip to main content
POST
Typescript (SDK)

Body Parameters

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string
default:2.6.0
required

Body

application/json
sql
string
required

Read-only DuckDB SQL over your Autumn data (customers, subscriptions, balances, etc...). Runs against your org and environment only.

Required string length: 1 - 100000

Response

200 - application/x-ndjson

A newline-delimited JSON stream. Each line is an AnalyticsQueryLine: columns first, then one row line per result row, then an end or error line.

The response is of type file.