Test Results

Test results

Status definitions

CodeNameDescription
0PendingThe test result is still pending.
1FinishedThe test has finished with delivered results on the handset.
2No resultThe test has expired with no delivery results on the handset. However, should the message eventually be delivered within 24 hours, then the test will be updated to 'Finished' after all
3Handset unreachableTemporary status. Texter detected that the handset went offline during this test. This temporary status is only used in the callback report towars your callback URL.
4Invalid testThe test has expired while the handset still was offline and has been invalidated. However, should the handset come online again within 24 hours, then the test will be updated to either 'Finished' or 'No result'
5Rejected by supplierDashboard only status. Your chosen supplier has rejected your request of sending a text message.

Get single result

Poll the status of a single test with potential delivered results. Supply your test identifier in the URL to receive the current status, test details and test results.

Request

GET https://api.cmtelecom.com/texter/v1/testresult/{texterProductAccount}/{id}

Response

FieldTypeDescription
idstringIdentifier of your test
requestDatedateTimeUTC date and time when the test was requested
expirationDatedatetimeUTC date and time when the test will be considered not delivered
statusCodeintegerStatus code of the test (see Status definitions)
statusstringStatus description (see Status definitions)
mccMncstringRequested operator
msisdnstringPhone number of the test node
isMsisdnNetworkPortedbooleanIs the MSISDN a ported number, can be null if the status is unknown
messageKeystringMessage key of your test
resultobjectObject containing result data from the handset, is null if nothing has been delivered

Result:

FieldTypeDescription
senderstringReceived sender of your test message
contentstringReceived content of your test message
phoneReceivedDateTimedateTimeDate and time (UTC) when your test message was received on the test node
serviceCenterstringService center (SMSC) that lastly has been used for your delivered message
serviceCenterCountrystringISO country code of service center
syncedWithNTPbooleanIs the received date and time of the test node synced with a NTP server
resultReceivedDateTimedateTimeDate and time (UTC) when Texter received the test results from the test node with internet delay included
encodingintegerThe encoding with which the message was delivered to the phone, can be null
udhstringUser data header(s) (comma seperated) buried within the delivered message, can be null
pdustring arrayMultipart PDU of the delivered message, can be null
{
  "id": "dfa49097-4912-4ad2-b76f-9d59ac31fdf9",
  "requestDate": "2020-07-04T18:42:33.037Z",
  "statusCode": 1,
  "status": "Finished",
  "mccMnc": "20404",
  "msisdn": "0031611223344",
  "isMsisdnNetworkPorted": false,
  "messageKey": "uvamp umolle owi",
  "preferredAlphaNumericSender": "dendasalute",
  "preferredNumericSender": "00674182674182",
  "expirationDate": "2020-07-04T18:47:33.03Z",
  "result": {
    "sender": "dendasalute",
    "content": "uvamp umolle owi: }2<0(~e`ab&",
    "phoneReceivedDateTime": "2020-07-04T18:42:43.987Z",
    "serviceCenter": "+31686899908",
    "serviceCenterCountry": "NL",
    "syncedWithNtp": true,
    "resultReceivedDateTime": "2020-07-04T18:45:13.913Z",
    "encoding": 25,
    "udh": "0003010201,0003010202",
    "pdu": [
      "07911386869909F84014D0E4B29B1C9E87D9757A1900190270400"
    ]
  }
}

Get multiple results

Poll the status of multiple tests with potential delivered results. Supply your test identifiers in the request body to receive the current status, test details and test results.

Request

POST https://api.cmtelecom.com/texter/v1/testresult/{texterProductAccount}

Request body

Array of GUID identifiers

[
  "DFA49097-4912-4AD2-B76F-9D59AC31FDF9",
  "3E0BEBCD-92CB-497B-A884-C9E007C11E0A"
]

Response

FieldTypeDescription
idstringIdentifier of your test
requestDatedateTimeUTC date and time when the test was requested
expirationDatedatetimeUTC date and time when the test will be considered not delivered
statusCodeintegerStatus code of the test (see Status definitions)
statusstringStatus description (see Status definitions)
mccMncstringRequested operator
msisdnstringPhone number of the test node
isMsisdnNetworkPortedbooleanIs the MSISDN a ported number, can be null if the status is unknown
messageKeystringMessage key of your test
resultobjectObject containing result data from the handset, is null if nothing has been delivered

Result:

FieldTypeDescription
senderstringReceived sender of your test message
contentstringReceived content of your test message
phoneReceivedDateTimedateTimeDate and time (UTC) when your test message was received on the test node
serviceCenterstringService center (SMSC) that lastly has been used for your delivered message
serviceCenterCountrystringISO country code of service center
syncedWithNTPbooleanIs the received date and time of the test node synced with an NTP server
resultReceivedDateTimedateTimeDate and time (UTC) when Texter received the test results from the test node with internet delay included
encodingintegerThe encoding with which the message was delivered to the phone, can be null
udhstringUser data header(s) (comma seperated) buried within the delivered message, can be null
pdustring arrayMultipart PDU of the delivered message, can be null
[
  {
    "id": "dfa49097-4912-4ad2-b76f-9d59ac31fdf9",
    "requestDate": "2020-07-04T18:42:33.037Z",
    "statusCode": 1,
    "status": "Finished",
    "mccMnc": "20404",
    "msisdn": "0031611223344",
    "isMsisdnNetworkPorted": false,
    "messageKey": "uvamp umolle owi",
    "preferredAlphaNumericSender": "dendasalute",
    "preferredNumericSender": "00674182674182",
    "expirationDate": "2020-07-04T18:47:33.03Z",
    "result": {
      "sender": "dendasalute",
      "content": "uvamp umolle owi: }2<0(~e`ab&",
      "phoneReceivedDateTime": "2020-07-04T18:42:43.987Z",
      "serviceCenter": "+31686899908",
      "serviceCenterCountry": "NL",
      "syncedWithNtp": true,
      "resultReceivedDateTime": "2020-07-04T18:45:13.913Z",
      "encoding": 25,
      "udh": "0003010201,0003010202",
      "pdu": [
        "07911386869909F84014D0E4B29B1C9E87D9757A1900190270400"
      ]
    }
  },
  {
    "id": "3e0bebcd-92cb-497b-a884-c9e007c11e0a",
    "requestDate": "2020-07-14T10:16:10.72Z",
    "statusCode": 1,
    "status": "Finished",
    "mccMnc": "20416",
    "msisdn": "0031655667788",
    "isMsisdnNetworkPorted": true,
    "messageKey": "uzelle andukemoa",
    "preferredAlphaNumericSender": "traldospupe",
    "preferredNumericSender": "00559523759523",
    "expirationDate": "2020-07-14T10:21:10.737Z",
    "result": {
      "sender": "traldospupe",
      "content": "uzelle andukemoa: åù¿OÅc]31FC)?€;GøÉ|$?Z&<@+,Ü%~à:SÖñbò¥[?!?ÑÄ^¤>-èÇBö?{=Æ.0_¡æ#§ì2Ø?aäé/T(A}üß*£'",
      "phoneReceivedDateTime": "2020-07-14T10:16:12.803Z",
      "serviceCenter": "+31624000000",
      "serviceCenterCountry": "NL",
      "syncedWithNtp": true,
      "resultReceivedDateTime": "2020-07-14T10:16:13.653Z",
      "encoding": 0,
      "udh": null,
      "pdu": [
        "07911326040000F00414D07479984D7ECFE1757819000002704121"
      ]
    }
  }
]

Get results with filter options

You can poll a list of tests and results by using some additional filters. Optional parameters can be given to filter the Texter test results in the response.

By default, this API call will get your most recent test details

Request

GET https://api.cmtelecom.com/texter/v1/testresult/{productAccount}

Optional request parameters

FieldTypeDescription
mccMncstringOperator filter
fromDatedateTimeGet test results of tests initiated after this date and time
toDatedateTimeGet test results of tests initiated before this date and time
amountOfResultsintegerMaximum amount of test results to include in the response (default = 100, max = 10000)

Callback report

Texter can automatically send results of your Texter tests to a specified callback URL specified either configured in the Texter app or set in your API request (ResultApiUrl parameter).
Your callback API must support a HTTP POST and respond with a status in the 200 range.

Request body

FieldTypeDescription
idstringIdentifier of your test
statusCodeintegerStatus code of the test (see Status definitions)
statusstringStatus description (see Status definitions)
messageKeystringMessage key of your test
resultobjectObject containing result data from the handset, is null if nothing has been delivered

Result:

FieldTypeDescription
senderstringReceived sender of your test message
contentstringReceived content of your test message
phoneReceivedDateTimedateTimeDate and time (UTC) when your test message was received on the test node
msisdnstringPhone number of the test node
isMsisdnNetworkPortedbooleanIs the MSISDN a ported number, can be null if the status is unknown
serviceCenterstringService center (SMSC) that lastly has been used for your delivered message
serviceCenterCountrystringISO country code of service center
syncedWithNTPbooleanIs the received date and time of the test node synced with a NTP server
resultReceivedDateTimedateTimeDate and time (UTC) when Texter received the test results from the test node with internet delay included
encodingintegerThe encoding with which the message was delivered to the phone, can be null
udhstringUser data header(s) (comma seperated) buried within the delivered message, can be null
pdustring arrayMultipart PDU of the delivered message, can be null
{
  "id": "dfa49097-4912-4ad2-b76f-9d59ac31fdf9",
  "statusCode": 1,
  "status": "Finished",
  "messageKey": "uvamp umolle owi",
  "result": {
    "sender": "dendasalute",
    "content": "uvamp umolle owi: }2<0(~e`ab&",
    "phoneReceivedDateTime": "2020-07-04T18:42:43.987Z",
    "msisdn": "0031611223344",
    "isMsisdnNetworkPorted": false,
    "serviceCenter": "+31686899908",
    "serviceCenterCountry": "NL",
    "syncedWithNtp": true,
    "resultReceivedDateTime": "2020-07-04T18:45:13.913Z",
    "encoding": 25,
    "udh": "0003010201,0003010202",
    "pdu": [
      "07911386869909F84014D0E4B29B1C9E87D9757A1900190270400"
    ]
  }
}