Work with predefined templates that define what data to extract from a data source.
Extract templates are blueprints that specify:
- Available fields from a data source
- Default extraction settings and parameters
- Supported date ranges and filters
Global templates are created and maintained by Improvado. When you create an extract, you select a template and optionally customize its settings for your specific use case.
List extraction templates for a datasource
List extraction templates available for datasource
path Parameters
datasource_nameDatasource name
List extraction templates for a datasource › Responses
Get a list of extraction templates
countNumber of extract templates
nextURL to the next page
previousURL to the previous page
Create an extraction template
Create a custom (agency-level) extraction template based on a parent global template.
For wide report templates (parent has allow_to_select_dimensions or is_created_from_wide),
a connection_id is required and the selected fields are validated against the DSAS API.
Required RBAC permission: EXTRACT.CREATE.
path Parameters
datasource_nameDatasource name
Create an extraction template › Request Body
parent_idID of the parent (global) extraction template to base this template on
titleTitle for the new template (must be unique within the agency)
descriptionDescription of the template (can be empty)
fieldsList of field names to include in the template
Extraction schedule configuration
additional_paramsAdditional parameters for the template (e.g. time_granularity)
hashed_fieldsList of field names to hash (optional)
historical_data_depth_limitLimit on historical data depth in days (optional, null for no limit)
connection_idConnection ID, required for wide report templates (parent has allow_to_select_dimensions or is_created_from_wide)
Create an extraction template › Responses
Template created successfully
idExtract Template ID
titleExtract Template title
descriptionExtract Template description
data_classData class
datasource_nameData source name
schedules_limitSchedules limit
Get an extraction template
Returns detailed info about extraction template
path Parameters
datasource_nameDatasource name
idExtract Template ID
Get an extraction template › Responses
Get an extraction template
idExtract Template ID
titleExtract Template title
descriptionExtract Template description
data_classData class
datasource_nameData source name
schedules_limitSchedules limit
Preview extraction template data
Returns a preview of data that would be extracted using the given template configuration. The response includes both the data rows and column metadata.
path Parameters
template_idA unique integer value identifying this Extraction template.
Preview extraction template data › Request Body
connection_idConnection ID to use for the preview.
Custom settings for the extraction.
fieldsList of fields to include in the preview.
dynamic_fieldsList of dynamic fields to include.
accountsList of account IDs.
custom_filtersCustom filters to apply. Null if no filters.
Preview extraction template data › Responses
Preview data with rows and column metadata

