Create a new template

Create and configure a new template by providing the necessary details in the request body.

POST
/messages/templates
AuthorizationBearer <token>

In: header

Request Body

application/json

The details of the template to create.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api-testnet.dual.network/messages/templates" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "system": "email",    "action_type": "register",    "title": "string",    "content": "string",    "content_type": "text"  }'
{
  "id": "string"
}
{
  "code": 0,
  "message": "string",
  "details": {}
}
{
  "code": 0,
  "message": "string",
  "details": {}
}