Skip to main content

List CSV Templates

GET 

/api/csv-templates

Returns a paginated list of CSV import/export templates. Supports filtering by model type, pagination, and archive status.

Authentication: Requires Bearer token

Response fields:

  • id: Template ID
  • name: Template name (unique per model type)
  • template_type: The model type this template is for (e.g. 'product', 'sales_order')
  • columns: Array of column mappings
  • used_count: How many times this template has been used
  • last_import: Timestamp of last import using this template
  • last_export: Timestamp of last export using this template
  • archived_at: Archive timestamp (null if active)

Request

Responses

Successful response