Skip to content

Publishing Template API V3 — Developer Guide

Applies to: Sprinklr Publishing Template APIs V3 — POST /api/v3/publishing/message

V2 API reference: Publishing Template


1. Overview

Publishing templates let you send structured, interactive private messages — quick replies, carousels, cards, list pickers, forms, appointment and payment requests — instead of plain text. You choose a template by setting the type field on the attachment object inside the message content. The channel determines which template types are valid.

All publishing templates in V3 are sent through a single endpoint:

OperationMethod and pathoperationId
Reply to or send a new private messagePOST /api/v3/publishing/messagePublishingApiV3_sendPrivateMessage

Tag: Publishing V3. Request body is required, media type application/json, schema Reply.

For more details refer to the Publishing V3 API Reference.

1.1 Request data model

Reply
├── content              (Content)      — required by schema
│   ├── title            (string)
│   ├── text             (string)
│   ├── richText / isRichText
│   ├── templateId       (string)
│   └── attachment       (Attachment)   — discriminated by "type"
├── taxonomy             (Taxonomy)     — required by schema
│   └── campaignId       (string)       — required by schema
├── scheduleDate         (int64, epoch ms) — required by schema
├── toProfile            (ProfileKey)
├── accountId            (int64)
├── inReplyToMessageId   (string)
├── approval             (Approval)
├── channelOptions[]     (ChannelOptions)
└── allowDuplicateMessages (boolean)

The attachment object is a oneOf with discriminator.propertyName: type. The value of type selects the template.

1.2 Channel and template-type support matrix

Template availability is documented per channel. A type that is valid on one channel is not automatically valid on another.

ChannelchannelTypeDocumented template types
FacebookFACEBOOKQUICK_REPLY, BUTTON_TEMPLATE, CAROUSEL
InstagramINSTAGRAMQUICK_REPLY, CAROUSEL
TwitterTWITTERQUICK_REPLY
WhatsAppWHATSAPP_BUSINESSLIST_PICKER, CARD (plain / image / video / document header), GEO_LOCATION, REQUEST_LOCATION, ADDRESS, CTA_URL
Apple Business ChatAPPLE_BUSINESS_CHATRICH_LINK, LIST_PICKER, plain text (no attachment), AUTHENTICATION, QUICK_REPLY, TIME_PICKER, APP_LINK, APPLE_PAY, FORM
Sprinklr Live ChatSPRINKLR_LIVE_CHATCARD, QUICK_REPLY, CAROUSEL, PRODUCT_LIST, APPOINTMENT, SURVEY, SECURE_FORM, RICH_TEXT_CAROUSEL

1.3 Where this endpoint sits in the wider Publishing V3 surface

This guide covers only /publishing/message. The remaining operations, listed for orientation:

AreaOperations
DraftPOST / GET / PUT / DELETE /api/v3/publishing/draft; POST /api/v3/publishing/draft/schedule?draftId=
PostPOST /api/v3/publishing/post; GET /api/v3/publishing/post?postIds=; PUT /api/v3/publishing/post/workflow-properties?accountId=&channelId=; DELETE /api/v3/publishing/post?postId=
MessagePOST /api/v3/publishing/message — this guide
ReplyPOST /api/v3/publishing/reply; POST /api/v3/publishing/reply/by-case?caseId=
PreviewPOST /api/v3/publishing/preview?messageId=&exportType=&name=; GET /api/v3/publishing/preview?previewId= (annotated "Need to review" in the ticket)

2. Base URLs and environments

https://api3.sprinklr.com/{env}/api/v3/publishing/message

env — default prod. Allowed values:

prod, prod0, prod2, prod3, prod4, prod5, prod6, prod8, prod11, prod12, prod15, prod16, prod17, prod18, prod19, prod21, prod25

Use the environment your Sprinklr partner instance is provisioned on. Sending to the wrong environment produces authentication or not-found errors, not a redirect.


3. Authentication and common headers

All Case API calls are authenticated with OAuth 2.0. See Developer Tools in Sprinklr for API key and secret generation, and the Authorize flow.

HeaderValuePurposeRequired on
Authorization******Credential used by the API to authenticate a user with the serverAll requests
Key{{apiKey}}API key that authenticates the application with the serverAll requests
Content-Typeapplication/jsonDeclares the request body media typePOST, PUT, PATCH
Acceptapplication/jsonDetermines the acceptable response type from the serverAll requests

4. Shared request parameters

FieldTypeRequired (schema)Required (channel docs)Description
contentobject (Content)YesYesMessage body and attachment.
content.titlestringNoOptionalMessage title.
content.textstringNoOptionalMessage text.
content.attachmentobject (Attachment)NoRequired (except Apple Business Chat plain text)The template payload. Discriminated by type.
content.templateIdstringNo—Identifier of a saved template.
content.richText / content.isRichTextstring / booleanNo—Rich-text body and flag.
taxonomyobject (Taxonomy)YesRequiredCampaign and custom-property assignment.
taxonomy.campaignIdstringYesRequiredCampaign the message is attributed to.
taxonomy.subCampaignIdstringNo—Sub-campaign.
taxonomy.clientCustomPropertiesmap<string, string[]>NoOptionalClient custom properties. Channel docs type this as "String"; the schema is a map of string arrays.
taxonomy.partnerCustomPropertiesmap<string, string[]>NoOptionalPartner custom properties. Same type discrepancy.
taxonomy.tagsstring[]NoOptionalTags. Channel docs type this as "String"; the schema is an array.
taxonomy.urlShortenerIdstringNoOptionalURL shortener configuration.
scheduleDateint64 (epoch ms)YesOptional on Facebook/Instagram; Required on WhatsApp/TwitterSend time in epoch milliseconds.
accountIdint64NoRequiredAccount the message is sent from.
inReplyToMessageIdstringNoRequiredId of the message being replied to.
toProfileobject (ProfileKey)NoRequiredRecipient profile key.
toProfile.channelTypestringNoRequiredChannel of the recipient.
toProfile.channelIdstringNoRequiredChannel-specific recipient id.
toProfile.screenNamestringNoRequired on Facebook / Twitter / Instagram / Live Chat; Optional on Apple Business Chat; absent from the WhatsApp tableRecipient screen name.
approvalobject (Approval)NoOptionalApproval routing.
approval.typesee §10NoOptionalChannel docs give the enum ACCOUNT_OWNER, USER, APPROVAL_PATH, NONE with default NONE; the schema types it as an Option object.
approval.idstringNoOptionalApprover id.
allowDuplicateMessagesbooleanNoUsed in Instagram examplesPermits sending a message identical to a recent one.
channelOptionsarray (ChannelOptions)No—Channel-specific options. Not exercised in any channel example.
statusstringNo—e.g. SCHEDULED, APPROVAL, SENT.
externalId, sourceLocale, contentLocale, messageCategory, conversationId, parentMessageId, accountGroupId, permalink, publishedDate, createdTime, modifiedTime, authorId, enrichments, customPropertiesMetadata, autoResponsemixedNo—Additional Reply fields available in the schema but not used by the template documentation.

Dev note — Sprinklr Live Chat accountId. Derive it from the Live Chat application id: if the app id is app_12345, then accountId is 12345.

Dev note — retrieving the sent post. After a successful send, use the Read Post by Post Id API or Universal Search to fetch the post details.


5. Channel reference

All payloads below are illustrative. Credentials are placeholders.

5.1 Facebook — channelType: FACEBOOK

Supports QUICK_REPLY, BUTTON_TEMPLATE, CAROUSEL.

QUICK_REPLY

ParameterTypeRequiredDescription
typestringYesQUICK_REPLY
messagestringNoPrompt shown above the choices.
quickReplies[]arrayYesChoice list.
quickReplies[].titlestringYesChoice label.
quickReplies[].subtitlestringNoSecondary label.
quickReplies[].imageUrlstringNoIcon for the choice.
quickReplies[].actionDetailobjectYesAction to run on tap.
quickReplies[].actionDetail.actionstringYesTEXT
curl --location 'https://api3.sprinklr.com/prod/api/v3/publishing/message' \
--header 'Authorization: Bearer {{accessToken}}' \
--header 'Key: {{apiKey}}' \
--header 'Content-Type: application/json' \
--data '{
  "accountId": 000000,
  "inReplyToMessageId": "MESSAGE_ID",
  "toProfile": {
    "channelType": "FACEBOOK",
    "channelId": "CHANNEL_ID",
    "screenName": "SCREEN_NAME"
  },
  "taxonomy": { "campaignId": "CAMPAIGN_ID" },
  "content": {
    "attachment": {
      "type": "QUICK_REPLY",
      "message": "Please pick an option",
      "quickReplies": [
        {
          "title": "Track my order",
          "actionDetail": { "action": "TEXT" }
        },
        {
          "title": "Talk to an agent",
          "actionDetail": { "action": "TEXT" }
        }
      ]
    }
  }
}'

BUTTON_TEMPLATE

ParameterTypeRequiredDescription
typestringYesBUTTON_TEMPLATE
elementList[]arrayYesOuter element list.
elementList[].titlestringYesThe question or prompt.
elementList[].elementList[]arrayYesButtons.
elementList[].elementList[].titlestringYesButton label.
elementList[].elementList[].actionTypestringYesweb_url or no_action.
elementList[].elementList[].urlstringConditionalRequired when actionType is web_url.
elementList[].elementList[].typestringNoe.g. text.

CAROUSEL

ParameterTypeRequiredDescription
typestringYesCAROUSEL
cardAttachmentList[]arrayYesCards.
cardAttachmentList[].typestringYesCARD
cardAttachmentList[].titlestringYesCard title.
cardAttachmentList[].descriptionstringYesCard description.
cardAttachmentList[].previewImageUrlstringYesCard image.
cardAttachmentList[].buttons[]arrayYesCard buttons.
buttons[].titlestringYesButton label.
buttons[].actionDetailobjectYesAction.
buttons[].actionDetail.actionstringYesOPEN_URL or POST_BACK.
buttons[].actionDetail.urlstringConditionalRequired when action is OPEN_URL.
buttons[].actionDetail.datastringConditionalRequired when the action type is TEXT.

Observed response shape:

{ "data": ["POST_593685584"], "errors": [] }

V2 reference: Facebook Dynamic Templates[doc:turn1doc4].

5.2 Instagram — channelType: INSTAGRAM

Supports QUICK_REPLY and CAROUSEL. Both documented examples set allowDuplicateMessages: true.

QUICK_REPLY

ParameterTypeRequiredDescription
typestringYesQUICK_REPLY
messagestringYesPrompt text.
quickReplies[].titlestringYesChoice label.
quickReplies[].actionDetailobjectYes{ "action": "TEXT" }. The parameter table spells this actionDetails; the working JSON uses actionDetail. See §10.

CAROUSEL

ParameterTypeRequiredDescription
typestringYesCAROUSEL
cardAttachmentList[].typestringYesCARD
cardAttachmentList[].titlestringYesCard title.
cardAttachmentList[].descriptionstringYesCard description.
cardAttachmentList[].previewImageUrlstringYesCard image.
cardAttachmentList[].buttons[].titlestringYesButton label.
cardAttachmentList[].buttons[].actionDetailobjectYese.g. { "action": "TEXT", "data": "TEXT_POST_BACK" }.

Caveat. The V3 source document's "Carousel" example request body actually contains a QUICK_REPLY payload. Use the field table, not that example, when building a carousel. See §10.

V2 reference: Instagram Dynamic Templates[doc:turn1doc8].

5.3 Twitter — channelType: TWITTER

Supports QUICK_REPLY only. scheduleDate is marked Required in the Twitter document.

ParameterTypeRequiredDescription
typestringYesQUICK_REPLY
messagestringYesPrompt text.
quickReplies[].idstringYesChoice id.
quickReplies[].titlestringYesChoice label.
quickReplies[].subtitlestringNoSecondary label.
quickReplies[].imageUrlstringNoIcon.
quickReplies[].payloadstringNoNot supported on Facebook and Twitter.
quickReplies[].actionDetailobjectYes{ "action": "TEXT" }

Caveat. The Twitter document's attachment table lists card fields (title, previewImageUrl, disableManualResponse, buttons[]) that its own working example does not send. The example sends message + quickReplies[]. The table above follows the example. See §10.

V2 reference: Twitter Dynamic Templates.

5.4 WhatsApp — channelType: WHATSAPP_BUSINESS

The WhatsApp table marks scheduleDate Required and does not list toProfile.screenName.

LIST_PICKER

ParameterTypeRequiredDescription
typestringYesLIST_PICKER
header.textstringYesHeader text.
bodystringYesBody text.
footerTextstringYesFooter text.
buttonTitlestringYesLabel of the button that opens the list.
sections[]arrayYesList sections.
sections[].titlestringYesSection title.
sections[].items[].idstringYesItem id.
sections[].items[].titlestringYesItem title.
sections[].items[].subtitlestringNoItem subtitle.

CARD (plain, or with an image / video / document header)

ParameterTypeRequiredDescription
typestringYesCARD
headerobjectYesHeader. For media headers: type (IMAGE, VIDEO, DOC) Required, url Required for image and document, title Optional. For text headers use header.text.
footerTextstringYesFooter text.
buttons[].idstringYesButton id.
buttons[].titlestringYesButton label.
buttons[].subtitlestringNoButton subtitle.

Caveat. The source document's "CARD with Image" example sends "type": "LIST_PICKER" with an image header rather than CARD. See §10.

GEO_LOCATION

ParameterTypeRequiredDescription
typestringYesGEO_LOCATION
latitudenumberYesLatitude.
longitudenumberYesLongitude.
namestringNoPlace name.
addressstringNoStreet address.

REQUEST_LOCATION

ParameterTypeRequiredDescription
typestringYesREQUEST_LOCATION
messagestringNoPrompt shown with the request.

ADDRESS

ParameterTypeRequiredDescription
typestringYesADDRESS
header / message / footerstringNoSurrounding copy.
addressFields[]arrayYesFields to collect.
addressFields[].fieldNamestringYese.g. CITY.
addressFields[].prefilledValuePlaceHolderobjectNoassetClass (e.g. MESSAGE), customFieldName, displayName.
addressFields[].copyResponseToCustomFieldstringNoCustom field to copy the answer into.

CTA_URL

ParameterTypeRequiredDescription
typestringYesCTA_URL
header.imageobjectNo{ "type": "IMAGE", "url": "…" }.
bodystringNoBody text.
footerTextstringNoFooter text.
ctaUrlstringYesDestination URL.
displayTextstringYesButton label.
urlTypestringYesSTATIC.

V2 reference: WhatsApp Dynamic Templates[doc:turn1doc5].

5.5 Apple Business Chat — channelType: APPLE_BUSINESS_CHAT

toProfile.screenName is Optional on this channel.

Documented image style dimensions: Icon 40×40, Small 60×60, Large 263×150. style values used on list items and on receivedMessage / replyMessage: icon, small, large.

RICH_LINK

ParameterTypeRequiredDescription
typestringYesRICH_LINK (default).
mediaUrlstringYesMedia to render.
linkstringNoDestination URL.
titlestringNoLink title.
previewUrlstringNoPreview image.

LIST_PICKER

ParameterTypeRequiredDescription
typestringYesLIST_PICKER
multipleSelectionbooleanYesAllow multi-select across the picker.
sections[]arrayYesSections.
sections[].titlestringYesSection title.
sections[].multipleSelectionbooleanYesPer-section multi-select.
sections[].items[]arrayYesItems (title, subtitle, imageUrl, style).
receivedMessageobjectYesBubble shown to the customer before opening the picker.
replyMessageobjectYesBubble shown after the customer replies.

Plain text / LINK — send only content.text. No attachment.

AUTHENTICATION

ParameterTypeRequiredDescription
typestringYesAttachment type.
loginAppConfigIdstringNoLogin app configuration id. In the source table this row's Parameter cell is blank; the name is taken from the example payload.
additionalParametersobjectNoExtra OAuth parameters.
scopestring[]NoRequested scopes.
receivedMessage / replyMessageobjectNotitle, subTitle, secondarySubtitle, tertiarySubtitle, imageUrl.

QUICK_REPLY

ParameterTypeRequiredDescription
typestringYesQUICK_REPLY
messagestringYesPrompt text.
quickReplies[]arrayYes2 to 5 choices, single-select.
quickReplies[].idstringNoChoice id.
quickReplies[].titlestringYesChoice label.
quickReplies[].actionDetailobjectYes{ "action": "TEXT" }

TIME_PICKER

ParameterTypeRequiredDescription
typestringYesAttachment type.
timeSlots[]arrayNostartTime, duration. The example payload spells the key timeslots. See §10.
timezonestringNoTimezone for the slots.
titlestringNoPicker title.
locationobjectNolatitude, longitude, radius, title.
receivedMessage / replyMessageobjectNoBubble content.

APP_LINK (iMessage app)

ParameterTypeRequiredDescription
appIdstringYesApp id.
appNamestringYesApp name.
bIdstringYesBundle id.
urlstringYesApp URL.
useLiveLayoutbooleanNoUse live layout.
attachments[]arrayYestype Required, url Required, title Optional, description Optional.

APPLE_PAY

ParameterTypeRequiredDescription
typestringYesAttachment type.
paymentRequestobjectYeslineItems[], total (amount, label, type), countryCode, currencyCode, requiredBillingContactFields, requiredShippingContactFields, supportedCountries, shippingMethods[], applePay (supportedNetworks, merchantCapabilities).
paymentAccountIdstringNoPayment account.

FORM

ParameterTypeRequiredDescription
typestringYesAttachment type.
formobjectYesformTitle, repeatable, minCount, maxCount, fields[].
form.fields[]arrayYesname, description, type (Form, Date Picker, Picker, Select), picklistValues[] (label, value), parentChild, multiValued, defaultValue, additional (maximumDate, minimumDate, dateFormat).
submit.titlestringYesSubmit button label.
messageTitle / messageSubtitle / buttonTitlestringNoEntry-bubble copy.
showSummarybooleanNoShow a summary after submission.
receivedMessage / replyMessageobjectNoBubble content.

V2 reference: Apple Business Chat Templates.

5.6 Sprinklr Live Chat — channelType: SPRINKLR_LIVE_CHAT

Derive accountId from the Live Chat app id (app_12345 → 12345).

CARD

ParameterTypeRequiredDescription
typestringYesCARD
titlestringYesCard title.
descriptionstringNoCard description.
previewImageUrlstringYesCard image.
disableManualResponsebooleanYesDefault false. Blocks free-text replies while the card is active.
buttons[].idstringYesButton id.
buttons[].titlestringYesButton label.
buttons[].subtitlestringNoButton subtitle.
buttons[].payloadstringNoPayload.
buttons[].actionDetail.actionstringYesTEXT, or OPEN_URL (requires url).

The document's CARD example sends "type": "INFO_CARD". See §10.

QUICK_REPLY — quickReplies[] with actionDetail.action: TEXT only.

CAROUSEL and RICH_TEXT_CAROUSEL — cardAttachmentList[] of CARD objects, each with buttons[] using actionDetail.action: TEXT.

PRODUCT_LIST

ParameterTypeRequiredDescription
typestringYesPRODUCT_LIST
cardAttachmentList[]arrayYesProduct cards.
buttons[].actionDetail.actionstringYese.g. OPEN_URL.
buttons[].actionDetail.urlstringYesDestination.
buttons[].actionDetail.targetstringNoLink target.
otherConfigs.layoutTypestringNoe.g. IMAGE_TOP.
screenReaderLabelstringNoAccessibility label.

APPOINTMENT

ParameterTypeRequiredDescription
selectDateTitlestringYesDate step title.
selectTimeTitlestringYesTime step title.
selectDatePlaceholderstringNoDate placeholder.
submitDateTitlestringNoSubmit label for the date step.
numDaysintegerNoNumber of days offered.
dateFormatstringNoe.g. MMM D YYYY.
submitobjectYesid, title.
postSubmitobjectNoid, title.
slotDefinitionConfigIdstringYesSlot definition configuration.
showSubmittedContentbooleanNoEcho the submission.
postSubmitTitlestringNoTitle after submit.
fromFirstAvailableSlotbooleanNoStart from the first available slot.

SURVEY

ParameterTypeRequiredDescription
titlestringYesSurvey title.
surveyButtonobjectYesid, title.
descriptionstringNoSurvey description.
postSubmitobjectNoPost-submit button.
postSubmitTitlestringNoPost-submit title.
showSubmittedContentbooleanNoEcho the submission.
screenReaderLabelstringNoAccessibility label.

SECURE_FORM

ParameterTypeRequiredDescription
formobjectYesformTitle Required; fields[] with name and type (e.g. EMAIL).
submitobjectYestitle; actionDetail.postBackHandlerType: SECURE_FORM_POST_BACK; actionDetail.action: POST_BACK.

Dev notes. action: OPEN_URL redirects the customer to the supplied URL. Bold text inside Live Chat copy is expressed as <p style="margin: 0;1"><strong>…</strong></p>. Related KB articles: Quick Replies, Secure Forms.

V2 reference: Sprinklr Live Chat Templates[doc:turn1doc7].


6. Response format and status codes

6.1 Success

Every channel example in the V3 operation documents returns the standard Sprinklr envelope with an array of created post ids:

{
  "data": ["POST_593685584"],
  "errors": []
}

Discrepancy. The OpenAPI document declares the 200 response for POST /publishing/message as a bare array of strings (type: array, items: {type: string}), not the {data, errors} envelope. Code that parses the response should be defensive until this is confirmed. See §10.

6.2 Error responses

The operation declares the shared error responses:

StatusNameBody
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse

ErrorResponse:

{
  "data": null,
  "errors": [
    {
      "id": "5f9b2c1a4e6d7b8c9a0f1e2d",
      "code": 4001,
      "message": "account.not.found"
    }
  ],
  "metadata": {}
}

Error requires id (24-character hexadecimal ObjectId), code (integer), and message (dotted key, e.g. account.not.found).


7. V2 → V3 migration

7.1 Endpoint mapping

V2V3
https://api3.sprinklr.com/{env}/api/v2/publishing/messagehttps://api3.sprinklr.com/{env}/api/v3/publishing/message

The request body and every attachment object are unchanged. For publishing templates, migration is a path-version bump. The same six channel documents exist in both versions[doc:turn1doc1]:

ChannelV2 page
Facebook/facebook-dynamic-templates[doc:turn1doc4]
Instagram/instagram-dynamic-templates[doc:turn1doc8]
WhatsApp/whatsapp-dynamic-templates[doc:turn1doc5]
Sprinklr Live Chat/sprinklr-live-chat-templates[doc:turn1doc7]
Twitter/twitter-dynamic-templates
Apple Business Chat/apple-business-chat-templates

7.2 Field mapping

No field renames, removals, or type changes are documented between V2 and V3 for the publishing-template payload. Two observations worth confirming:

  • The V2 Instagram carousel example includes a per-card defaultButton object (actionDetail: { url, action: OPEN_URL }) that appears in no V3 example[doc:turn1doc8].
  • The V2 Instagram carousel button action is {"action": "TEXT", "data": "TEXT_POST_BACK"}, while the V3 Facebook carousel example uses {"action": "OPEN_URL", "url": …}. These are channel differences, not version differences, as far as the sources show.

7.3 Header differences

HeaderV2V3
Authorization: Bearer …YesYes
Key: …Yes[doc:turn1doc1]Yes (declared as apiKeyAuth in the spec)
Cookie: JSESSIONID=…NoAppears in captured V3 samples; not part of the contract — do not send.

7.4 Migration steps

  1. Change /api/v2/ to /api/v3/ in the request URL. Keep the same {env}.
  2. Keep sending both Authorization and Key.
  3. Leave the request body as-is. Verify against §4 that content, taxonomy (with campaignId), and scheduleDate are present — the V3 schema requires all three.
  4. Confirm taxonomy.tags is sent as an array and clientCustomProperties / partnerCustomProperties as maps of string arrays, per the schema.
  5. Make response parsing tolerant of both the {data, errors} envelope and a bare string array (§6.1).
  6. Re-test each template type per channel in a non-production {env} before cutting over.
  7. If you relied on the Instagram defaultButton, confirm with the API owner whether it is still honoured.

8. Reference — attachment types

Attachment is a oneOf with discriminator.propertyName: type. Canonical V3 wire values from the discriminator mapping:

IMAGE, VIDEO, LINK, DOC, BASE64, CAROUSEL, MULTI_MEDIA, GEO_LOCATION, CARD, CO_BROWSE_INVITE, RICH_TEXT_CAROUSEL, AUDIO, REQUEST_LOCATION, CTA_URL, ADDRESS, RICH_LINK, EVENTS, CONTACT_DETAILS_FORM, FEEDBACK_FORM, FORM, SECURE_FORM, APPOINTMENT, SURVEY, PRODUCT_CARD, PRODUCT_SHOWCASE_CARD, INFO_CARD, PRODUCT_BANNER, PRODUCT_LIST, QUICK_SELECT_PILLS, VOICE, BUTTON_TEMPLATE, LIST_TEMPLATE, POLL, ALBUM, STORY

Important gotcha. Several discriminator keys in the spec are schema names rather than wire values: QuickReplyAttachment, AuthenticationAttachment, ApplePayInteractiveAttachment, AppLinkAttachment, ListPickerAttachment, TimePickerAttachment, HSMAttachment, ProductAttachment, ThreadAttachment. The channel documents and their working examples send QUICK_REPLY, AUTHENTICATION, APPLE_PAY, APP_LINK, LIST_PICKER, TIME_PICKER. Send the documented wire values; the mapping keys look like a spec defect. See §10.

Other enums:

FieldValues
actionDetail.actionTEXT, OPEN_URL, POST_BACK
actionDetail.postBackHandlerTypeSECURE_FORM_POST_BACK (Live Chat secure form)
Facebook actionTypeweb_url, no_action
WhatsApp header typeIMAGE, VIDEO, DOC
WhatsApp urlTypeSTATIC
Apple Business Chat styleicon, small, large
Apple Business Chat form field typeForm, Date Picker, Picker, Select
Live Chat otherConfigs.layoutTypee.g. IMAGE_TOP
approval.type (per channel docs)ACCOUNT_OWNER, USER, APPROVAL_PATH, NONE (default NONE)
statuse.g. SCHEDULED, APPROVAL, SENT

9. Use cases and Best practices

Use cases

  • Deflect routine contacts. Send a Facebook or Twitter QUICK_REPLY with 2–5 choices so the customer self-selects an intent before an agent is engaged.
  • Show a catalogue in-thread. Use CAROUSEL (Facebook, Instagram, Live Chat) or PRODUCT_LIST (Live Chat) with OPEN_URL buttons to the product page.
  • Collect structured data safely. Use Live Chat SECURE_FORM or Apple Business Chat FORM instead of asking for details in free text.
  • Book a slot without leaving the conversation. Live Chat APPOINTMENT with a slotDefinitionConfigId, or Apple Business Chat TIME_PICKER.
  • Take payment in-thread. Apple Business Chat APPLE_PAY with a full paymentRequest.
  • Confirm a location. WhatsApp REQUEST_LOCATION to ask, GEO_LOCATION to send one, ADDRESS to collect a structured address.
  • Authenticate the customer. Apple Business Chat AUTHENTICATION with a configured loginAppConfigId.

Best practices

  • Check the channel matrix in §1.2 before choosing a template type. Types are not portable across channels.
  • Always send taxonomy.campaignId — it is schema-required and drives reporting attribution.
  • Send scheduleDate explicitly in epoch milliseconds. It is schema-required even where a channel document marks it optional.
  • Keep Apple Business Chat quick replies within the documented 2 to 5 choices.
  • Size Apple Business Chat images to the documented styles (Icon 40×40, Small 60×60, Large 263×150) to avoid cropping.
  • Set Live Chat disableManualResponse: true when a card must be answered by tapping a button rather than typing.
  • Use allowDuplicateMessages deliberately. It is only exercised in the Instagram examples; assume duplicate suppression is on unless you set it.
  • Retrieve the sent post with the Read Post by Post Id API or Universal Search rather than assuming the send response contains the full object.
  • Test every template type in a non-production {env} first. QA verified the templates on 2026-08-12 against the 26.10 build; re-verify against the environment you target.
  • Do not send the Cookie: JSESSIONID=… header seen in captured samples, and never commit tokens or API keys.