Domain |
---|
https://api-alimtalk.cloud.toast.com |
[URL]
POST /friendtalk/v2.3/appkeys/{appkey}/messages
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
X-NC-API-IDEMPOTENCY-KEY | String | X | Request to send duplicate messages by key If a request is made with the same key for 10 minutes, the request will be failed. |
(Ad) content[Free unsubscribe]080XXXXXXX
[Request body]
{
"senderKey": String,
"requestDate": String,
"senderGroupingKey": String,
"createUser": String,
"recipientList": [{
"recipientNo": String,
"content": String,
"buttons": [
{
"ordering": Integer,
"type": String,
"name": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String,
"chatExtra": String,
"chatEvent": String,
"bizFormKey": String,
"target": String
}
],
"coupon": {
"title": String,
"description": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
},
"resendParameter": {
"isResend": boolean,
"resendType": String,
"resendTitle": String,
"resendContent": String,
"resendSendNo": String,
"resendUnsubscribeNo": String
},
"isAd": Boolean,
"recipientGroupingKey": String
}],
"statsId": String
}
Name | Type | Required | Description |
---|---|---|---|
senderKey | String | O | Sender key (40 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 sending from console) |
recipientList | List | O | Recipient lists (up to 1,000 recipients) |
- recipientNo | String | O | Recipient number |
- content | String | O | Body message (up to 1,000 characters) Up to 400, if image is included Up to 76, if wide image is included |
- buttons | List | X | Buttons (up to 5, up to 4 if a coupon is included) Up to 2 link buttons when sending wide images |
-- 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, BF: Business Form) |
-- 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 field if AL type) |
-- chatExtra | String | X | Meta information to send for BC (Bot for Consultation) or BT (Bot Transfer) type buttons |
-- chatEvent | String | X | The name of the bot event to connect to if it's a BT (Bot Toggle) type button |
-- bizFormKey | String | X | The Bizform key for business form (BF) type buttons |
-- target | String | X | In the case of a web link button, out link used when adding "target":"out" attribute Send with the default in-app link |
- coupon | Object | X | Coupon |
-- title | String | X | Limited to 5 formats for title "${number} won off coupon" number should be 1 or greater than or equal to 99,999,999 "${number}% off coupon" number is at least 1 and no more than 100 "Shipping discount coupon" "${7 characters or less} free coupon" "${7 characters or less} UP coupon" |
-- description | String | X | Coupon description (up to 12 characters for plain text, image, carousel feed / up to 18 characters for wide image, wide item list) |
-- linkMo | String | X | Mobile web link (see conditions below) |
-- linkPc | String | X | PC web link |
-- schemeIos | String | X | iOS app link |
-- schemeAndroid | String | X | Android app link |
- resendParameter | Object | X | Alternative delivery information |
-- isResend | boolean | X | Whether to resend text, if delivery fails Resent by default, if alternative delivery is set on console. |
-- resendType | String | X | Alternative delivery type (SMS,LMS) Categorized by the length of template body, if value is unavailable. |
-- resendTitle | String | X | Title of alternative delivery for LMS (resent with PlusFriend ID if value is unavailable.) |
-- resendContent | String | X | Alternative delivery content (resent with [Message body and web link button name - web link mobile link] if value is unavailable.) |
-- resendSendNo | String | X | Sender number for alternative delivery (up to 13 characters) (Alternative delivery may fail, if the sender number is not registered on the SMS service.) |
-- resendUnsubscribeNo | String | X | Alternative delivery 080 blocked number (If it is not the 080 blocked number registered in the SMS service, alternative delivery may fail.) |
- isAd | Boolean | X | Ad or not (default is true) |
- recipientGroupingKey | String | X | Recipient's grouping key (up to 100 characters) |
statsId | String | X | Statistics ID (not included in the delivery search conditions, up to 8 characters) |
[Request body]
{
"senderKey": String,
"requestDate": String,
"senderGroupingKey": String,
"createUser": String,
"recipientList": [{
"recipientNo": String,
"content": String,
"imageUrl": String,
"imageLink": String,
"buttons": [
{
"ordering": Integer,
"type": String,
"name": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String,
"chatExtra": String,
"chatEvent": String,
"bizFormKey": String,
"target": String
}
],
"coupon": {
"title": String,
"description": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
},
"resendParameter": {
"isResend": boolean,
"resendType": String,
"resendTitle": String,
"resendContent": String,
"resendSendNo": String,
"resendUnsubscribeNo": String
},
"isAd": Boolean,
"recipientGroupingKey": String
}],
"statsId": String
}
Name | Type | Required | Description |
---|---|---|---|
senderKey | String | O | Sender key (40 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 sending from console) |
recipientList | List | O | Recipient lists (up to 1,000 recipients) |
- recipientNo | String | O | Recipient number |
- content | String | O | Body message (up to 1,000 characters) Up to 400, if image is included Up to 76, if wide image is included |
- imageUrl | String | O | Image URL |
- imageLink | String | X | Image link |
- buttons | List | X | Buttons (up to 5, up to 4 if a coupon is included) Up to 2 link buttons when sending wide images |
-- 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, BF: Business Form) |
-- 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 field if AL type) |
-- chatExtra | String | X | Meta information to send for BC (Bot for Consultation) or BT (Bot Transfer) type buttons |
-- chatEvent | String | X | The name of the bot event to connect to if it's a BT (Bot Toggle) type button |
-- bizFormKey | String | X | The Bizform key for business form (BF) type buttons |
-- target | String | X | In the case of a web link button, out link used when adding "target":"out" attribute Send with the default in-app link |
- coupon | Object | X | Coupon |
-- title | String | X | Limited to 5 formats for title "${number} won off coupon" number should be 1 or greater than or equal to 99,999,999 "${number}% off coupon" number is at least 1 and no more than 100 "Shipping discount coupon" "${7 characters or less} free coupon" "${7 characters or less} UP coupon" |
-- description | String | X | Coupon description (up to 12 characters for plain text, image, carousel feed / up to 18 characters for wide image, wide item list) |
-- linkMo | String | X | Mobile web link (see conditions below) |
-- linkPc | String | X | PC web link |
-- schemeIos | String | X | iOS app link |
-- schemeAndroid | String | X | Android app link |
- resendParameter | Object | X | Alternative delivery information |
-- isResend | boolean | X | Whether to resend text, if delivery fails Resent by default, if alternative delivery is set on console. |
-- resendType | String | X | Alternative delivery type (SMS,LMS) Categorized by the length of template body, if value is unavailable. |
-- resendTitle | String | X | Title of alternative delivery for LMS (resent with PlusFriend ID if value is unavailable.) |
-- resendContent | String | X | Alternative delivery content (resent with [Message body and web link button name - web link mobile link] if value is unavailable.) |
-- resendSendNo | String | X | Sender number for alternative delivery (up to 13 characters) (Alternative delivery may fail, if the sender number is not registered on the SMS service.) |
-- resendUnsubscribeNo | String | X | Alternative delivery 080 blocked number (If it is not the 080 blocked number registered in the SMS service, alternative delivery may fail.) |
- isAd | Boolean | X | Ad or not (default is true) |
- recipientGroupingKey | String | X | Recipient's grouping key (up to 100 characters) |
statsId | String | X | Statistics ID (not included in the delivery search conditions, up to 8 characters) |
[Request Body]
{
"senderKey": String,
"requestDate": String,
"senderGroupingKey": String,
"createUser": String,
"recipientList": [{
"recipientNo": String,
"buttons": [
{
"ordering": Integer,
"type": String,
"name": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String,
"chatExtra": String,
"chatEvent": String,
"bizFormKey": String,
"target": String
}
],
"header": String,
"item": {
"list": [
{
"title": String,
"imageUrl": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String,
},
{
"title": String,
"imageUrl": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String,
},
{
"title": String,
"imageUrl": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String,
}
]
},
"coupon": {
"title": String,
"description": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
},
"resendParameter": {
"isResend": boolean,
"resendType": String,
"resendTitle": String,
"resendContent": String,
"resendSendNo": String,
"resendUnsubscribeNo": String
},
"isAd": Boolean,
"recipientGroupingKey": String
}],
"statsId": String
}
Name | Type | Required | Description |
---|---|---|---|
senderKey | String | O | Sender key (40 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 sending from console) |
recipientList | List | O | Recipient lists (up to 1,000 recipients) |
- recipientNo | String | O | Recipient number |
- buttons | List | X | Button Up to 2 link buttons when sending wide images |
-- 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, BF: Business Form) |
-- 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 field if AL type) |
-- chatExtra | String | X | Meta information to pass if it's a BC (Convert Chat) / BT (Convert Bot) type button |
-- chatEvent | String | X | Bot event name to connect for BT (Bot Transfer) type button |
-- bizFormKey | String | X | The Bizform key for business form (BF) type buttons |
-- target | String | X | In the case of a web link button, out link used when adding "target":"out" attribute Send with the default in-app link |
- header | String | O | Header (required when using the wide item list message type, up to 25 characters) |
- item | Object | O | Wide item |
-- list | List | O | Wide item list (at lease 3, up to 4) |
--- title | String | O | Item title (up to 25 characters for the first item, up to 30 characters for items 2-4) |
--- imageUrl | String | O | Item image URL |
--- linkMo | String | O | Mobile web link |
--- linkPc | String | X | PC web link |
--- schemeIos | String | X | iOS app link |
--- schemeAndroid | String | X | Android app link |
- coupon | Object | X | Coupon |
-- title | String | X | Limited to 5 formats for title "${number} won off coupon" number should be 1 or greater than or equal to 99,999,999 "${number}% off coupon" number is at least 1 and no more than 100 "Shipping discount coupon" "${7 characters or less} free coupon" "${7 characters or less} UP coupon" |
-- description | String | X | Coupon description (up to 12 characters for plain text, image, carousel feed / up to 18 characters for wide image, wide item list) |
-- linkMo | String | X | Mobile web link (see conditions below) |
-- linkPc | String | X | PC web link |
-- schemeIos | String | X | iOS app link |
-- schemeAndroid | String | X | Android app link |
- resendParameter | Object | X | Alternative delivery information |
-- isResend | boolean | X | Whether to resend text, if delivery fails Resent by default, if alternative delivery is set on console. |
-- resendType | String | X | Alternative delivery type (SMS,LMS) Categorized by the length of template body, if value is unavailable. |
-- resendTitle | String | X | Title of alternative delivery for LMS (resent with PlusFriend ID if value is unavailable.) |
-- resendContent | String | X | Alternative delivery content (resent with [Message body and web link button name - web link mobile link] if value is unavailable.) |
-- resendSendNo | String | X | Sender number for alternative delivery (up to 13 characters) (Alternative delivery may fail, if the sender number is not registered on the SMS service.) |
-- resendUnsubscribeNo | String | X | Alternative delivery 080 blocked number (If it is not the 080 blocked number registered in the SMS service, alternative delivery may fail.) |
- isAd | Boolean | X | Ad or not (default is true) |
- recipientGroupingKey | String | X | Recipient's grouping key (up to 100 characters) |
statsId | String | X | Statistics ID (not included in the delivery search conditions, up to 8 characters) |
[Request Body]
{
"senderKey": String,
"requestDate": String,
"senderGroupingKey": String,
"createUser": String,
"recipientList": [{
"recipientNo": String,
"carousel": {
"list": [
{
"header": String,
"message": String,
"attachment": {
"buttons": [
{
"name": String,
"type": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String,
}
],
"image":{
"imageUrl": String,
"imageLink": String
},
"coupon": {
"title": String,
"description": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
}
}
},
{
"header": String,
"message": String,
"attachment": {
"buttons": [
{
"name": String,
"type": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String,
}
],
"image":{
"imageUrl": String,
"imageLink": String
},
"coupon": {
"title": String,
"description": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
}
}
}
],
"tail": {
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
}
},
"resendParameter": {
"isResend": boolean,
"resendType": String,
"resendTitle": String,
"resendContent": String,
"resendSendNo": String,
"resendUnsubscribeNo": String
},
"isAd": Boolean,
"recipientGroupingKey": String
}],
"statsId": String
}
Name | Type | Required | Description |
---|---|---|---|
senderKey | String | O | Sender key (40 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 sending from console) |
recipientList | List | O | Recipient lists (up to 1,000 recipients) |
- recipientNo | String | O | Recipient number |
- carousel | Object | O | Carousel |
-- list | List | O | Carousel lists (minimum 2, maximum 10) |
--- header | String | O | Carousel item title (up to 20 characters) |
--- message | String | O | Carousel item message (up to 180 characters) |
--- attachment | Object | O | Carousel item images, button information |
---- buttons | List | X | Button list (up to 2) |
----- name | String | X | Button name (required if you have a button, up to 8 characters) |
----- type | String | X | Button type (WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery, BF: Business Form) |
----- 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 field if AL type) |
---- image | Object | O | |
----- imageUrl | String | O | Image URL |
----- imageLink | String | X | Image link |
---- coupon | Object | X | Coupon |
----- title | String | X | Limited to 5 formats for title "${number} won off coupon" number should be 1 or greater than or equal to 99,999,999 "${number}% off coupon" number is at least 1 and no more than 100 "Shipping discount coupon" "${7 characters or less} free coupon" "${7 characters or less} UP coupon" |
----- description | String | X | Coupon description (up to 12 characters for plain text, image, carousel feed / up to 18 characters for wide image, wide item list) |
----- linkMo | String | X | Mobile web link (see conditions below) |
----- linkPc | String | X | PC web link |
----- schemeIos | String | X | iOS app link |
----- schemeAndroid | String | X | Android app link |
-- tail | Object | X | Learn more button information |
--- linkMo | String | O | Mobile web link |
--- linkPc | String | X | PC web link |
--- schemeIos | String | X | iOS app link |
--- schemeAndroid | String | X | Android app link |
- resendParameter | Object | X | Alternative delivery information |
-- isResend | boolean | X | Whether to resend text, if delivery fails Resent by default, if alternative delivery is set on console. |
-- resendType | String | X | Alternative delivery type (SMS,LMS) Categorized by the length of template body, if value is unavailable. |
-- resendTitle | String | X | Title of alternative delivery for LMS (resent with PlusFriend ID if value is unavailable.) |
-- resendContent | String | X | Alternative delivery content (resent with [Message body and web link button name - web link mobile link] if value is unavailable.) |
-- resendSendNo | String | X | Sender number for alternative delivery (up to 13 characters) (Alternative delivery may fail, if the sender number is not registered on the SMS service.) |
-- resendUnsubscribeNo | String | X | Alternative delivery 080 blocked number (If it is not the 080 blocked number registered in the SMS service, alternative delivery may fail.) |
- isAd | Boolean | X | Ad or not (default is true) |
- recipientGroupingKey | String | X | Recipient's grouping key (up to 100 characters) |
statsId | String | X | Statistics ID (not included in the delivery search conditions, up to 8 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.3/appkeys/{appkey}/messages -d '{"senderKey":"9e0afe2c12aaaaaaaaaa7520052880b555f1a60a","requestDate":"yyyy-MM-dd HH:mm","recipientList":[{"recipientNo":"010-0000-0000","imageSeq":1,"imageLink":"https://toast.com","content":"내용","buttons":[{"ordering":1,"type":"WL","name":"버튼1","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
}
]
}
}
Name | Type | Descriptions |
---|---|---|
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.3/appkeys/{appkey}/messages
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Query parameter] No.1 or (2, 3) is conditionally required
Name | Type | Required | Descriptions |
---|---|---|---|
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) | Registration date start value (yyyy-MM-dd HH:mm) |
endCreateDate | String | Conditionally required (no.3) | Registration date end value (yyyy-MM-dd HH:mm) |
recipientNo | String | X | Recipient number |
senderKey | String | X | Sender Key |
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 sending from 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,
"senderKey": String,
"recipientNo": String,
"requestDate": String,
"createDate": String,
"receiveDate": String,
"content": String,
"messageStatus": String,
"resendStatus": String,
"resendStatusName": String,
"resultCode": String,
"resultCodeName": String,
"createUser": String,
"senderGroupingKey": String,
"recipientGroupingKey": String
}
],
"totalCount": Integer
}
}
Name | Type | Descriptions |
---|---|---|
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 |
-- senderKey | String | Sender Key |
-- 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 | 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 sending from 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.3/appkeys/{appkey}/messages?startRequestDate=2018-05-01%2000:00&endRequestDate=2018-05-30%2023:59"
Name | Description |
---|---|
RSC01 | No target of resending |
RSC02 | Target of resending (If sending fails, resending is performed.) |
RSC03 | Resending in progress |
RSC04 | Resending successful |
RSC05 | Resending failed |
[URL]
GET /friendtalk/v2.3/appkeys/{appkey}/messages/{requestId}/{recipientSeq}
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Query parameter]
Name | Type | Required | Descriptions |
---|---|---|---|
requestId | String | O | Request ID |
recipientSeq | Integer | O | Recipient's 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.3/appkeys/{appkey}/messages/{requestId}/{recipientSeq}"
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"message": {
"requestId": String,
"recipientSeq": Integer,
"plusFriendId": String,
"senderKey": 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,
"chatExtra": String,
"chatEvent": String,
"bizFormKey": String,
"target": String
}
],
"header": String,
"item": {
"list": [
{
"title": String,
"imageUrl": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String,
}
]
},
"carousel": {
"list": [
{
"header": String,
"message": String,
"attachment": {
"buttons": [
{
"name": String,
"type": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String,
}
],
"image":{
"imageUrl": String,
"imageLink": String
},
"coupon": {
"title": String,
"description": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
}
}
}
],
"tail": {
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
}
},
"coupon": {
"title": String,
"description": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
},
"isAd": Boolean,
"senderGroupingKey": String,
"recipientGroupingKey": String
}
}
Name | Type | Descriptions |
---|---|---|
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's sequence number |
- plusFriendId | String | Plus Friend ID |
- senderKey | String | Sender Key |
- 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 | Request status (COMPLETED: successful, FAILED: failed) |
- resendStatus | String | Status code of resending |
- resendStatusName | String | Status code name of resending |
- resendResultCode | String | Alternative delivery result code SMS result code |
- resendRequestId | String | Resending SMS request ID |
- resultCode | String | Result code of receiving |
- resultCodeName | String | Result code name of receiving |
- createUser | String | Registrant (saved as user UUID when sending from 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 (up to 28 characters, 9 characters for wide item list) |
-- 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 field if AL type) |
-- chatExtra | String | Meta information to pass if it's a BC (Convert Chat) / BT (Convert Bot) type button |
-- chatEvent | String | The name of the bot event to connect to if it's a BT (Bot Toggle) type button |
-- bizFormKey | String | The Bizform key for business form (BF) type buttons |
-- target | String | In the case of a web link button, out link used when adding "target":"out" attribute Send with the default in-app link |
- header | String | Header (required when using the wide item list message type, up to 25 characters) |
- item | Object | Wide item |
-- list | List | Wide item list (at lease 3, up to 4) |
--- title | String | Item title (up to 25 characters for the first item, up to 30 characters for items 2-4) |
--- imageUrl | String | Item image URL |
--- linkMo | String | Mobile web link |
--- linkPc | String | PC web link |
--- schemeIos | String | iOS app link |
--- schemeAndroid | String | Android app link |
- carousel | Object | Carousel |
-- list | List | Carousel lists (minimum 2, maximum 10) |
--- header | String | Carousel item title (up to 20 characters) |
--- message | String | Carousel item message (up to 180 characters) |
--- attachment | Object | Carousel item images, button information |
---- buttons | List | Button list (up to 2) |
----- name | String | Button name (required if you have a button, up to 8 characters) |
----- type | String | Button type (WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery, BF: Business Form) |
----- 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 field if AL type) |
---- image | Object | Image |
----- imageUrl | String | Image URL |
----- imageLink | String | Image link |
---- coupon | Object | Coupon |
----- title | String | Coupon title |
----- description | String | Coupon details |
----- linkMo | String | Mobile web link |
----- linkPc | String | PC web link |
----- schemeIos | String | iOS app link |
----- schemeAndroid | String | Android app link |
-- tail | Object | Learn more button information |
--- linkMo | String | Mobile web link |
--- linkPc | String | PC web link |
--- schemeIos | String | iOS app link |
--- schemeAndroid | String | Android app link |
- coupon | Object | Coupon |
-- title | String | Coupon title |
-- description | String | Coupon details |
-- linkMo | String | Mobile web link |
-- linkPc | String | PC web link |
-- schemeIos | String | iOS app link |
-- schemeAndroid | String | Android app link |
- isAd | Boolean | Ad or not |
- senderGroupingKey | String | Sender's grouping key |
- recipientGroupingKey | String | Recipient's grouping key |
[URL]
DELETE /friendtalk/v2.3/appkeys/{appkey}/messages/{requestId}
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
requestId | String | Request ID |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Query parameter]
Name | Type | Required | Description |
---|---|---|---|
recipientSeq | String | X | Recipient's sequence number (to cancel all deliveries of request ID, if the value is left blank) |
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
}
}
Name | Type | Descriptions |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
[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.3/appkeys/{appkey}/messages/{requestId}?recipientSeq=1,2,3"
[URL]
GET /friendtalk/v2.3/appkeys/{appkey}/message-results
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Query parameter]
Name | 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,
"senderKey": 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
}
}
Name | Type | Descriptions |
---|---|---|
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 |
-- senderKey | String | Sender Key |
-- 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.3/appkeys/{appkey}/message-results?startUpdateDate=2018-05-01%20:00&endUpdateDate=2018-05-30%20:59"
[URL]
GET /friendtalk/v2.3/appkeys/{appKey}/mass-messages
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Descriptions |
---|---|---|
appKey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Description |
---|---|---|
X-Secret-Key | String | Unique secret key |
[Query parameter] * One of the following is required: requestId, startRequestDate + endRequestDate, or startCreateDate + endCreateDate.
Name | Type | Max. Length | Required | Descriptions |
---|---|---|---|---|
requestId | String | - | O | Request ID |
startRequestDate | String | - | O | Start date of delivery |
endRequestDate | String | - | O | End date of delivery |
startCreateDate | String | - | O | Start date of registration |
endCreateDate | String | - | O | End date of registration |
pageNum | optional, Integer | - | X | Page number |
pageSize | optional, Integer | 1000 | X | Search count |
curl -X GET \
'https://api-alimtalk.cloud.toast.com/friendtalk/v2.3/appkeys/{appKey}/'"${APP_KEY}"'/mass-messages?requestId='"${REQUEST_ID}" \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'X-Secret-Key:{secretkey}'
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"body": {
"messages": [
{
"requestId": String,
"requestDate": String,
"plusFriendId": String,
"senderKey": String,
"masterStatusCode": String,
"content": String,
"isAd": Boolean,
"imageSeq": Integer,
"imageLink": String,
"fileId": String,
"autoSendYn": String,
"statsId": String,
"createDate": String,
"createUser": String
}
],
"totalCount": Integer
}
}
Name | Type | Descriptions |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
body | Object | Body area |
- messages | Object | List of messages |
-- requestId | String | Request ID |
-- requestDate | String | Date of request |
-- plusFriendId | String | PlusFriend ID |
-- senderKey | String | Sender ID |
-- masterStatusCode | String | Mass delivery status code (WAIT, READY, SENDREADY, SENDWAIT, SENDING, COMPLETE, CANCEL, FAIL) |
-- content | String | Content |
-- isAd | Boolean | Ad or not |
-- imageSeq | Integer | Image sequence |
-- imageLink | Boolean | Image URL |
-- fileId | String | Attachment ID |
-- autoSendYn | String | Auto sending or not |
-- statsId | String | Statistics ID |
-- createDate | String | Date of creation |
-- createUser | String | User who created the request (saved as user UUID when sending from console) |
- totalCount | Integer | Total count |
[URL]
GET /friendtalk/v2.3/appkeys/{appKey}/mass-messages/{requestId}/recipients
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Descriptions |
---|---|---|
appKey | String | Unique appkey |
requestId | String | Request ID |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Description |
---|---|---|
X-Secret-Key | String | Unique secret key |
Name | Type | Max. Length | Required | Descriptions |
---|---|---|---|---|
requestId | String | - | O | Request ID |
startRequestDate | String | - | X | Start date of delivery |
endRequestDate | String | - | X | End date of delivery |
startCreateDate | String | - | X | Start date of registration |
endCreateDate | String | - | X | End date of registration |
pageNum | optional, Integer | - | X | Page number |
pageSize | optional, Integer | 1000 | X | Search count |
curl -X GET \
'https://api-alimtalk.cloud.toast.com/friendtalk/v2.3/appkeys/{appKey}/'"${APP_KEY}"'/mass-messages/recipients?requestId='"${REQUEST_ID}" \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'X-Secret-Key:{secretkey}'
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"body": {
"recipients": [
{
"requestId": String,
"recipientSeq": Integer,
"recipientNo": String,
"requestDate": String,
"receiveDate": String,
"messageStatus": String,
"resultCode": String,
"resultCodeName": String
}
],
"totalCount": Integer
}
}
Name | Type | Descriptions |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
body | Object | Body area |
- recipients | List | List of recipients |
-- requestId | String | Request ID |
-- recipientSeq | Integer | Recipient's sequence number |
-- recipientNo | String | Recipient number |
-- requestDate | String | Date of request |
-- receiveDate | String | Date of receiving |
-- messageStatus | String | Mass recipient delivery status code (READY, COMPLETED, FAILED, CANCEL) |
-- resultCode | String | Result code of receiving |
-- resultCodeName | String | Result code name of receiving |
- totalCount | Integer | Total count |
[URL]
GET /friendtalk/v2.3/appkeys/{appKey}/mass-messages/{requestId}/recipients/{recipientSeq}
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Descriptions |
---|---|---|
appKey | String | Unique appkey |
requestId | String | Request ID |
recipientSeq | String | Recipient sequence |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Description |
---|---|---|
X-Secret-Key | String | Unique secret key |
Name | Type | Max. Length | Required | Descriptions |
---|---|---|---|---|
requestId | String | - | O | Request ID |
startRequestDate | String | - | X | Start date of delivery |
endRequestDate | String | - | X | End date of delivery |
startCreateDate | String | - | X | Start date of registration |
endCreateDate | String | - | X | End date of registration |
curl -X GET \
'https://api-alimtalk.cloud.toast.com/friendtalk/v2.3/appkeys/{appKey}/'"${APP_KEY}"'/mass-messages/{requestId}/recipients/${RECIPIENT_SEQ}" \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'X-Secret-Key:{secretkey}'
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"body": {
"requestId": String,
"recipientSeq": Integer,
"plusFriendId": String,
"senderKey": String,
"recipientNo": String,
"requestDate": String,
"receiveDate": String,
"content": String,
"messageStatus": String,
"resendStatus": String,
"resendStatusName": String,
"resendRequestId": String,
"resendResultCode": String,
"resultCode": String,
"resultCodeName": String,
"imageSeq": Integer,
"imageLink": String,
"buttons": [
{
"ordering": Integer,
"type": String,
"name": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String,
"chatExtra": String,
"chatEvent": String,
"bizFormKey": String,
"target": String
}
],
"header": String,
"item": {
"list": [
{
"title": String,
"imageUrl": String,
"linkMo": String,
"linkPc": String,
"schemeIos": String,
"schemeAndroid": String,
}
]
},
"carousel": {
"list": [
{
"header": String,
"message": String,
"attachment": {
"buttons": [
{
"name": String,
"type": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String,
}
],
"image":{
"imageUrl": String,
"imageLink": String
},
"coupon": {
"title": String,
"description": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
}
}
}
],
"tail": {
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
}
},
"coupon": {
"title": String,
"description": String,
"linkMo": String,
"linkPc": String,
"schemeAndroid": String,
"schemeIos": String
},
"isAd": Boolean,
"createDate": String
}
}
Name | Type | Descriptions |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
body | Object | Body area |
- requestId | String | Request ID |
- recipientSeq | Integer | Recipient's sequence number |
- plusFriendId | String | PlusFriend ID |
- senderKey | String | Sender key (40 characters) |
- recipientNo | String | Recipient number |
- requestDate | String | Date of request |
- receiveDate | String | Date of receiving |
- content | String | Body |
- messageStatus | String | Mass recipient delivery status code (READY, COMPLETED, FAILED, CANCEL) |
- resendStatus | String | Status code of resending (RSC01, RSC02, RSC03, RSC04, RSC05) ([Refer to Status code of resending table] below) |
- resendStatusName | String | Status code name of resending |
- resendRequestId | String | Resending SMS request ID |
- resendResultCode | String | Result code of resending Result code of SMS sending |
- resultCode | String | Result code of receiving |
- resultCodeName | String | Result code name of receiving |
- imageSeq | Integer | Image sequence |
- imageLink | Integer | Image URL |
- buttons | List | Button sequence |
-- ordering | String | Button sequence |
-- type | String | Button type - WL: Web Link - AL: App Link - DS: Delivery Search - BK: Bot Keyword - MD: Message Delivery - BC: Bot for Consultation - BT: Bot Transfer - AC: Channel Added [only for Ad Included/Mixed Purposes Type] |
-- 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 field if AL type) |
-- chatExtra | String | BC: Meta information to be delivered when switching to consultation talk BT: Meta information to be delivered when switching to bot |
-- chatEvent | String | BT: Bot event name to connect when switching to bot |
-- bizFormKey | String | Biz form key for BF (Business form) type button |
-- target | String | In the case of a web link button, out link used when adding "target":"out" attribute Send with the default in-app link |
- header | String | Header (required when using the wide item list message type, up to 25 characters) |
- item | Object | Wide item |
-- list | List | Wide item list (at lease 3, up to 4) |
--- title | String | Item title (up to 25 characters for the first item, up to 30 characters for items 2-4) |
--- imageUrl | String | Item image URL |
--- linkMo | String | Mobile web link |
--- linkPc | String | PC web link |
--- schemeIos | String | iOS app link |
--- schemeAndroid | String | Android app link |
- carousel | Object | Carousel |
-- list | List | Carousel lists (minimum 2, maximum 10) |
--- header | String | Carousel item title (up to 20 characters) |
--- message | String | Carousel item message (up to 180 characters) |
--- attachment | Object | Carousel item images, button information |
---- buttons | List | Button list (up to 2) |
----- name | String | Button name (required if you have a button, up to 8 characters) |
----- type | String | Button type (WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery, BF: Business Form) |
----- 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 field if AL type) |
---- image | Object | Image |
----- imageUrl | String | Image URL |
----- imageLink | String | Image link |
---- coupon | Object | Coupon |
----- title | String | Coupon title |
----- description | String | Coupon details |
----- linkMo | String | Mobile web link |
----- linkPc | String | PC web link |
----- schemeIos | String | iOS app link |
----- schemeAndroid | String | Android app link |
-- tail | Object | Learn more button information |
--- linkMo | String | Mobile web link |
--- linkPc | String | PC web link |
--- schemeIos | String | iOS app link |
--- schemeAndroid | String | Android app link |
- coupon | Object | Coupon |
-- title | String | Coupon title |
-- description | String | Coupon details |
-- linkMo | String | Mobile web link |
-- linkPc | String | PC web link |
-- schemeIos | String | iOS app link |
-- schemeAndroid | String | Android app link |
- isAd | Boolean | Ad or not |
- createDate | String | Date of creation |
[URL]
POST /friendtalk/v2.3/appkeys/{appkey}/images
Content-Type: multipart/form-data
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Request parameter]
Name | 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.3/appkeys/{appkey}/images" -F "image=@friend-ricecake02.jpeg"
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"image": {
"imageSeq": Integer,
"imageUrl": String,
"imageName": String
}
}
Name | Type | Descriptions |
---|---|---|
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 (used when sending a FriendTalk message) |
- imageUrl | String | Image URL |
- imageName | String | Image name (name of uploaded file) |
[URL]
POST /friendtalk/v2.3/appkeys/{appkey}/wide-itemlist/images
Content-Type: multipart/form-data
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Request parameter]
Name | Type | Required | Description |
---|---|---|---|
image | File | O | Image |
[Example]
curl -X POST -H "Content-Type: multipart/form-data" -H "X-Secret-Key:{secretkey}" "https://api-alimtalk.cloud.toast.com/friendtalk/v2.3/appkeys/{appkey}/wide-itemlist/images" -F "image=@friend-ricecake02.jpeg"
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"image": {
"imageSeq": Integer,
"imageUrl": String,
"imageName": String
}
}
Name | Type | Descriptions |
---|---|---|
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 (used when sending a FriendTalk message) |
- imageUrl | String | Image URL |
- imageName | String | Image name (name of uploaded file) |
[URL]
POST /friendtalk/v2.3/appkeys/{appkey}/carousel/images
Content-Type: multipart/form-data
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Request parameter]
Name | Type | Required | Description |
---|---|---|---|
image | File | O | Image |
[Example]
curl -X POST -H "Content-Type: multipart/form-data" -H "X-Secret-Key:{secretkey}" "https://api-alimtalk.cloud.toast.com/friendtalk/v2.3/appkeys/{appkey}/carousel/images" -F "image=@friend-ricecake02.jpeg"
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"image": {
"imageSeq": Integer,
"imageUrl": String,
"imageName": String
}
}
Name | Type | Descriptions |
---|---|---|
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 (used when sending a FriendTalk message) |
- imageUrl | String | Image URL |
- imageName | String | Image name (name of uploaded file) |
[URL]
GET /friendtalk/v2.3/appkeys/{appkey}/images
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Query parameter]
Name | Type | Required | Description |
---|---|---|---|
imageTypes | String | X | - IMAGE: General image - WIDE_IMAGE: Wide image - WIDE_ITEMLIST_IMAGE: Wide item list image - CAROUSEL_IMAGE: Carousel image IMAGE, WIDE_IMAGE (default) |
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.3/appkeys/{appkey}/images?pageNum=1&pageSize=15"
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"imagesResponse": {
"images": [
{
"imageSeq": Integer,
"imageUrl": String,
"imageName": String,
"imageType": String,
"createUser": String
}
],
"totalCount": Integer
}
}
Name | Type | Descriptions |
---|---|---|
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 (used when sending a FriendTalk message) |
-- imageUrl | String | Image URL |
-- imageName | String | Image name (name of uploaded file) |
-- createUser | String | Creator |
-- imageType | String | - IMAGE: General image - WIDE_IMAGE: Wide image - WIDE_ITEMLIST_IMAGE: Wide item list image - CAROUSEL_IMAGE: Carousel image |
- totalCount | Integer | Total count |
[URL]
DELETE /friendtalk/v2.3/appkeys/{appkey}/images
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Query parameter]
Name | 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.3/appkeys/{appkey}/images?imageSeq=1,2,3"
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
}
}
Name | Type | Descriptions |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
[URL]
POST /friendtalk/v2.3/appkeys/{appkey}/senders/{senderKey}/biz-form
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
senderKey | String | Sender Key |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Request body]
{
"bizFormId": Integer
}
Name | Type | Required | Description |
---|---|---|---|
bizFormId | Integer | O | Business Form ID |
[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.3/appkeys/{appkey}/senders/{senderKey}/biz-form -d '{"bizFormId": 1}
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
},
"bizFormKey": String
}
Name | Type | Descriptions |
---|---|---|
header | Object | Header area |
- resultCode | Integer | Result code |
- resultMessage | String | Result message |
- isSuccessful | Boolean | Successful or not |
bizFormKey | String | Business form key |
[URL]
POST /friendtalk/v2.3/appkeys/{appkey}/failback/appkey
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Request body]
{
"resendAppKey": String
}
Name | Type | Required | Description |
---|---|---|---|
resendAppKey | String | O | SMS service appkey to set for alternative delivery |
[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.3/appkeys/{appkey}/failback/appkey -d '{"resendAppKey": "smsAppKey"}
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
}
}
[URL]
POST /friendtalk/v2.3/appkeys/{appkey}/failback
Content-Type: application/json;charset=UTF-8
[Path parameter]
Name | Type | Description |
---|---|---|
appkey | String | Unique appkey |
[Header]
{
"X-Secret-Key": String
}
Name | Type | Required | Descriptions |
---|---|---|---|
X-Secret-Key | String | O | It can be created in the console. |
[Request body]
{
"senderKey": String,
"isResend": Boolean,
"resendSendNo": String,
"resendUnsubscribeNo": String
}
Name | Type | Required | Description |
---|---|---|---|
senderKey | String | O | Sender Key |
isResend | Boolean | O | Whether to resend text, if delivery fails Resent by default, if alternative delivery is set on console. |
resendSendNo | String | O | Sender number for alternative delivery (up to 13 characters) (Alternative delivery may fail, if the sender number is not registered on the SMS service.) |
resendUnsubscribeNo | String | X | Alternative delivery 080 blocked number (If it is not the 080 blocked number registered in the SMS service, alternative delivery may fail.) |
[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.3/appkeys/{appkey}/failback/appkey -d '{"senderKey": "9e0afe2c12aaaaaaaaaa7520052880b555f1a60a","isResend": true,"resendSendNo": "01012341234", "resendUnsubscribeNo": "0801234567" }
{
"header": {
"resultCode": Integer,
"resultMessage": String,
"isSuccessful": boolean
}
}