✨ MoEngage NEXT Spring 2026 — The Future of Engagement is Agentic. Join us on April 28. Register now
curl --request POST \
--url https://api-{dc}.moengage.com/v1.0/custom-templates/inapp \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"basic_details": {
"payload": "{'jsonKey': 'jsonValue', 'title': 'hello world'}",
"inapp_template_type": "SELF_HANDLED"
},
"meta_info": {
"created_by": "test@example.com",
"template_id": "self_handled_123",
"template_name": "My Self-Handled Template",
"template_version": "1"
}
}
EOF{
"external_template_id": "4a1afbc5-4c31-4f19-8c23-793e27af01aa"
}This API creates an In-app template in MoEngage. You can use this API to upload templates created outside the MoEngage ecosystem to MoEngage and use them for campaign creation.
curl --request POST \
--url https://api-{dc}.moengage.com/v1.0/custom-templates/inapp \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"basic_details": {
"payload": "{'jsonKey': 'jsonValue', 'title': 'hello world'}",
"inapp_template_type": "SELF_HANDLED"
},
"meta_info": {
"created_by": "test@example.com",
"template_id": "self_handled_123",
"template_name": "My Self-Handled Template",
"template_version": "1"
}
}
EOF{
"external_template_id": "4a1afbc5-4c31-4f19-8c23-793e27af01aa"
}Documentation Index
Fetch the complete documentation index at: https://moengage-ios-release-notes-breaking-changes-doc-1961.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
For more information on authentication and getting your credentials, refer here.
The details of the In-app template to be created.
This field contains details about the template to be created, including its payload and template type.
Show child attributes
This field contains information about the template being created, such as its name, version, and ID and the creator's details.
Show child attributes
Template created successfully.
This field contains the unique ID corresponding to a successful custom template creation. This template ID is used as header input for update, search, or any kind of template modifications in later stage.
"4a1afbc5-4c31-4f19-8c23-793e27af01aa"
Was this page helpful?