1. Template
Messavy
  • Messavy API
    • Connect WABA to Messavy
    • Platform user guide
    • Introduction to API integration
    • How to retrieve API key
    • How to retrieve required IDs
    • How to create a template on portal
    • How to create a Whatsapp broadcast template on portal
    • How to create a campaign on portal
    • How to upload contacts to a campaign
    • Send message
      • Get channel information
      • Get Channel Status
      • Broadcast Template Message
      • Send Conversation Message
      • Broadcast Message
    • Get message
      • Get Message Status
    • Template
      • Create Template
        POST
      • Get Template By PublicId
        GET
      • Update Template
        POST
      • Get List Approved Template
        GET
      • Delete Template
        DELETE
    • Bulk Campaign
      • Get list bulk campaign
      • Send Bulk Campaign Broadcast
      • Send Bulk Contact Message
    • Schemas
      • PartnerMessageType
      • MessageType
      • Status
      • TemplateStatus
      • TemplateMessage
      • SendMessageBroadcast
      • TextMessage
      • TextMessageWithAttachment
      • FileMessage
      • SuggestionActionType
      • Suggestion
      • WhatsappFormCreateTemplateMessage
      • CreateFormTemplateMessage
      • ResponseCreateTemplateMessage
      • ResponseGetTemplate
      • BroadcastResponseMessage
      • ChannelResponse
      • ResponseMessage
      • ResponseStatusMessage
      • BulkCampaignBroadcastRequest
      • BulkCampaignBroadcastRequestMessage
      • BulkCampaignSearchResponse
      • BulkCampaign
      • BulkCampaignStatus
      • BulkCampaignType
      • BulkCampaignBroadcastResponse
      • BulkCampaignContact
      • BulkCampaignConversationRequest
      • BulkCampaignConversationResponse
      • ErrorMessage
      • Application
      • PartnerEvent
      • ResponseChannelInfo
      • ResponseListApproveTemplate
      • WhatsappConversationParams
      • CommonGetChannelStatusResponse
      • WhatsappChannelStatusResponse
      • ChannelStatus
      • Attachment
      • AttachmentImage
      • AttachmentLink
      • AttachmentMiniProgram
      • AttachmentVideo
      • AttachmentFile
  1. Template

Create Template

POST
/channel/{publicId}/template
This API is used to Create a new template under a Channel by using the Channel publicId.

Request

Authorization
API Key
Add parameter in header
apiKey
Example:
apiKey: ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Successfully operation
Bodyapplication/json

🟠400
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.messavy.com/eip/partner/channel/3cb69db1-c410-4b83-8d37-84b823be9c06/template' \
--header 'apiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "name": "Template name",
    "description": "Template description",
    "whatsapp": {
        "name": "new_offer_xxx",
        "description": "hello_world_1",
        "whatsapp": {
            "name": "new_offer",
            "language": "en_US",
            "category": "MARKETING",
            "components": [
                {
                    "type": "HEADER",
                    "format": "IMAGE"
                },
                {
                    "type": "BODY",
                    "text": "Shop now through {{{1}}} and use code {{2}} to get {{3}} off of all merchandise."
                },
                {
                    "type": "FOOTER",
                    "text": "Thanks"
                },
                {
                    "type": "BUTTONS",
                    "buttons": [
                        {
                            "type": "QUICK_REPLY",
                            "text": "More Info"
                        },
                        {
                            "type": "QUICK_REPLY",
                            "text": "Unsubscribe from All"
                        },
                        {
                            "type": "CATALOG",
                            "text": "View catalog"
                        },
                        {
                            "type": "FLOW",
                            "text": "Complete Flow",
                            "flow": {
                                "id": "1094889789792768000"
                            }
                        }
                    ]
                }
            ],
            "example": {
                "1": "the end of August",
                "2": "25OFF",
                "3": "25%",
                "headerMediaUrl": "https://vnn-imgs-f.vgcloud.vn/2020/04/22/13/the-beauty-of-cua-tung-beach-7.jpg"
            }
        }
    }
}'
Response Response Example
200 - Example 1
{
    "name": "Template name",
    "publicId": "3cb69db1-c410-4b83-8d37-84b823be9c06",
    "tariffType": 0,
    "description": "Template description",
    "status": 1,
    "statusText": "APPROVED",
    "message": {
        "type": "rich_card",
        "message": "Message Content",
        "richCards": [
            {
                "fileUrl": "https://images.pexels.com/photo.jpeg",
                "thumbnailUrl": "https://images.pexels.com/photo.jpeg",
                "title": "Example Title",
                "description": "Example Description",
                "suggestions": [
                    {
                        "text": "Example suggestion",
                        "action": "reply",
                        "tracking": true,
                        "webviewType": "FULL",
                        "postbackData": "Example postback data",
                        "openUrlApplication": "BROWSER"
                    }
                ]
            }
        ],
        "fileUrl": "https://images.pexels.com/photo.jpeg",
        "thumbnailUrl": "https://images.pexels.com/photo.jpeg"
    }
}
Modified at 2026-04-10 07:21:27
Previous
Get Message Status
Next
Get Template By PublicId
Built with