> ## Documentation Index
> Fetch the complete documentation index at: https://snowseo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a template

> Create a reusable subject and body.

**Body**: `name` (unique within the brand), `subject`, `body` (Markdown). A brand may hold up to 100 templates.

A template is a reusable subject and body. A draft **copies** the template when it is composed, so editing one later never rewrites mail already queued or sent. See [Merge variables](https://snowseo.com/docs/api-reference/endpoints/outreach-sending.md#merge-variables).


## OpenAPI

````yaml POST /v3/outreach/templates
openapi: 3.0.0
info:
  title: SnowSEO API
  description: API documentation for SnowSEO
  version: 1.0.0
servers:
  - url: https://api.snowseo.com
    description: Production server
security:
  - bearerAuth: []
  - apiKey: []
externalDocs:
  url: https://snowseo.com/docs
  description: Find more info here
paths:
  /v3/outreach/templates:
    post:
      tags:
        - Outreach
      summary: Create an outreach email template
      description: >-
        Save a reusable subject and body for pitching. A draft COPIES the
        template when it is composed, so editing one later never rewrites mail
        already queued or sent. Allowed merge variables: {{first_name}},
        {{contact_name}}, {{contact_role}}, {{target_site_name}},
        {{prospect_domain}}, {{target_page_url}}, {{display_name}},
        {{your_brand}}, {{your_domain}}. target_site_name and prospect_domain
        refer to the recipient; your_brand and your_domain refer to the sender.
        display_name is the sending mailbox name. Use only these names in new
        templates; unknown variables become empty strings. A team may hold at
        most 100 templates, and names are unique within a team.
      operationId: createOutreachTemplate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - subject
                - body
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 120
                  description: Internal label, unique within the team.
                subject:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: Subject line. May contain merge variables.
                body:
                  type: string
                  minLength: 1
                  maxLength: 20000
                  description: Markdown body. May contain merge variables.
      responses:
        '201':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  template:
                    type: object
                    properties:
                      id:
                        type: string
                      teamId:
                        type: string
                      name:
                        type: string
                      subject:
                        type: string
                      body:
                        type: string
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                    additionalProperties: true
                additionalProperties: true
        4XX:
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  reference:
                    type: string
        5XX:
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  code:
                    type: string
                  message:
                    type: string
                  reference:
                    type: string
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your SnowSEO API key (sk_...).
    apiKey:
      type: apiKey
      name: x-api-key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.