inSIM icon

inSIM

Manage SMS, contacts, campaigns, calls, and CRM with inSIM

Template → Send

AI-generated

Summary

Send a predefined message template to a specified phone number, optionally substituting template variables using a JSON string.

Inputs

  • Template ID (required) — The unique identifier of the message template to send.
  • Phone Number (required) — The recipient's phone number, in international format (e.g., +33612345678).
  • Variables (JSON) — Optional JSON string representing variables to replace in the template message (e.g., {"firstname": "Marie", "custom.date": "15/04"}).

Output shape

a single response object from the API indicating the send status

The operation sends the request to the inSIM API with the recipient and variables wrapped appropriately. The response includes details about the send action and any errors returned by the API.

Examples

Example 1: Send a template message substituting recipient's first name

Set Template ID to 'abc123', Phone Number to '+33612345678', and Variables to '{"firstname": "Marie"}'.

Links

Discussion