GET v1/SMS/GetMessage/{twilioAccountName}?messageId={messageId}

Gets the message from message identifier.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
twilioAccountName

Name of the twilio account.

string

Required

messageId

The message identifier.

string

Required

Body Parameters

None.

Response Information

Resource Description

Message
NameDescriptionTypeAdditional information
AccountSid

string

None.

Price

decimal number

None.

From

string

None.

To

string

None.

ApiVersion

string

None.

Body

string

None.

ErrorCode

integer

None.

NumSegments

integer

None.

ErrorMessage

string

None.

NumImages

integer

None.

Sid

string

None.

Status

string

None.

DateCreated

date

None.

DateUpdated

date

None.

Direction

string

None.

DateSent

date

None.

RestException

RestException

None.

Uri

URI

None.

Errors

Collection of Exception

None.

IsSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountSid": "sample string 1",
  "Price": 2.0,
  "From": "sample string 3",
  "To": "sample string 4",
  "ApiVersion": "sample string 5",
  "Body": "sample string 6",
  "ErrorCode": 1,
  "NumSegments": 7,
  "ErrorMessage": "sample string 8",
  "NumImages": 9,
  "Sid": "sample string 10",
  "Status": "sample string 11",
  "DateCreated": "2025-06-30T14:15:39.9415476-07:00",
  "DateUpdated": "2025-06-30T14:15:39.9415476-07:00",
  "Direction": "sample string 14",
  "DateSent": "2025-06-30T14:15:39.9415476-07:00",
  "RestException": {
    "Status": "sample string 1",
    "MoreInfo": "sample string 2",
    "Code": "sample string 3",
    "Message": "sample string 4"
  },
  "Uri": "http://webapihelppage16.com",
  "Errors": [
    {
      "ClassName": "System.Exception",
      "Message": null,
      "Data": null,
      "InnerException": null,
      "HelpURL": "sample string 1",
      "StackTraceString": null,
      "RemoteStackTraceString": null,
      "RemoteStackIndex": 0,
      "ExceptionMethod": null,
      "HResult": 3,
      "Source": "sample string 2",
      "WatsonBuckets": null
    },
    {
      "ClassName": "System.Exception",
      "Message": null,
      "Data": null,
      "InnerException": null,
      "HelpURL": "sample string 1",
      "StackTraceString": null,
      "RemoteStackTraceString": null,
      "RemoteStackIndex": 0,
      "ExceptionMethod": null,
      "HResult": 3,
      "Source": "sample string 2",
      "WatsonBuckets": null
    }
  ],
  "IsSuccess": true
}

application/xml, text/xml

Sample:
<TwilioModels.Message xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.TwilioModels">
  <Errors xmlns:d2p1="http://schemas.datacontract.org/2004/07/System" xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.BindingModels">
    <d2p1:Exception>
      <ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
      <Message i:nil="true" xmlns="" />
      <Data i:nil="true" xmlns="" />
      <InnerException i:nil="true" xmlns="" />
      <HelpURL xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 1</HelpURL>
      <StackTraceString i:nil="true" xmlns="" />
      <RemoteStackTraceString i:nil="true" xmlns="" />
      <RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
      <ExceptionMethod i:nil="true" xmlns="" />
      <HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">3</HResult>
      <Source xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 2</Source>
      <WatsonBuckets i:nil="true" xmlns="" />
    </d2p1:Exception>
    <d2p1:Exception>
      <ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
      <Message i:nil="true" xmlns="" />
      <Data i:nil="true" xmlns="" />
      <InnerException i:nil="true" xmlns="" />
      <HelpURL xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 1</HelpURL>
      <StackTraceString i:nil="true" xmlns="" />
      <RemoteStackTraceString i:nil="true" xmlns="" />
      <RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
      <ExceptionMethod i:nil="true" xmlns="" />
      <HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">3</HResult>
      <Source xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">sample string 2</Source>
      <WatsonBuckets i:nil="true" xmlns="" />
    </d2p1:Exception>
  </Errors>
  <IsSuccess xmlns="http://schemas.datacontract.org/2004/07/OpenTech.IssnWebApi.Web.Models.BindingModels">true</IsSuccess>
  <AccountSid>sample string 1</AccountSid>
  <ApiVersion>sample string 5</ApiVersion>
  <Body>sample string 6</Body>
  <DateCreated>2025-06-30T14:15:39.9415476-07:00</DateCreated>
  <DateSent>2025-06-30T14:15:39.9415476-07:00</DateSent>
  <DateUpdated>2025-06-30T14:15:39.9415476-07:00</DateUpdated>
  <Direction>sample string 14</Direction>
  <ErrorCode>1</ErrorCode>
  <ErrorMessage>sample string 8</ErrorMessage>
  <From>sample string 3</From>
  <NumImages>9</NumImages>
  <NumSegments>7</NumSegments>
  <Price>2</Price>
  <RestException>
    <Code>sample string 3</Code>
    <Message>sample string 4</Message>
    <MoreInfo>sample string 2</MoreInfo>
    <Status>sample string 1</Status>
  </RestException>
  <Sid>sample string 10</Sid>
  <Status>sample string 11</Status>
  <To>sample string 4</To>
  <Uri>http://webapihelppage16.com/</Uri>
</TwilioModels.Message>