Dashboard

Get draft data from given SQL query

Given the SQL query, get draft data. Returns data directly if cached (HTTP 200), or job_id if processing (HTTP 202).

post/dashboards/{dashboard_id}/getDraftData

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/dashboards/{dashboard_id}/getDraftData
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

dashboard_idinteger required

Request body

Example request

{
  "params": {
    "widget_id": "550e8400-e29b-41d4-a716-446655440000",
    "global_filters": {
      "region": "North",
      "date_range": {
        "start": "2024-01-01",
        "end": "2024-12-31"
      }
    },
    "drilldown_filters": {
      "category": "Electronics"
    }
  }
}

Response

Widget data retrieved successfully

dataobject[] required

List of rows returned for the widget with filters applied

Changes

No recorded changes to this operation across all 3 revisions of this API.