Endpoint
POST /api/v1/templates/{id}/preview
Paramètres path
| Nom | Type | Requis | Description |
|---|---|---|---|
id | UUID | oui | ID du template |
Body
| Champ | Type | Requis | Description |
|---|---|---|---|
instanceId | UUID | non | Contexte instance.* |
contactId | UUID | non | Contexte contact.* |
variables | object | non | Valeurs custom.* |
Réponse succès 200
{
"data": {
"rendered": "Bonjour Awa, utilisez PROMO10.",
"variables": ["contact.firstName", "custom.code"],
"missingVariables": [],
"valid": true
}
}