logo
TemplatesCreate template
Templates

Create template

Create a new email template. The shortcut field accepts a single uppercase letter (A-Z) for quick insertion, or an empty string for no shortcut.

curl -X POST "https://api.sendkit.ai/v1/templates" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "name": "Initial Outreach",
  "content": "<p>Hi {{firstName}},</p><p>I noticed {{company}} is growing fast and wanted to reach out...</p>",
  "shortcut": "A"
}'
{
  "success": true,
  "data": {
    "_id": "666f1a2b3c4d5e6f7a8b9c0d",
    "name": "Initial Outreach",
    "content": "<p>Hi {{firstName}},</p><p>I noticed {{company}} is growing fast and wanted to reach out...</p>",
    "shortcut": "A",
    "workspaceId": "664f0a1b2c3d4e5f6a7b8c9e",
    "createdBy": "664f0a1b2c3d4e5f6a7b8c9d",
    "createdAt": "2025-06-10T10:30:00.000Z",
    "updatedAt": "2025-06-10T10:30:00.000Z"
  }
}
POST
/v1/templates
POST
API Key (header: X-Api-Key)
X-Api-Keystring
Required

Platform API key (sk_user_...) or Workspace API key (sk_...)

Platform API key (sk_user_...) or Workspace API key (sk_...)
Bearer Token
Bearer Tokenstring
Required

API key as Bearer token

API key as Bearer token
Content-Typestring
Required

The media type of the request body

Options: application/json
namestring
Required

Template name

contentstring
Required

Template HTML content. Supports variables like {{firstName}}, {{company}}, etc.

shortcutstring

Single uppercase letter (A-Z) keyboard shortcut, or empty string for no shortcut

Pattern: ^[A-Z]$
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-Api-Keystring
Required

API Key for authentication. Platform API key (sk_user_...) or Workspace API key (sk_...)

header
Authorizationstring
Required

Bearer token. API key as Bearer token

Body

application/json
namestring
Required

Template name

contentstring
Required

Template HTML content. Supports variables like \\{\\{firstName\\}\\}, \\{\\{company\\}\\}, etc.

shortcutstring

Single uppercase letter (A-Z) keyboard shortcut, or empty string for no shortcut

Responses