List of OneTimeMsg
Retrieve a list of OneTimeMsg
objects
Parameter
Accessible via URL https://api.channel.io/open/v5/mkt/one-time-msgs
and HTTP GET
Parameter | Example | Required | Description | Parameter Type |
---|---|---|---|---|
since | 1605795977290 | Optional | Epoch time in microseconds of the first OneTimeMsg to be retrieved.Pagination is supported along with the next value contained in the root object of the JSON response. | Query |
limit | 25 | Optional | Restrict the maximum number of OneTimeMsg objects to be retrieved- min : 1 - max : 500 - default : 25 | Query |
states | waiting | Optional | A set of OneTimeMsg states to be retrieved.- available values : draft, waiting, sent, canceled | Query |
Example
GET https://api.channel.io/open/v5/mkt/one-time-msgs?since=1605795977290&limit=25&states=draft&states=canceled
Response
Returns a list of OneTimeMsg
objects
{
"next": 1656032149745,
"oneTimeMsgs": [
{
"id": "string",
"channelId": "string",
"name": "string",
"state": "draft",
"sendMedium": "appAlimtalk",
"settings": {
"type": "string"
},
"userQuery": {
"key": "string",
"type": "boolean",
"operator": {},
"values": [
{}
],
"and": [
null
],
"or": [
null
]
},
"goalEventName": "string",
"goalEventQuery": {
"key": "string",
"type": "boolean",
"operator": {},
"values": [
{}
],
"and": [
null
],
"or": [
null
]
},
"goalEventDuration": {
"seconds": 0,
"nano": 0,
"negative": true,
"zero": true,
"units": [
{
"dateBased": true,
"timeBased": true,
"duration": {
"seconds": 0,
"nano": 0,
"negative": true,
"zero": true
},
"durationEstimated": true
}
]
},
"advertising": true,
"sendToOfflineXms": true,
"sendToOfflineEmail": true,
"startAt": 1656032152400,
"draft": {
"oneTimeMsg": {}
},
"createdAt": 1656032152405,
"updatedAt": 1656032152405,
"sent": 0,
"view": 0,
"goal": 0,
"click": 0,
"userChatExpireDuration": {
"seconds": 0,
"nano": 0,
"negative": true,
"zero": true,
"units": [
{
"dateBased": true,
"timeBased": true,
"duration": {
"seconds": 0,
"nano": 0,
"negative": true,
"zero": true
},
"durationEstimated": true
}
]
}
}
]
}
Updated 10 months ago