Skip to main content
GET
/
query-data
Generate a pre-signed export URL
curl --request GET \
  --url https://portal.webless.ai/query-data \
  --header 'x-api-key: <api-key>'
{
  "presigned_url": "https://webless-client-data.s3.us-west-1.amazonaws.com/athena-results/QUERY_ID.csv?X-Amz-..."
}
The presigned_url returned by this endpoint is not always ready immediately. Poll it with Range: bytes=0-0 every 10 seconds until it returns 200 or 206, then download the full file.

Authorizations

x-api-key
string
header
required

Query Parameters

company
string
required

Your client code.

start_date
string<date>
required

Inclusive start date in YYYY-MM-DD format.

end_date
string<date>
required

Inclusive end date in YYYY-MM-DD format.

Response

Accepted. The export is being prepared.

presigned_url
string<uri>
Example:

"https://webless-client-data.s3.us-west-1.amazonaws.com/athena-results/QUERY_ID.csv?X-Amz-..."