template.created
Attivato quando viene creato un nuovo template.
{
"event_id": "evt_2bH7kNwP5mQaV1sXgIdKe6pZr",
"type": "template.created",
"data": {
"object": {
"id": "tem_4yM2nTvR8oPcX3uZiKeLg7sB",
"object": "template",
"name": "Welcome Email v1",
"alias": "welcome-email",
"from": "Support <support@company.com>",
"subject": "Welcome!",
"reply_to": ["support@company.com"],
"html": "<h1>Welcome!</h1>",
"text": "Welcome!",
"editor": "html",
"published_at": null,
"created_at": "2025-12-24T09:00:00.000000Z",
"updated_at": "2025-12-24T10:30:00.000000Z"
}
}
}
Campi
id
string
Identificativo univoco del template.
object
string
Sempre template.
name
string
Nome del template.
alias
string
Alias del template per l’utilizzo tramite API.
from
string
Indirizzo mittente predefinito.
subject
string
Oggetto predefinito.
reply_to
array
Indirizzi di risposta.
html
string
Contenuto HTML del template.
text
string
Contenuto in testo semplice del template.
editor
string
Tipo di editor utilizzato (html, visual).
published_at
string | null
Timestamp ISO 8601 della pubblicazione.
created_at
string
Timestamp ISO 8601 di creazione.
updated_at
string
Timestamp ISO 8601 dell’ultimo aggiornamento.
template.updated
Attivato quando un template viene aggiornato.
{
"event_id": "evt_2bH7kNwP5mQaV1sXgIdKe6pZr",
"type": "template.updated",
"data": {
"object": {
"id": "tem_4yM2nTvR8oPcX3uZiKeLg7sB",
"object": "template",
"name": "Welcome Email v1",
"alias": "welcome-email",
"from": "Support <support@company.com>",
"subject": "Welcome!",
"reply_to": ["support@company.com"],
"html": "<h1>Welcome!</h1>",
"text": "Welcome!",
"editor": "html",
"published_at": null,
"created_at": "2025-12-24T09:00:00.000000Z",
"updated_at": "2025-12-24T10:30:00.000000Z"
}
}
}
Campi
id
string
Identificativo univoco del template.
object
string
Sempre template.
name
string
Nome del template.
alias
string
Alias del template per l’utilizzo tramite API.
from
string
Indirizzo mittente predefinito.
subject
string
Oggetto predefinito.
reply_to
array
Indirizzi di risposta.
html
string
Contenuto HTML del template.
text
string
Contenuto in testo semplice del template.
editor
string
Tipo di editor utilizzato (html, visual).
published_at
string | null
Timestamp ISO 8601 della pubblicazione.
created_at
string
Timestamp ISO 8601 di creazione.
updated_at
string
Timestamp ISO 8601 dell’ultimo aggiornamento.
template.deleted
Attivato quando un template viene eliminato.
{
"event_id": "evt_2bH7kNwP5mQaV1sXgIdKe6pZr",
"type": "template.deleted",
"data": {
"object": {
"id": "tem_4yM2nTvR8oPcX3uZiKeLg7sB",
"object": "template",
"name": "Welcome Email v1",
"alias": "welcome-email",
"from": "Support <support@company.com>",
"subject": "Welcome!",
"reply_to": ["support@company.com"],
"html": "<h1>Welcome!</h1>",
"text": "Welcome!",
"editor": "html",
"published_at": null,
"created_at": "2025-12-24T09:00:00.000000Z",
"updated_at": "2025-12-24T10:30:00.000000Z"
}
}
}
Campi
id
string
Identificativo univoco del template.
object
string
Sempre template.
name
string
Nome del template.
alias
string
Alias del template per l’utilizzo tramite API.
from
string
Indirizzo mittente predefinito.
subject
string
Oggetto predefinito.
reply_to
array
Indirizzi di risposta.
html
string
Contenuto HTML del template.
text
string
Contenuto in testo semplice del template.
editor
string
Tipo di editor utilizzato (html, visual).
published_at
string | null
Timestamp ISO 8601 della pubblicazione.
created_at
string
Timestamp ISO 8601 di creazione.
updated_at
string
Timestamp ISO 8601 dell’ultimo aggiornamento.