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
Load custom setting options
Returns selectable options for a custom extraction setting that is backed by source entities. Use this endpoint when an extraction template exposes a select custom setting with dynamic source metadata and the UI needs to populate its choices for one or more accounts.
Account IDs in the request are remote account IDs from the source platform (the same string IDs used by extraction template preview), scoped by the provided connection_id. Search and pagination are applied over the loaded option list by Improvado, so source APIs do not need to support filtering or paging.
path Parameters
datasource_nameData source name.
Load custom setting options › Request Body
template_idExtraction template ID whose custom setting is being resolved.
connection_idConnection ID used to resolve credentials and scope accounts.
account_idsRemote account IDs from the source platform, scoped by connection_id. These are the same string account IDs used by extraction template preview.
custom_setting_nameCustom setting name from the extraction template.
search_queryOptional case-insensitive search query applied to loaded options.
pagePage number for paginated options.
page_sizeNumber of options to return per account.
Load custom setting options › Responses
Custom setting options grouped by account.
custom_setting_nameCustom setting name from the request.

