API SMS view Templates

To view SMS templates, send the following GET request:

GET https://loanpro.simnang.com/api/public/api/1/sbt/getTemplateList()

Below is a response:

{
    "d": {
        "account": {
            "1": {
                "id": 1,
                "title": "Welcome - 1 - MC",
                "subject": "{firstname},",
                "content": "Welcome to {Title}! We appreciate your business! Have Questions? Reply by text or call us at {companyphone}. For help reply HELP",
                "variables": [
                    "firstname",
                    "Title",
                    "companyphone"
                ]
            }
        },
        "marketing": {
            "2": {
                "id": 2,
                "title": "Good Standing - 12 - MC",
                "subject": "{Title}",
                "content": "values your business. Please contact us @ {companyphone} regarding a SPECIAL OFFER (subject to eligibility). Thank you. For help reply HELP",
                "variables": [
                    "Title",
                    "companyphone"
                ]
            }
        }
    }
}

The response has a division into “account” and “marketing” sections, with each section being set aside for account or marketing templates respectively. Each template is then listed beneath. Templates have an id field, title for the template, the subject of the template, the content of the template, and the variables used in the template.

Related Articles

Leave A Comment?