Documentation Webhooks Événements

template.created

Déclenché lors de la création d’un nouveau modèle.

{
  "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"
    }
  }
}

Champs

id string

Identifiant unique du modèle.

object string

Toujours template.

name string

Nom du modèle.

alias string

Alias du modèle pour l’utilisation via l’API.

from string

Adresse d’expéditeur par défaut.

subject string

Ligne d’objet par défaut.

reply_to array

Adresses de réponse.

html string

Contenu HTML du modèle.

text string

Contenu en texte brut du modèle.

editor string

Type d’éditeur utilisé (html, visual).

published_at string | null

Horodatage ISO 8601 de la publication.

created_at string

Horodatage ISO 8601.

updated_at string

Horodatage ISO 8601.

template.updated

Déclenché lorsqu’un modèle est mis à jour.

{
  "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"
    }
  }
}

Champs

id string

Identifiant unique du modèle.

object string

Toujours template.

name string

Nom du modèle.

alias string

Alias du modèle pour l’utilisation via l’API.

from string

Adresse d’expéditeur par défaut.

subject string

Ligne d’objet par défaut.

reply_to array

Adresses de réponse.

html string

Contenu HTML du modèle.

text string

Contenu en texte brut du modèle.

editor string

Type d’éditeur utilisé (html, visual).

published_at string | null

Horodatage ISO 8601 de la publication.

created_at string

Horodatage ISO 8601.

updated_at string

Horodatage ISO 8601.

template.deleted

Déclenché lorsqu’un modèle est supprimé.

{
  "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"
    }
  }
}

Champs

id string

Identifiant unique du modèle.

object string

Toujours template.

name string

Nom du modèle.

alias string

Alias du modèle pour l’utilisation via l’API.

from string

Adresse d’expéditeur par défaut.

subject string

Ligne d’objet par défaut.

reply_to array

Adresses de réponse.

html string

Contenu HTML du modèle.

text string

Contenu texte brut du modèle.

editor string

Type d’éditeur utilisé (html, visual).

published_at string | null

Horodatage ISO 8601 de la publication.

created_at string

Horodatage ISO 8601.

updated_at string

Horodatage ISO 8601.

Localisé par IA