SMS Logging

Telmetrics provides the ability to log all SMS messages sent to your Tracking Number or Number Pool. This feature can be used to monitor your Tracking Numbers for inbound messages to determine whether you should implement an SMS routing option.

This feature is enabled via the Number Resource, and can be configured during the provisioning of a Tracking Number, or applied later as an update.

Please note that this feature is enabled at the SMS-Routing level.

The following fields are used in this request, and must be passed in your request:

Field

Value

sms_routes -> route_type

LogOnly

Using the end-point POST https://api.telmetrics.com/v3/api/groups/{groupid}/numbers, submit a request similar to the following to enable the SMS Log Only feature on your Tracking Line when provisioning:

{
    "name": "SMS - Log Only",
    "phone_number_request": {
        "match_type": "Tollfree",
        "number_match_filter": "833"
    },
    "sms_routes": {
        "route_type": "LogOnly"
    },
    "call_routes": {
        "route_type": "Basic",
        "route": {
            "termination_number": "4705552958"
        }
    }
}

Using the end-point PUT https://api.telmetrics.com/v3/api/numbers/{numberid}, submit a request similar to the following to enable the SMS Log Only feature on an existing tracking line:

{
    "sms_routes": {
        "route_type": "LogOnly"
    }
}

A successful post will result in the creation/update of a tracking number:

{
    "id": 8660468,
    "name": "SMS - Log Only",
    "group_id": 11623282,
    "status": "Active",
    "phone_number": "8332018273",
    "created_datetime": "2018-04-12T00:00:00Z",
    "sms_routes": {
        "id": 12341,
        "route_type": "LogOnly"
    },
    "call_routes": {
        "route_type": "Basic",
        "route": {
            "id": 30474075,
            "termination_number": "4705552958"
        }
    }
}