---
title: "Retrieve an import template"
method: POST
path: "/catalog-connector-templates/actions/generate"
tags: ["Catalog Connector Files"]
---

# Retrieve an import template

`POST /catalog-connector-templates/actions/generate`

## Request

- Base URL: `https://api.fabric.inc/v3`
- URL: `https://api.fabric.inc/v3/catalog-connector-templates/actions/generate`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/fabric/apis/catalog-connector/docs/catalog-connector-templates/actions/generate/post.ts> (a function with typed inputs; its response is checked against the schema)

Use this endpoint to retrieve the product import template for Catalog Connector in either CSV or JSONL format, based on your preferred data handling method. You can open CSV template in applications, such as Excel or Google Sheets and JSONL template in text editors compatible with JSONL, such as Visual Studio Code. After filling in product data, save the template file with a unique name on your local system.

## Headers

- `x-fabric-tenant-id` string, required
- `x-fabric-request-id` string

## Request body

- object: Template request
  - `type` 'ITEM' | 'BUNDLE', required: Specify the product type you want to import using the product import template you will receive from a successful response.
  - `formatType` 'csv' | 'jsonl', required: Specify the file format used to upload to Catalog Connector.

## Response `200`

OK

## Other responses

- `400`: Request is invalid or malformed
- `401`: The requester is unauthorized.
- `403`: The user isn't allowed to perform this action.
- `404`: The requested entity isn't found
- `500`: Internal server error

---

[API](https://skmtc.dev/fabric/apis/catalog-connector.md) - [All operations](https://skmtc.dev/fabric/apis/catalog-connector/llms.txt) - [OpenAPI document](https://skmtc.dev/fabric/apis/catalog-connector/revisions/878ef9866561?raw)
