General Requirements: Supported Image Formats: JPG, JPEG, PNG, GIF. Supported Video Formats: MP4, M4V, WEBM (H.264 / AAC recommended). Thumbnail: Mandatory for videos. File size must be between 40KB â 100KB (Max: 100KB).
Orientation (orientation) | Card Height (cardHeight) | Aspect Ratio | Resolution (px) | Max Media Size | Thumbnail Spec (Ratio / Resolution / Size) |
|---|---|---|---|---|---|
VERTICAL | SHORT | 3:1 | 1440 x 480 | Image: 2MB | Video: 10MB | 3:1 (770 x 257) ¡ 40â100KB |
VERTICAL | MEDIUM | 2:1 | 1440 x 720 | Image: 2MB | Video: 10MB | 7:3 (770 x 335) ¡ 40â100KB |
HORIZONTAL | â (N/A) | 3:4 | 768 x 1024 | Image: 2MB | Video: 10MB | 25:33 (250 x 330) ¡ 40â100KB |
Card Width (cardWidth) | Card Height (cardHeight) | Aspect Ratio | Resolution (px) | Max Media Size | Thumbnail Spec (Ratio / Resolution / Size) |
|---|---|---|---|---|---|
SMALL | SHORT | 8:5 | 1160 x 720 | Image: 1MB | Video: 5MB | 8:5 (718 x 448) ¡ 40â100KB |
SMALL | MEDIUM | 1:1 | 720 x 720 | Image: 1MB | Video: 5MB | 1:1 (480 x 448) ¡ 40â100KB |
MEDIUM | SHORT | 5:2 | 1840 x 720 | Image: 1MB | Video: 5MB | 5:2 (1140 x 448) ¡ 40â100KB |
MEDIUM | MEDIUM | 16:9 | 1280 x 720 | Image: 1MB | Video: 5MB | 16:9 (796 x 448) ¡ 40â100KB |
curl --location 'https://api.gomessage.id/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",
"msgTrafficType": "PROMOTION",
"agentUseCase": "PROMOTIONAL",
"extraData": {
"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"
}
]
}
],
"rcsExpireOpts": {
"type": "TTL",
"ttl": 3600,
"expireTime": "2025-06-13T11:00:00.000Z"
},
"rcsRichCardsOpts": {
"type": "STANDALONE",
"imageAlign": "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED",
"orientation": "VERTICAL",
"cardWidth": "SMALL",
"cardHeight": "SMALL"
},
"fileUrl": "https://images.pexels.com/photo.jpeg",
"thumbnailUrl": "https://images.pexels.com/photo.jpeg"
}
}'{
"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"
}
]
}
],
"rcsExpireOpts": {
"type": "TTL",
"ttl": 3600,
"expireTime": "2025-06-13T11:00:00.000Z"
},
"rcsRichCardsOpts": {
"type": "STANDALONE",
"imageAlign": "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED",
"orientation": "VERTICAL"
},
"fileUrl": "https://images.pexels.com/photo.jpeg",
"thumbnailUrl": "https://images.pexels.com/photo.jpeg"
}
}