Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/reference/create_template_preview_send_job.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15/openapi/stable/apis/create_template_preview_send_job.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-10-15

Create Template Preview Send Job

POSThttps://a.klaviyo.com/api/template-preview-send-jobs

Send a test email of a template to one or more recipients.

Revision header
revision: 2026-10-15required
Scopes
templates:write
Rate limits
Burst: 1/sSteady: 15/mDaily: 100/d

Query parameters

  • fields[template-preview-send-job]#string[]

    For more information please visit API overview

    Allowed values:
    • created_at
    • id
    • status

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-10-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • template-preview-send-job
    • attributes#objectrequired
      Show 2 fields
      • recipients#string[]required

        A list of email addresses to send the test email to. Limited to 5 recipients per request.

      • context#objectnullable

        A JSON object of merge-variable values to render the template with. See the template context docs for details.

    • relationships#objectrequired
      Show 2 fields
      • template#objectrequired
        Show 1 field
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • template
          • id#stringrequired

            The template to send as a preview.

      • profile#object
        Show 1 field
        • data#object
          Show 2 fields
          • type#stringrequired
            Allowed values:
            • profile
          • id#stringrequired

            Optional profile to use as the merge-variable source when rendering. If omitted, a synthetic profile is used.

Responses

202Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • template-preview-send-job
    • id#stringrequired

      ID of the test-send job.

    • attributes#objectrequired
      Show 2 fields
      • status#stringrequired

        The status of the job.

        Allowed values:
        • cancelled
        • complete
        • processing
        • queued
      • created_at#string<date-time>required

        Datetime when the job was created

        Example: 2022-11-08T00:00:00+00:00

  • meta#object

    Response-level metadata

    Show 1 field
    • agent_hints#object

      Optional hints emitted by the API for agent callers

      Show 1 field
      • next_steps#string[]

        Suggested follow-up actions for agents to take after this response

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string