POST
/v1/message-templates/seed-defaultsGive a workspace the starter templates
Creates the starter shelf for one channel — one template per category, each claiming its category's default slot only if that slot is empty. ?channel=email|sms is required. Idempotent: running it twice creates nothing the second time. For a workspace whose template list is empty and needs somewhere to start; to write your own instead, post_message-templates.
Access class: workspace.
Send request
Use the documented inputs to call this endpoint directly.
API serverbase URL
Bearer tokensessionoptional
Stored only in this browser for the session security scheme and reused on every API page in this group.
Request body
application/jsonrequiredbodyobjectoptional
paramsobjectoptional
queryoptional
Responses
201application/json
the action's answer
{
"data": {
"created": [
{
"bodyFormat": "string",
"bodyTemplate": "string",
"category": "string",
"channel": "string",
"closingTemplate": "string",
"createdAt": "string",
"createdByUserId": "",
"detail": "string",
"documentType": "string",
"entityKind": "string",
"greetingTemplate": "string",
"id": "",
"isActive": "string",
"isDefault": "string",
"name": "string",
"subjectTemplate": "string",
"updatedAt": "string"
}
],
"requested": 1,
"skipped": 1
}
}dataoptional
defaultapplication/json
a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}errorstringrequired