User

Get template with contact data placeholders resolved

POST
/api/user/sms-templates/{templateId}

Returns the template body with placeholders ({{firstName}}, {{lastName}}, etc.) resolved against the supplied contact phone/channel. Used by the composer to preview the final message.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

templateId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/user/sms-templates/string" \  -H "Content-Type: application/json" \  -d '{    "phoneNumber": "+14155550133",    "selectedUser": {      "channelType": "sms",      "messengerId": "+14155550133"    }  }'
{  "message": "Hi Alex! Confirming your tour for Friday at 2:00pm.",  "type": "sms",  "category": "tours"}