---
title: "Create HTML template"
method: POST
path: "/figma/files/{file_id}/export/{esp_id}/"
tags: ["Export File to ESP"]
---

# Create HTML template

`POST /figma/files/{file_id}/export/{esp_id}/`

## Request

- Base URL: `http://api.cannoli.app/api/v1`
- URL: `http://api.cannoli.app/api/v1/figma/files/{file_id}/export/{esp_id}/`
- Auth: none declared

Send the HTML from one of your Cannoli files to a given Email Service Provider (ESP).

Send a POST request with the name Cannoli will assign to the ESP template. You must send the ID for your 
file, followed by the ID f your pre-configured ESP.

## Request body

- CreateESPTemplate
  - `name` string, required

## Response `200`

ESP integration created successfully

- CreateESPTemplateResponse
  - `detail` 'success', required

---

[API](https://skmtc.dev/cannoli/apis/cannoli-backend-api.md) - [All operations](https://skmtc.dev/cannoli/apis/cannoli-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cannoli/apis/cannoli-backend-api/revisions/d27aef14fd7a?raw)
