Databox

App · 20 actions

Send records to Databox datasets and read metrics, dashboards and data sources.

Actions

ActionWhat it does
Create data sourceCreate data source.
Create datasetCreate dataset.
Delete data sourceDelete data source.
Delete datasetDelete dataset.
Get data sourceGet data source.
Get datasetGet dataset.
Get dataset ingestionGet dataset ingestion.
Get dataset schemaGet dataset schema.
Get metricGet metric.
Get metric valuesGet metric values.
Get organizationGet organization.
Ingest dataset rowsIngest dataset rows.
List dashboard metricsList dashboard metrics.
List dashboardsList dashboards.
List data sourcesList data sources.
List dataset ingestionsList dataset ingestions.
List dataset rowsList dataset rows.
List datasetsList datasets.
List metricsList metrics.
Rename datasetRename dataset.

Create data source

Create data source.

Inputs

Idempotency keyidempotency_keytext
A client-generated unique value (for example, a UUID) that lets you safely retry this request without risking duplicate side effects. If a request is retried with the same key within 24 hours of the original request, the API returns the original response instead of re-executing the operation.
NamenametextRequired
Display name of the data source.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "connectionId": 1,
      "createdAt": "example",
      "id": 1,
      "integrationKey": "example",
      "lastActivityAt": "example",
      "managedBy": {
        "id": 1,
        "name": "example"
      },
      "name": "example",
      "statusInfo": {
        "description": "example",
        "errorType": "example",
        "reason": "example",
        "status": "example",
        "statusCode": "example",
        "userAction": "example"
      },
      "syncInterval": 1,
      "timezone": "example"
    },
    "requestId": "example",
    "status": "example"
  }
}

Create dataset

Create dataset.

Inputs

Idempotency keyidempotency_keytext
A client-generated unique value (for example, a UUID) that lets you safely retry this request without risking duplicate side effects. If a request is retried with the same key within 24 hours of the original request, the API returns the original response instead of re-executing the operation.
NamenametextRequired
Display name of the dataset.
Data sourcedata_source_idnumberRequired
Unique identifier for the data source.
Primary keyprimary_keylist
Column identifiers that form the dataset's primary key.
SchemaschemalistRequired
Column definitions for the dataset.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "createdAt": "example",
      "dataSourceId": 1,
      "id": 1,
      "ingestionInfo": {
        "lastIngestionAt": "example",
        "lastStatus": "example"
      },
      "ingestionSupported": true,
      "lastActivityAt": "example",
      "name": "example",
      "statusInfo": {
        "description": "example",
        "errorType": "example",
        "reason": "example",
        "status": "example",
        "statusCode": "example",
        "userAction": "example"
      },
      "syncInfo": {
        "initiatedAt": "example",
        "lastSuccessfulSyncAt": "example",
        "status": "example",
        "type": "example"
      },
      "timezone": "example",
      "type": "example",
      "verificationInfo": {
        "isVerified": true
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

Delete data source

Delete data source.

Inputs

Data sourcedata_source_idnumberRequired
Unique identifier for the data source.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "message": "example"
    },
    "requestId": "example",
    "status": "example"
  }
}

Delete dataset

Delete dataset.

Inputs

Datasetdataset_idnumberRequired
Unique identifier for the dataset.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "message": "example"
    },
    "requestId": "example",
    "status": "example"
  }
}

Get data source

Get data source.

Inputs

Data sourcedata_source_idnumberRequired
Unique identifier for the data source.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "connectionId": 1,
      "createdAt": "example",
      "id": 1,
      "integrationKey": "example",
      "lastActivityAt": "example",
      "managedBy": {
        "id": 1,
        "name": "example"
      },
      "name": "example",
      "statusInfo": {
        "description": "example",
        "errorType": "example",
        "reason": "example",
        "status": "example",
        "statusCode": "example",
        "userAction": "example"
      },
      "syncInterval": 1,
      "timezone": "example"
    },
    "requestId": "example",
    "status": "example"
  }
}

Get dataset

Get dataset.

Inputs

Datasetdataset_idnumberRequired
Unique identifier for the dataset.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "columnCount": 1,
      "createdAt": "example",
      "dataSourceId": 1,
      "id": 1,
      "ingestionInfo": {
        "initiatedAt": "example",
        "lastSuccessfulIngestionAt": "example",
        "status": "example"
      },
      "ingestionSupported": true,
      "lastActivityAt": "example",
      "managedBy": {
        "id": 1,
        "name": "example"
      },
      "maxSize": 1,
      "name": "example",
      "primaryKey": [
        "example"
      ],
      "rowCount": 1,
      "size": 1,
      "statusInfo": {
        "description": "example",
        "errorType": "example",
        "reason": "example",
        "status": "example",
        "statusCode": "example",
        "userAction": "example"
      },
      "syncInfo": {
        "initiatedAt": "example",
        "lastSuccessfulSyncAt": "example",
        "status": "example",
        "type": "example"
      },
      "syncInterval": 1,
      "timezone": "example",
      "type": "example",
      "verificationInfo": {
        "isVerified": true,
        "verifiedAt": "example",
        "verifiedBy": {
          "id": 1,
          "name": "example"
        }
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

Get dataset ingestion

Get dataset ingestion.

Inputs

Datasetdataset_idnumberRequired
Unique identifier for the dataset.
Ingestion IDingestion_idtextRequired
Unique identifier for the ingestion.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "duration": 1,
      "errors": [
        {
          "code": "example",
          "field": "example",
          "message": "example",
          "record": {}
        }
      ],
      "id": "example",
      "initiatedAt": "example",
      "initiatedBy": {
        "id": 1,
        "name": "example"
      },
      "status": "example",
      "summary": {
        "dataset": {
          "columnCount": 1,
          "rowCount": 1,
          "size": 1
        },
        "ingestion": {
          "appendedRecordCount": 1,
          "overwrittenRecordCount": 1,
          "receivedRecordCount": 1,
          "rejectedRecordCount": 1
        }
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

Get dataset schema

Get dataset schema.

Inputs

Datasetdataset_idnumberRequired
Unique identifier for the dataset.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "items": [
        {
          "dataType": "example",
          "displayName": "example",
          "id": "example",
          "order": 1,
          "visible": true
        }
      ],
      "primaryKey": [
        "example"
      ]
    },
    "requestId": "example",
    "status": "example"
  }
}

Get metric

Get metric.

Inputs

Metricmetric_idtextRequired
Unique identifier for the metric.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "aggregationFunction": "example",
      "availableGranularities": [
        "example"
      ],
      "date": {
        "displayName": "example",
        "id": "example"
      },
      "description": "example",
      "dimensions": [
        {
          "displayName": "example",
          "id": "example"
        }
      ],
      "filters": {
        "conditions": [
          {}
        ],
        "logicalOperator": "example"
      },
      "id": "example",
      "isAggregatable": true,
      "measure": {
        "displayName": "example",
        "id": "example"
      },
      "name": "example",
      "sourceId": 1,
      "supportsDrilldown": true,
      "type": "example",
      "verificationInfo": {
        "isVerified": true,
        "verifiedAt": "example",
        "verifiedBy": {
          "id": 1,
          "name": "example"
        }
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

Get metric values

Get metric values.

Inputs

Metricmetric_idtextRequired
Unique identifier for the metric.
Source IDsource_idnumber
Unique identifier for the data source or dataset.
Dimension IDSdimension_idslist
Dimension IDs used to break down the returned values.
Filtersfiltersobject
Filters applied when loading the metric's data.
Start datestart_datedateRequired
First date to include.
End dateend_datedateRequired
Last date to include.
GranularitygranularitytextRequired
How to group the values.One of: daily, weekly, monthly, quarterly, yearly, allTime.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "dataPoints": [
        {
          "date": "example",
          "dimensions": {},
          "value": 1
        }
      ],
      "metric": {
        "id": "example",
        "name": "example",
        "sourceId": 1
      },
      "syncInfo": {
        "lastSyncedAt": "example",
        "message": "example",
        "status": "example"
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

Get organization

Get organization.

Inputs

None.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "address": {
        "city": "example",
        "country": "example",
        "state": "example",
        "street": "example",
        "zip": "example"
      },
      "billingName": "example",
      "companyName": "example",
      "id": 1,
      "managedBy": {
        "id": 1,
        "name": "example"
      },
      "metadata": {
        "annualRevenue": "example",
        "businessType": [
          "example"
        ],
        "companySize": "example",
        "industry": [
          "example"
        ]
      },
      "name": "example",
      "settings": {
        "calendar": "example",
        "dateFormat": "example",
        "firstDayOfWeek": "example",
        "fiscalYearStart": {
          "day": 1,
          "month": 1
        },
        "numberFormat": "example"
      },
      "taxNumber": "example",
      "websiteUrl": "example"
    },
    "requestId": "example",
    "status": "example"
  }
}

Ingest dataset rows

Ingest dataset rows.

Inputs

Datasetdataset_idnumberRequired
Unique identifier for the dataset.
Idempotency keyidempotency_keytext
A client-generated unique value (for example, a UUID) that lets you safely retry this request without risking duplicate side effects. If a request is retried with the same key within 24 hours of the original request, the API returns the original response instead of re-executing the operation.
RecordsrecordslistRequired
Records to ingest into the dataset. Each record is keyed by column ID.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "ingestionId": "example",
      "message": "example",
      "status": "example"
    },
    "requestId": "example",
    "status": "example"
  }
}

List dashboard metrics

List dashboard metrics.

Inputs

Dashboarddashboard_idnumberRequired
Unique identifier for the dashboard.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "datablocks": [
        {
          "id": 1,
          "metrics": [
            {}
          ],
          "name": "example",
          "visualizationType": "example"
        }
      ]
    },
    "requestId": "example",
    "status": "example"
  }
}

List dashboards

List dashboards.

Inputs

Searchsearchtext
Filters the results by a search term. The search is case-insensitive.
Pagepagenumber
Specifies the zero-based page number to return.At least 0.
Page sizepage_sizenumber
Specifies the maximum number of items to return per page.From 1 to 100.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "items": [
        {
          "id": 1,
          "integrationKeys": [
            "example"
          ],
          "name": "example",
          "tags": [
            "example"
          ]
        }
      ],
      "pagination": {
        "page": 1,
        "pageSize": 1,
        "totalItems": 1
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

List data sources

List data sources.

Inputs

Searchsearchtext
Filters the results by a search term. The search is case-insensitive.
Data connection IDdata_connection_idnumber
Unique identifier for the connection.
Sort bysort_bytext
Specifies the field used to sort the results. Data sources are grouped by statusInfo.statusCode and then sorted by the specified field within each status group.One of: name, createdAt, lastActivityAt.
Sort ordersort_ordertext
Specifies the sort direction. Supported values are asc and desc.
Pagepagenumber
Specifies the zero-based page number to return.At least 0.
Page sizepage_sizenumber
Specifies the maximum number of items to return per page.From 1 to 100.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "items": [
        {
          "connectionId": 1,
          "createdAt": "example",
          "id": 1,
          "integrationKey": "example",
          "lastActivityAt": "example",
          "name": "example",
          "statusInfo": {},
          "timezone": "example"
        }
      ],
      "pagination": {
        "page": 1,
        "pageSize": 1,
        "totalItems": 1
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

List dataset ingestions

List dataset ingestions.

Inputs

Datasetdataset_idnumberRequired
Unique identifier for the dataset.
Pagepagenumber
Specifies the zero-based page number to return.At least 0.
Page sizepage_sizenumber
Specifies the maximum number of items to return per page.From 1 to 100.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "items": [
        {
          "duration": 1,
          "id": "example",
          "initiatedAt": "example",
          "initiatedBy": {},
          "status": "example"
        }
      ],
      "pagination": {
        "page": 1,
        "pageSize": 1,
        "totalItems": 1
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

List dataset rows

List dataset rows.

Inputs

Datasetdataset_idnumberRequired
Unique identifier for the dataset.
Pagepagenumber
Specifies the zero-based page number to return.At least 0.
Page sizepage_sizenumber
Maximum number of rows returned per page.From 1 to 1000.
Sort bysort_bytext
Specifies the field used to sort the results.
Sort ordersort_ordertext
Specifies the sort direction. Supported values are asc and desc.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "items": [
        {}
      ],
      "lastUpdatedAt": "example",
      "pagination": {
        "page": 1,
        "pageSize": 1,
        "totalItems": 1
      },
      "schema": [
        {
          "dataType": "example",
          "displayName": "example",
          "id": "example",
          "order": 1,
          "visible": true
        }
      ]
    },
    "requestId": "example",
    "status": "example"
  }
}

List datasets

List datasets.

Inputs

Data sourcedata_source_idnumber
Unique identifier for the data source.
Typetypetext
Type of dataset: - dataset: A dataset that holds its own data, either ingested through the API or synced from a data source. - mergedDataset: A dataset assembled from other datasets. It has no data source of its own, so dataSourceId is null.One of: dataset, mergedDataset.
Searchsearchtext
Filters the results by a search term. The search is case-insensitive.
Sort bysort_bytext
Specifies the field used to sort the results. Datasets are grouped by statusInfo.statusCode and then sorted by the specified field within each status group.One of: name, createdAt, lastActivityAt.
Sort ordersort_ordertext
Specifies the sort direction. Supported values are asc and desc.
Pagepagenumber
Specifies the zero-based page number to return.At least 0.
Page sizepage_sizenumber
Specifies the maximum number of items to return per page.From 1 to 100.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "items": [
        {
          "createdAt": "example",
          "dataSourceId": 1,
          "id": 1,
          "ingestionInfo": {},
          "ingestionSupported": true,
          "lastActivityAt": "example",
          "name": "example",
          "statusInfo": {},
          "syncInfo": {},
          "timezone": "example",
          "type": "example",
          "verificationInfo": {}
        }
      ],
      "pagination": {
        "page": 1,
        "pageSize": 1,
        "totalItems": 1
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

List metrics

List metrics.

Inputs

Source IDsource_idnumber
Unique identifier for the data source or dataset.
Searchsearchtext
Filters the results by a search term. The search is case-insensitive.
Pagepagenumber
Specifies the zero-based page number to return.At least 0.
Page sizepage_sizenumber
Specifies the maximum number of items to return per page.From 1 to 100.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "items": [
        {
          "description": "example",
          "dimensions": [
            {}
          ],
          "id": "example",
          "name": "example",
          "sourceId": 1,
          "supportsDrilldown": true,
          "verificationInfo": {}
        }
      ],
      "pagination": {
        "page": 1,
        "pageSize": 1,
        "totalItems": 1
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

Rename dataset

Rename dataset.

Inputs

Datasetdataset_idnumberRequired
Unique identifier for the dataset.
Namenametext
Display name of the dataset.

Outputs

dataobject
The response from Databox.
Example output
{
  "data": {
    "data": {
      "columnCount": 1,
      "createdAt": "example",
      "dataSourceId": 1,
      "id": 1,
      "ingestionInfo": {
        "initiatedAt": "example",
        "lastSuccessfulIngestionAt": "example",
        "status": "example"
      },
      "ingestionSupported": true,
      "lastActivityAt": "example",
      "managedBy": {
        "id": 1,
        "name": "example"
      },
      "maxSize": 1,
      "name": "example",
      "primaryKey": [
        "example"
      ],
      "rowCount": 1,
      "size": 1,
      "statusInfo": {
        "description": "example",
        "errorType": "example",
        "reason": "example",
        "status": "example",
        "statusCode": "example",
        "userAction": "example"
      },
      "syncInfo": {
        "initiatedAt": "example",
        "lastSuccessfulSyncAt": "example",
        "status": "example",
        "type": "example"
      },
      "syncInterval": 1,
      "timezone": "example",
      "type": "example",
      "verificationInfo": {
        "isVerified": true,
        "verifiedAt": "example",
        "verifiedBy": {
          "id": 1,
          "name": "example"
        }
      }
    },
    "requestId": "example",
    "status": "example"
  }
}

On this page