Visitar URL original
Get Template for Flow Message | Klaviyo API ReferenceSkip to content

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

KlaviyoKlaviyoDevelopers

GEThttps://a.klaviyo.com/api/flow-messages/{id}/template

Return the related template

Revision header
revision: 2026-10-15required
Scopes
templates:read
Rate limits
Burst: 3/sSteady: 60/m

Path parameters

  • id#stringrequired

Query parameters

  • fields[template]#string[]

    For more information please visit API overview

    Show 9 allowed values
    • amp
    • created
    • editor_type
    • html
    • id
    • name
    • screenshot_url
    • text
    • updated

Headers

  • revision#stringrequired

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

    2026-10-15

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequirednullable
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • template
    • id#stringrequired

      The ID of template

    • attributes#objectrequired
      Show 8 fields
      • name#stringrequired

        The name of the template

      • editor_type#stringrequired

        editor_type has a fixed set of values:

        • SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template
        • SIMPLE: A rich text editor template
        • CODE: A custom HTML template
        • USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor
      • html#stringrequired

        The rendered HTML of the template

      • text#stringnullable

        The template plain_text

      • amp#stringnullable

        The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at Send AMP emails in Klaviyo

      • created#string<date-time>nullable

        The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

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

      • updated#string<date-time>nullable

        The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)

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

      • screenshot_url#stringnullable

        A presigned URL to an image of the rendered template, valid for 24 hours. null when no screenshot is currently available for the template.

  • 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