SMS Campaign content

An sms campaign is a set of marketing sms messages. They are generally sent out with a specific purpose. Each campaign requires a well-written subject line, focused content, and a specific call to action to achieve the campaign’s goal.

How to write an SMS content?

Make sure you messages is short and to the point Personalize the messages Use a clear call-to-action Add sense of urgency Write short sentence

Make sure that you have curated a content that resonates with your customers.

Showing

  • This API endpoint allows you to get all sms content of each campaign.
  • You can send GET request to campaign/{campaign_id}/sms API.

GET https://api.taximail.com/v2/campaign/{campaign_id}/sms

Example Request

GET v2/campaign/315/sms HTTP/1.1
Host: api.taximail.com
Authorization: "Bearer YOUR_SESSION_ID"

Example Result

{
    "status": "success",
    "code": 200,
    "data": [
          {
            "sms_content_id": 231,
            "from": "TXSMS",
            "text": "example content",
            "generate_link": true
        }
    ]
}

Fields

Name Type Description
status enum {success, error} Returns the status of the result.
code integer Returns the response code of the result.
err_msg string When error occur, returns the error's detail of the result.
data.sms_content_id interger The sms content's id.
data.from string The sms's from sender name.
data.text string The sms's content.
data.generate_link boolean The sms's generate link mode.

Response Code

Code Result Description
200 success Response to a successful request.
400 error The request is malformed or missing some required parameters.
401 error Unauthorized or the session_id expired.
404 error Email / Sms not found.

Updating

  • This API endpoint allows you to update campaign content.
  • You can PUT the object data such as from , text and other to campaign/{campaign_id}/sms/{sms_content_id} API.

PUT https://api.taximail.com/v2/campaign/{campaign_id}/sms/{sms_content_id}

Parameter Type Description Required
from string From specifies the sender name for your message. Yes
text string The text parameter includes the full text of the message you want to send. It is the message content in which you can include any URL Yes
generate_link boolean If true, Taximail will generate hyperlink for all the URL in the message content.

Defaults to true.

Example Request

PUT v2/campaign/315/sms/226 HTTP/1.1
Host: api.taximail.com
Authorization: "Bearer YOUR_SESSION_ID"

from=TXSMS&text=example&generate_link=true

Example Result

{
    "status": "success",
    "code": 200,
    "data": {
                "sms_content_id": 123
          }
}

Fields

Name Type Description
status enum {success, error} Returns the status of the result.
code integer Returns the response code of the result.
err_msg string When error occur, returns the error's detail of the result.

Response Code

Code Result Description
200 success Response to a successful request.
400 error The request is malformed or missing some required parameters.
401 error Unauthorized or the session_idexpired.
Title
Title SEO [Optional]
Description SEO [Optional]
Friendly URL [Optional]
IFRAME Content [Optional]
Priority
Markdown
In this article
We use cookies
This website uses cookies to enhance your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from. You can manage your preferences by clicking Change Preferences. Learn more about this on Cookie policy
Change Preferences
Accept All