Message
Message
Message struct
{
"id": "<string>",
"type": "sms",
"source": {
"type": "tel",
"target": "+821028286521",
"target_name": "",
"name": "",
"detail": ""
},
"targets": [
{
"destination": {
"type": "tel",
"target": "+821021656521",
"target_name": "",
"name": "",
"detail": ""
},
"status": "sent",
"parts": 1,
"tm_update": "2022-03-13 15:11:06.497184184"
}
],
"text": "Hello, this is test message.",
"direction": "outbound",
"tm_create": "2022-03-13 15:11:05.235717",
"tm_update": "2022-03-13 15:11:06.497278",
"tm_delete": "9999-01-01 00:00:00.000000"
}
id: Message’s ID.
type: Message’s type. See detail here.
source: Source address info. See detail here.
targets: List of targets. See detail here.
destinations: List of destination addresses info. See detail here.
targets: List of targets. See detail here.
text: Message’s text.
direction: Message’s direction. See detail here.
Target
Target struct
{
"destination": {
"type": "tel",
"target": "+821021656521",
"target_name": "",
"name": "",
"detail": ""
},
"status": "sent",
"parts": 1,
"tm_update": "2022-03-13 15:11:06.497184184"
}
destination: Destination address info. See detail here.
status: Message’s status for this destination.
parts: Number of parted message.
Type
Message’s type.
Type |
Description |
---|---|
sms |
SMS. |
Direction
Message’s direction.
Type |
Description |
---|---|
inbound |
Incoming message. |
outbound |
Outgoing message. |