GET api/v1/sms/messages/authenticated/{Id}?contactId={contactId}

This method decrypts the encoded string and fetches the secure message details for the contact. This method is called after the recipient has authenticated with an identity provider.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contactId

The encrypted SMS to be displayed.

string

Required

Id

string

None.

Body Parameters

None.

Response Information

Resource Description

ResponseOfMessageView
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfMessageView

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {
      "Contact": "sample string 1",
      "DateTimeExpiry": "2017-11-17T17:14:31.2754234Z",
      "DateTimeSent": "2017-11-17T17:14:31.2754234Z",
      "Disclaimer": "sample string 2",
      "Flagger": true,
      "From": "sample string 4",
      "LogoURL": "sample string 5",
      "Message": "sample string 6",
      "MessageId": "sample string 7",
      "ReadsRemaining": "sample string 8",
      "Responses": [
        {
          "MessageID": "5dd1bb8e-dbef-4bf7-8fbd-1abc19f265b1",
          "From": "sample string 2",
          "DateInsert": "2017-11-17T17:14:31.2754234Z",
          "Response": "sample string 4",
          "DateRead": "2017-11-17T17:14:31.2754234Z",
          "SenderSent": true
        },
        {
          "MessageID": "5dd1bb8e-dbef-4bf7-8fbd-1abc19f265b1",
          "From": "sample string 2",
          "DateInsert": "2017-11-17T17:14:31.2754234Z",
          "Response": "sample string 4",
          "DateRead": "2017-11-17T17:14:31.2754234Z",
          "SenderSent": true
        }
      ],
      "ResponseEnabled": true,
      "ResponseLimitReached": true,
      "To": "sample string 11"
    }
  }
}

application/xml, text/xml

Sample:
<ResponseOfMessageView xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <Contact>sample string 1</Contact>
      <DateTimeExpiry>2017-11-17T17:14:31.2754234Z</DateTimeExpiry>
      <DateTimeSent>2017-11-17T17:14:31.2754234Z</DateTimeSent>
      <Disclaimer>sample string 2</Disclaimer>
      <Flagger>true</Flagger>
      <From>sample string 4</From>
      <LogoURL>sample string 5</LogoURL>
      <Message>sample string 6</Message>
      <MessageId>sample string 7</MessageId>
      <ReadsRemaining>sample string 8</ReadsRemaining>
      <Responses>
        <MessageResponse>
          <MessageID>5dd1bb8e-dbef-4bf7-8fbd-1abc19f265b1</MessageID>
          <From>sample string 2</From>
          <DateInsert>2017-11-17T17:14:31.2754234Z</DateInsert>
          <Response>sample string 4</Response>
          <DateRead>2017-11-17T17:14:31.2754234Z</DateRead>
          <SenderSent>true</SenderSent>
        </MessageResponse>
        <MessageResponse>
          <MessageID>5dd1bb8e-dbef-4bf7-8fbd-1abc19f265b1</MessageID>
          <From>sample string 2</From>
          <DateInsert>2017-11-17T17:14:31.2754234Z</DateInsert>
          <Response>sample string 4</Response>
          <DateRead>2017-11-17T17:14:31.2754234Z</DateRead>
          <SenderSent>true</SenderSent>
        </MessageResponse>
      </Responses>
      <ResponseEnabled>true</ResponseEnabled>
      <ResponseLimitReached>true</ResponseLimitReached>
      <To>sample string 11</To>
    </Detail>
  </ResponseData>
</ResponseOfMessageView>