Export flow
Call the Data API
Send a
GET request to https://portal.webless.ai/query-data with:companystart_dateend_datex-api-keyin the request headers
Store the pre-signed URL
A successful request returns
202 Accepted and a presigned_url. That URL
becomes valid once the export file is written.Poll until the file is ready
Poll the
presigned_url every 10 seconds with the Range: bytes=0-0
header. Stop polling when the response returns 200 OK or
206 Partial Content.Request parameters
| Parameter | Required | Format | Description |
|---|---|---|---|
company | Yes | string | Your client code |
start_date | Yes | YYYY-MM-DD | Start of the date range, inclusive |
end_date | Yes | YYYY-MM-DD | End of the date range, inclusive |
Example request
Example response
Sample code
Error handling
| Status | Meaning |
|---|---|
400 | Missing or invalid parameter |
403 | Invalid or missing API key |
404 | Incorrect endpoint |
429 | Rate limit exceeded |
500 | Server error |
For assistance, email tech@webless.ai. The source
guide states a business-day response target of 4 hours.
