API Reference
GET /api/admin/content/templates
API Reference
- POSTPOST /api/public/apps/identify
- POSTPOST /api/public/apps/track
- POSTPOST /api/public/apps/page
- POSTPOST /api/public/apps/screen
- POSTPOST /api/public/apps/group
- POSTPOST /api/public/apps/batch
- POSTPOST /api/public/webhooks/segment
- GETGET /api/admin/content/templates
- PUTPUT /api/admin/content/templates
- DELDELETE /api/admin/content/templates
- GETGET /api/admin/segments/
- PUTPUT /api/admin/segments/
- DELDELETE /api/admin/segments/
- GETGET /api/admin/user-properties/
- PUTPUT /api/admin/user-properties/
- DELDELETE /api/admin/user-properties/
- GETGET /api/admin/journeys/
- PUTPUT /api/admin/journeys/
- DELDELETE /api/admin/journeys/
- PUTPUT /api/public/subscription-management/user-subscriptions
- GETGet /api/admin/users/subscriptions
- POSTPOST /api/admin/users/
- DELDELETE /api/admin/users/
- GETGET /api/admin/events/
- POSTPOST /api/admin/broadcasts/execute
- PUTPUT /api-l/admin/workspaces/child
- DELDELETE /api-l/admin/workspaces
- GETGET /api-l/admin/workspaces/
- POSTPOST /api-l/sessions/
- GETGET /api/admin/groups/user-groups
- GETGET /api/admin/groups/users
API Reference
GET /api/admin/content/templates
Get message templates
GET
/
api
/
admin
/
content
/
templates
curl --request GET \
--url http://localhost:3001/api/admin/content/templates
{
"templates": [
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"type": "Email",
"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>"
}
}
},
"updatedAt": 123
}
]
}
Query Parameters
Response
200 - application/json
Default Response
Available options:
Email
Mobile push template resource
Available options:
MobilePush
Mobile push template resource
curl --request GET \
--url http://localhost:3001/api/admin/content/templates
{
"templates": [
{
"workspaceId": "<string>",
"id": "<string>",
"name": "<string>",
"type": "Email",
"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>"
}
}
},
"updatedAt": 123
}
]
}