cURL
curl --request GET \
--url http://localhost:3001/api/admin/content/templates \
--header 'Authorization: <api-key>'{
"templates": [
{
"id": "<string>",
"name": "<string>",
"workspaceId": "<string>",
"type": "Email",
"updatedAt": 123,
"definition": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"draft": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"metaStatus": "UNSUBMITTED",
"whatsappTemplate": {
"rejectionReason": "<string>"
}
}
]
}API Reference
GET /api/admin/content/templates
Get message templates
GET
/
api
/
admin
/
content
/
templates
cURL
curl --request GET \
--url http://localhost:3001/api/admin/content/templates \
--header 'Authorization: <api-key>'{
"templates": [
{
"id": "<string>",
"name": "<string>",
"workspaceId": "<string>",
"type": "Email",
"updatedAt": 123,
"definition": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"draft": {
"type": "MobilePush",
"title": "<string>",
"body": "<string>",
"imageUrl": "<string>",
"android": {
"notification": {
"channelId": "<string>"
}
}
},
"metaStatus": "UNSUBMITTED",
"whatsappTemplate": {
"rejectionReason": "<string>"
}
}
]
}⌘I

