Skip to main content

Message templates

Reusable message bodies for conversations.

5 endpoints. Every request needs an Authorization: Bearer mtro_... header, and responses follow the envelope described in Errors and conventions.

POST /message-templates/create​

Create a reusable message template. This writes account data and should require owner confirmation when used by an agent.

Required scope: any valid API key for the entity.
MCP tool: message_templates_create

Request body

note

Field names are taken from the Core handler. It also passes the body on to internal helpers, so it may accept fields beyond those listed here. Types are not yet documented.

FieldTypeRequiredDescription
bodyanyno
categoryanyno
channelanyno
entityOwneranyno
nameanyno

Example

curl -X POST 'https://core.mtro.app/message-templates/create' \
-H 'Authorization: Bearer mtro_your_api_key' \
-H 'Content-Type: application/json' \
-d '{}'

POST /message-templates/delete​

Delete a reusable message template. This is destructive and should require owner confirmation when used by an agent.

Required scope: any valid API key for the entity.
MCP tool: message_templates_delete

Request body

FieldTypeRequiredDescription
templateIdstringyesMessage template ID.

Example

curl -X POST 'https://core.mtro.app/message-templates/delete' \
-H 'Authorization: Bearer mtro_your_api_key' \
-H 'Content-Type: application/json' \
-d '{"templateId":"<templateId>"}'

GET /message-templates/get/{templateId}​

Get a message template by ID.

Required scope: any valid API key for the entity.
MCP tool: message_templates_get

Path parameters

NameTypeRequiredDescription
templateIdstringyesMessage template ID.

Example

curl -X GET 'https://core.mtro.app/message-templates/get/<templateId>' \
-H 'Authorization: Bearer mtro_your_api_key'

GET /message-templates/get/entity/{entityId}​

List message templates for an entity.

Required scope: any valid API key for the entity.
MCP tool: message_templates_list

Path parameters

NameTypeRequiredDescription
entityIdstringyesEntity ID.

Example

curl -X GET 'https://core.mtro.app/message-templates/get/entity/<entityId>' \
-H 'Authorization: Bearer mtro_your_api_key'

Response

FieldType
templatesobject[]
errorboolean
Fields of templates[]
FieldType
idstring
entityOwnerstring
namestring
bodystring
categorystring
channelstring
schedulestring
scheduleCustomany
scheduleFixedany
scheduleDescriptionstring
createdAtinteger

POST /message-templates/update​

Update a reusable message template. This writes account data and should require owner confirmation when used by an agent.

Required scope: any valid API key for the entity.
MCP tool: message_templates_update

Request body

note

Field names are taken from the Core handler. It also passes the body on to internal helpers, so it may accept fields beyond those listed here. Types are not yet documented.

FieldTypeRequiredDescription
bodyanyno
categoryanyno
channelanyno
nameanyno
scheduleanyno
schedulinganyno
templateIdanyno

Example

curl -X POST 'https://core.mtro.app/message-templates/update' \
-H 'Authorization: Bearer mtro_your_api_key' \
-H 'Content-Type: application/json' \
-d '{}'