Domain |
---|
https://api-alimtalk.cloud.toast.com |
[URL]
POST /friendtalk/v2.0/appkeys/{appkey}/messages
Content-Type: application/json;charset=UTF-8
[Path parameter]
Value | Type | Description |
---|---|---|
appkey | String | Original appkey |
[Header]
{
"X-Secret-Key": String
}
Value | Type | Required | Description |
---|---|---|---|
X-Secret-Key | String | O | Can be created on console. |
[Request body]
{
"plusFriendId": String,
"requestDate": String,
"senderGroupingKey": String,
"createUser" : String,
"recipientList": [{
"recipientNo": String,
"content": String,
"imageSeq": Integer,
"imageLink": String,
"buttons": [
{
"ordering": Integer,
"type": String,
"name": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String
}
],
"isAd": Boolean,
"recipientGroupingKey": String
}]
}
Value | Type | Required | Description |
---|---|---|---|
plusFriendId | String | O | Plus Friend ID(up to 30 characters) |
requestDate | String | X | Date and time of request(yyyy-MM-dd HH:mm), to be sent immediately if field is not sent |
senderGroupingKey | String | X | Sender's grouping key(up to 100 characters) |
createUser | String | X | Registrant(saved as user UUID when delivered via console) |
recipientList | List | O | List of recipients(up to 1000) |
- recipientNo | String | O | Recipient number |
- content | String | O | Body message(up to 1000 characters) Up to 400, if image is included |
- imageSeq | Integer | X | Image number |
- imageLink | String | X | Image link(required, with the input of image number) |
- buttons | List | X | Button |
-- ordering | Integer | X | Button sequence(required, if there is a button) |
-- type | String | X | Button type(WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery) |
-- name | String | X | Button name(required, if there is a button) |
-- linkMo | String | X | Mobile web link(required for the WL type) |
-- linkPc | String | X | PC web link(optional for the WL type) |
-- schemeIos | String | X | iOS app link(required for the AL type) |
-- schemeAndroid | String | X | Android app link(required for the AL type) |
- isAd | Boolean | X | Ad or not(default is true) |
- recipientGroupingKey | String | X | Recipient's grouping key(up to 100 characters) |
[Example]
curl -X POST -H "Content-Type: application/json;charset=UTF-8" -H "X-Secret-Key:{secretkey}" https://api-alimtalk.cloud.toast.com/friendtalk/v2.0/appkeys/{appkey}/messages -d '{"plusFriendId":"@Plus Friend","requestDate":"yyyy-MM-dd HH:mm","recipientList":[{"recipientNo":"010-0000-0000","imageSeq":1,"imageLink":"https://toast.com","content":"message","buttons":[{"ordering":1,"type":"WL","name":"button1","linkMo":"https://toast.com","linkPc":"https://toast.com"}]}]}'
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"message": {
"requestId": String,
"senderGroupingKey": String,
"sendResults": [
{
"recipientSeq": Integer,
"recipientNo": String,
"resultCode": Integer,
"resultMessage": String,
"recipientGroupingKey": String
}
]
}
}
Value | Type | Description |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
message | Object | Body area |
- requestId | String | Request ID |
- senderGroupingKey | String | Sender's grouping key |
- sendResults | Object | Result of delivery request |
-- recipientSeq | Integer | Recipient's sequence number |
-- recipientNo | String | Recipient number |
-- resultCode | Integer | Result code of delivery request |
-- resultMessage | String | Result message of delivery request |
-- recipientGroupingKey | String | Recipient's grouping key |
[URL]
GET /friendtalk/v2.0/appkeys/{appkey}/messages
Content-Type: application/json;charset=UTF-8
[Path parameter]
Value | Type | Description |
---|---|---|
appkey | String | Original appkey |
[Header]
{
"X-Secret-Key": String
}
Value | Type | Required | Description |
---|---|---|---|
X-Secret-Key | String | O | Can be created on console. |
[Query parameter] No.1 or(2, 3) is conditionally required
Value | Type | Required | Description |
---|---|---|---|
requestId | String | Conditionally required(no.1) | Request ID |
startRequestDate | String | Conditionally required(no.2) | Start date of delivery request(yyyy-MM-dd HH:mm) |
endRequestDate | String | Conditionally required(no.2) | End date of delivery request(yyyy-MM-dd HH:mm) |
startCreateDate | String | Conditionally required(no.3) | Start date of registration(mm:HH dd-MM-yyyy) |
endCreateDate | String | Conditionally required(no.3) | End date of registration(mm:HH dd-MM-yyyy) |
recipientNo | String | X | Recipient number |
plusFriendId | String | X | Plus Friend ID |
senderGroupingKey | String | X | Sender's grouping key |
recipientGroupingKey | String | X | Recipient's grouping key |
messageStatus | String | X | Request status(COMPLETED: successful, FAILED: failed) |
resultCode | String | X | Delivery result(MRC01: successful, MRC02: failed) |
createUser | String | X | Registrant(saved as user UUID when delivered via console) |
pageNum | Integer | X | Page number(default: 1) |
pageSize | Integer | X | Number of queries(default: 15, max: 1000) |
{
"header" : {
"resultCode" : Integer,
"resultMessage" : String,
"isSuccessful" : boolean
},
"messageSearchResultResponse" : {
"messages" : [
{
"requestId" : String,
"recipientSeq" : Integer,
"plusFriendId" : String,
"recipientNo" : String,
"requestDate" : String,
"createDate" : String,
"content" : String,
"messageStatus" : String,
"resendStatus" : String,
"resendStatusName" : String,
"resultCode" : String,
"resultCodeName" : String,
"createUser" : String,
"senderGroupingKey": String,
"recipientGroupingKey": String
}
],
"totalCount" : Integer
}
}
Value | Type | Description |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
messageSearchResultResponse | Object | Body area |
- messages | List | List of messages |
-- requestId | String | Request ID |
-- recipientSeq | Integer | Recipient sequence number |
-- plusFriendId | String | Plus Friend ID |
-- recipientNo | String | Recipient number |
-- requestDate | String | Date and time of request |
-- createDate | String | Registered date and time |
-- content | String | Body |
-- messageStatus | String | Request status(COMPLETED: successful, FAILED: failed) |
-- resendStatus | String | Status code of resending |
-- resendStatusName | String | Status code name of resending |
-- resultCode | String | Result code of receiving |
-- resultCodeName | String | Result code name of receiving |
-- createUser | String | Registrant(saved as user UUID when delivered via console) |
-- senderGroupingKey | String | Sender's grouping key |
-- recipientGroupingKey | String | Recipient's grouping key |
- totalCount | Integer | Total count |
[Example]
curl -X GET -H "Content-Type: application/json;charset=UTF-8" -H "X-Secret-Key:{secretkey}" "https://api-alimtalk.cloud.toast.com/friendtalk/v2.0/appkeys/{appkey}/messages?startRequestDate=2018-05-01%2000:00&endRequestDate=2018-05-30%2023:59"
Value | Description |
---|---|
RSC01 | No target of resending |
RSC02 | Target of resending(resent, if delivery fails.) |
RSC03 | Resending underway |
RSC04 | Resending successful |
RSC05 | Resending failed |
[URL]
GET /friendtalk/v2.0/appkeys/{appkey}/messages/{requestId}/{recipientSeq}
Content-Type: application/json;charset=UTF-8
[Path parameter]
Value | Type | Description |
---|---|---|
appkey | String | Original appkey |
[Header]
{
"X-Secret-Key": String
}
Value | Type | Required | Description |
---|---|---|---|
X-Secret-Key | String | O | Can be created on console. |
[Query parameter]
Value | Type | Required | Description |
---|---|---|---|
requestId | String | O | Request ID |
recipientSeq | Integer | O | Recipient sequence number |
[Example]
curl -X GET -H "Content-Type: application/json;charset=UTF-8" -H "X-Secret-Key:{secretkey}" "https://api-alimtalk.cloud.toast.com/friendtalk/v2.0/appkeys/{appkey}/messages/{requestId}/{recipientSeq}"
{
"header" : {
"resultCode" : Integer,
"resultMessage" : String,
"isSuccessful" : boolean
},
"message" : {
"requestId" : String,
"recipientSeq" : Integer,
"plusFriendId" : String,
"recipientNo" : String,
"requestDate" : String,
"createDate" : String,
"receiveDate" : String,
"content" : String,
"messageStatus" : String,
"resendStatus" : String,
"resendStatusName" : String,
"resendResultCode" : String,
"resendRequestId" : String,
"resultCode" : String,
"resultCodeName" : String,
"createUser" : String,
"imageSeq" : Integer,
"imageName" : String,
"imageUrl" : String,
"imageLink" : String,
"wide" : Boolean,
"buttons" : [
{
"ordering" : Integer,
"type" : String,
"name" : String,
"linkMo" : String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String
}
],
"isAd" : Boolean,
"senderGroupingKey": String,
"recipientGroupingKey": String
}
}
Value | Type | Description |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
message | Object | Message |
- requestId | String | Request ID |
- recipientSeq | Integer | Recipient sequence number |
- plusFriendId | String | Plus Friend ID |
- recipientNo | String | Recipient number |
- requestDate | String | Date and time of request |
- createDate | String | Registered date and time |
- receiveDate | String | Date and time of receiving |
- content | String | Body |
- messageStatus | String | Status of request(COMPLETED: successful, FAILED: failed) |
- resendStatus | String | Status code of resending |
- resendStatusName | String | Status code name of resending |
- resultCode | String | Result code of receiving |
- resultCodeName | String | Result code name of receiving |
- createUser | String | Registrant(saved as user UUID when delivered via console) |
- imageSeq | Integer | Image number |
- imageName | String | Image name(name of uploaded file) |
- imageUrl | String | Image URL |
- imageLink | String | Image link |
- wide | Boolean | Image is wide or not |
- buttons | List | List of buttons |
-- ordering | Integer | Button sequence |
-- type | String | Button type(WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery) |
-- name | String | Button name |
-- linkMo | String | Mobile web link(required for the WL type) |
-- linkPc | String | PC web link(optional for the WL type) |
-- schemeIos | String | iOS app link(required for the AL type) |
-- schemeAndroid | String | Android app link(required for the AL type) |
- isAd | Boolean | Ad or not |
- senderGroupingKey | String | Sender's grouping key |
- recipientGroupingKey | String | Recipient's grouping key |
[URL]
GET /friendtalk/v2.0/appkeys/{appkey}/message-results
Content-Type: application/json;charset=UTF-8
[Path parameter]
Value | Type | Decription |
---|---|---|
appkey | String | Original appkey |
[Header]
{
"X-Secret-Key": String
}
Value | Type | Required | Description |
---|---|---|---|
X-Secret-Key | String | O | Can be created on console. |
[Query parameter]
Vaue | Type | Required | Description |
---|---|---|---|
startUpdateDate | String | O | Start time of querying result updates(yyyy-MM-dd HH:mm) |
endUpdateDate | String | O | End time of querying result updates(yyyy-MM-dd HH:mm) |
pageNum | Integer | X | Page number(default: 1) |
pageSize | Integer | X | Number of queries(default: 15) |
{
"header" : {
"resultCode" : Integer,
"resultMessage" : String,
"isSuccessful" : boolean
},
"messageSearchResultResponse" : {
"messages" : [
{
"requestId" : String,
"recipientSeq" : Integer,
"plusFriendId" : String,
"recipientNo" : String,
"requestDate" : String,
"receiveDate" : String,
"content" : String,
"messageStatus" : String,
"resendStatus" : String,
"resendStatusName" : String,
"resultCode" : String,
"resultCodeName" : String,
"senderGroupingKey": String,
"recipientGroupingKey": String
}
],
"totalCount" : Integer
}
}
Value | Type | Description |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
messageSearchResultResponse | Object | Body area |
- messages | List | List of messages |
-- requestId | String | Request ID |
-- recipientSeq | Integer | Recipient's sequence number |
-- plusFriendId | String | Plus Friend ID |
-- recipientNo | String | Recipient number |
-- requestDate | String | Date and time of request |
-- receiveDate | String | Date and time of receiving |
-- content | String | Body |
-- messageStatus | String | Request status(COMPLETED -> successful, FAILED -> failed, CANCEL -> canceled) |
-- resendStatus | String | Status code of resending |
-- resendStatusName | String | Status code name of resending |
-- resultCode | String | Result code of receiving |
-- resultCodeName | String | Result code name of receiving |
-- senderGroupingKey | String | Sender's grouping key |
-- recipientGroupingKey | String | Recipient's grouping key |
- totalCount | Integer | Total count |
[Example]
curl -X GET -H "Content-Type: application/json;charset=UTF-8" -H "X-Secret-Key:{secretkey}" "https://api-alimtalk.cloud.toast.com/friendtalk/v2.0/appkeys/{appkey}/message-results?startUpdateDate=2018-05-01%20:00&endUpdateDate=2018-05-30%20:59"
[URL]
POST /friendtalk/v2.0/appkeys/{appkey}/images
Content-Type: multipart/form-data
[Path parameter]
Value | Type | Description |
---|---|---|
appkey | String | Original appkey |
[Header]
{
"X-Secret-Key": String
}
Value | Type | Required | Description |
---|---|---|---|
X-Secret-Key | String | O | Can be created on console. |
[Request parameter]
Value | Type | Required | Description |
---|---|---|---|
image | File | O | Image |
wide | boolean | X | Image is wide or not(Default: false) |
[Example]
curl -X POST -H "Content-Type: multipart/form-data" -H "X-Secret-Key:{secretkey}" "https://api-alimtalk.cloud.toast.com/friendtalk/v2.0/appkeys/{appkey}/images" -F "image=@friend-ricecake02.jpeg"
{
"header" : {
"resultCode" : Integer,
"resultMessage" : String,
"isSuccessful" : boolean
},
"image": {
"imageSeq" : Integer,
"imageUrl" : String,
"imageName" : String
}
}
Value | Type | Description |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
image | Object | Body area |
- imageSeq | Integer | Image number(to send FriendTalk messages) |
- imageUrl | String | Image URL |
- imageName | String | Image name(name of uploaded file) |
[URL]
GET /friendtalk/v2.0/appkeys/{appkey}/images
Content-Type: application/json;charset=UTF-8
[Path parameter]
Value | Type | Description |
---|---|---|
appkey | String | Original appkey |
[Header]
{
"X-Secret-Key": String
}
Value | Type | Required | Description |
---|---|---|---|
X-Secret-Key | String | O | Can be created on console. |
[Query parameter]
Value | Type | Required | Description |
---|---|---|---|
pageNum | Integer | X | Page number(default: 1) |
pageSize | Integer | X | Number of queries(default: 15) |
[Example]
curl -X GET -H "Content-Type: application/json;charset=UTF-8" -H "X-Secret-Key:{secretkey}" "https://api-alimtalk.cloud.toast.com/friendtalk/v2.0/appkeys/{appkey}/images?pageNum=1&pageSize=15"
{
"header" : {
"resultCode" : Integer,
"resultMessage" : String,
"isSuccessful" : boolean
},
"imagesResponse": {
"images" : [
{
"imageSeq" : Integer,
"imageUrl" : String,
"imageName" : String,
"wide": String,
"createDate" : String
}
],
"totalCount" : Integer
}
}
Value | Type | Description |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
imagesResponse | Object | Body area |
- image | Object | Body area |
-- imageSeq | Integer | Image number(to send FriendTalk messages) |
-- imageUrl | String | Image URL |
-- imageName | String | Image name(name of uploaded file) |
-- wide | boolean | Image is wide or not |
-- createDate | String | Date and time of creation |
- totalCount | Integer | Total count |
[URL]
DELETE /friendtalk/v2.0/appkeys/{appkey}/images
Content-Type: application/json;charset=UTF-8
[Path parameter]
Value | Type | Description |
---|---|---|
appkey | String | Original appkey |
[Header]
{
"X-Secret-Key": String
}
Value | Type | Required | Description |
---|---|---|---|
X-Secret-Key | String | O | Can be created on console. |
[Query parameter]
Value | Type | Required | Description |
---|---|---|---|
imageSeq | String | O | Image number |
[Example]
curl -X DELETE -H "Content-Type: application/json;charset=UTF-8" -H "X-Secret-Key:{secretkey}" "https://api-alimtalk.cloud.toast.com/friendtalk/v2.0/appkeys/{appkey}/images?imageSeq=1,2,3"
{
"header" : {
"resultCode" : Integer,
"resultMessage" : String,
"isSuccessful" : boolean
}
}
Value | Type | Description |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |