API ReferenceTemplates
Create template
Create a new email template
Authorization
ApiKeyAuth AuthorizationBearer <token>
API Key authentication. Secret keys (sk_*) are required for all endpoints except /v1/track. Public keys (pk_*) only work with the /v1/track endpoint for client-side event tracking. The project is automatically derived from the key.
In: header
Request Body
application/json
name*string
subject*string
body*string
type*string
Value in
"TRANSACTIONAL" | "MARKETING"Response Body
application/json
curl -X POST "https://next-api.useplunk.com/templates" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "subject": "string", "body": "string", "type": "TRANSACTIONAL" }'{
"success": true,
"data": {
"id": "string",
"name": "string",
"subject": "string",
"body": "string",
"type": "TRANSACTIONAL",
"createdAt": "2019-08-24T14:15:22Z"
}
}