- Print
- PDF
PUSH API
- Print
- PDF
Basic information
API URL
https://sens.apigw.ntruss.com/push/v2
API Header
Item | Mandatory | Description |
---|---|---|
Content-Type | Mandatory | Specify the request body content type as application/json (POST) |
x-ncp-apigw-timestamp | Mandatory | This is the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 (UTC). If the time difference compared to the API Gateway server is more than 5 minutes, the request is considered invalid |
x-ncp-iam-access-key | Mandatory | Access Key ID issued by the portal or Sub Account |
x-ncp-apigw-signature-v2 | Mandatory | Signature of the body in the above example encrypted with a SecretKey mapped to Access Key ID HmacSHA256 is used as the HMAC encryption algorithm |
Go to NAVER Cloud Platform authentication key and signature creation guide
The services for FCM (GCM) types will end on June 20, 2024. For more information on how to switch to FCMv1, see FCMv1 Transition Guide.
Device
Register device tokens
This registers a device token and binds it to a user.
Request URL
POST https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/users
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
Headers
Request Body
{
"userId":"string",
"country":"string",
"language":"string",
"timezone":"integer",
"channelName":"string",
"deviceType":"(GCM|FCMv1|APNS)",
"deviceToken":"string",
"isNotificationAgreement":"boolean",
"isAdAgreement":"boolean",
"isNightAdAgreement":"boolean"
}
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
userId | Mandatory | String | User ID | - ID to identify the user - Up to 128 characters |
country | Optional | String | Country code | - Device country setting (default: KR) - ISO-3166-1 alpha-2 - English uppercase only |
language | Optional | String | Language code | - Device language setting (default: ko) - ISO-639-1 - English lowercase only |
timezone | Optional | Integer | Time zone | - Number of seconds away from UTC (default: 32400) - Example: 28800 (UTC+8) |
channelName | Optional | String | Channel name to be registered | Enter the registered channel name to add to the channel |
deviceType | Mandatory | String | Device type | - FCMv1: Android - APNS: iOS - GCM: Android (deprecated 2024.6.19.) |
deviceToken | Mandatory | String | Device token | |
isNotificationAgreement | Mandatory | Boolean | Push notification message subscription status | When false, no message is received |
isAdAgreement | Mandatory | Boolean | Ad message subscription status | When false, no ad message is received (messageType: AD) |
isNightAdAgreement | Mandatory | Boolean | Night ad message subscription status | When false, no night ad message is received (messageType: AD) (Nighttime - 21:00 - 08:00) |
Response bodies
N/A
Response status
HTTP Status | Desc |
---|---|
201 | Created (successfully registered) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
View device tokens
Views the registered device/user.
Request URL
GET https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/users/{userId}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
userId | Mandatory | String | User ID | User ID bound when a device token is registered |
Headers
Request Body
N/A
Response bodies
{
"userId":"string",
"country":"string",
"language":"string",
"timezone":"integer",
"channelName":"string",
"notificationAgreement":"boolean",
"adAgreement":"boolean",
"nightAdAgreement":"boolean",
"notificationAgreementTime":"datetime",
"adAgreementTime":"datetime",
"nightAdAgreementTime":"datetime",
"createTime":"datetime",
"updateTime":"datetime",
"devices":[
{
"deviceType":"(GCM|FCMv1|APNS)",
"deviceToken":"string"
}
]
}
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
userId | Mandatory | String | User ID | |
country | Mandatory | String | Country code | - Device country setting (default: KR) - ISO-3166-1 alpha-2 - English uppercase only |
language | Mandatory | String | Language code | - Device language setting (default: ko) - ISO-639-1 - English lowercase only - zh-Hant / zh-Hans can be used exceptionally (case sensitive) |
timezone | Mandatory | Integer | Time zone | - Number of seconds away from UTC (default: 32400) - Example: 28800 (UTC+8) |
channelName | Optional | String | Name of the registered channel | |
notificationAgreement | Mandatory | Boolean | Push notification message subscription status | When false, no message is received |
adAgreement | Mandatory | Boolean | Ad message subscription status | When false, no ad message is received (messageType: AD) |
nightAdAgreement | Mandatory | Boolean | Night ad message subscription status | When false, no night ad message is received (messageType: AD) (Nighttime - 21:00 - 08:00) |
notificationAgreementTime | Mandatory | DateTime | Date and time when the user consented to receive push notification messages | The most recent date and time when the user consented to receive |
adAgreementTime | Mandatory | DateTime | Date and time when the user consented to receive ad messages | The most recent date and time when the user consented to receive |
nightAdAgreementTime | Mandatory | DateTime | Date and time when the user consented to receive night ad messages | The most recent date and time when the user consented to receive |
createTime | Mandatory | DateTime | Token registration time | |
updateTime | Mandatory | DateTime | Token edit time | |
devices.deviceType | Mandatory | String | Device type | - FCMv1: Android - APNS: iOS - GCM: Android (deprecated 2024.6.19.) |
devices.deviceToken | Mandatory | String | Device token |
Response status
HTTP Status | Desc |
---|---|
200 | OK (successfully searched) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Delete device tokens
This deletes all the devices bound to a user (userId). The user is also deleted.
Request URL
DELETE https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/users/{userId}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
userId | Mandatory | String | User ID | User ID bound when a device token is registered |
Headers
Request Body
N/A
Response bodies
N/A
Response status
HTTP Status | Desc |
---|---|
204 | No Content (successfully deleted) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Channel
Create channel
It creates a channel.
Request URL
POST https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/channels
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
channelName | Mandatory | String | Channel name | Name of the channel to be created |
Headers
Request Body
{
"channelName":"string",
"channelDesc":"string"
}
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
channelName | Mandatory | String | Channel name | Name of the channel to be created |
channelDesc | Optional | String | Channel description | Description of the channel to be created |
Response bodies
N/A
Response status
HTTP Status | Desc |
---|---|
201 | Created (successfully added) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
409 | Conflict (duplicate channel name) |
500 | Internal Server Error |
Edit channel
This edits the channel.
Request URL
PUT https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/channels
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
Headers
Request Body
[
{
"channelName":"string",
"channelDesc":"string"
}
]
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
channelName | Mandatory | String | Channel name | - Up to 1000 requests available at a time (list) - The description corresponding to the channel name is updated - Name of the channel to be edited |
channelDesc | Optional | String | Channel description | Description of the edited channel |
Response bodies
[
{
"channelName": "string",
"channelDesc": "string",
"createTime": "localDateTime",
"updateTime": "localDateTime"
}
]
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
channelName | Mandatory | String | Channel name | Name of the channel to be created |
channelDesc | Optional | String | Channel description | Description of the edited channel |
createTime | Mandatory | String | Created time | format: LocalDateTime |
updateTime | Optional | String | Edited time | format: LocalDateTime |
Response status
HTTP Status | Desc |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
429 | Too Many Request |
500 | Internal Server Error |
Search Channel
This searches channels.
Request URL
GET https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/channels
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
Parameters
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
channelName | Optional | String | Channel name | - Return search results of like - Name of the created channel |
pageSize | Optional | Integer | Page size | - default: 100 - Only numbers between 0 and 100 can be entered |
pageIndex | Optional | Integer | Page index | default: 0 |
Headers
Request Body
N/A
Response bodies
[
{
"channelName": "string",
"channelDesc": "string",
"createTime": "localDateTime",
"updateTime": "localDateTime"
}
]
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
channelName | Mandatory | String | Channel name | Name of the created channel |
channelDesc | Optional | String | Channel description | Description of the created channel |
createTime | Mandatory | String | Created time | format: LocalDateTime |
updateTime | Optional | String | Edited time | format: LocalDateTime |
Response status
HTTP Status | Desc |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
429 | Too Many Request |
500 | Internal Server Error |
Delete channel
The channel is deleted.
Request URL
DELETE https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/channels
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
Headers
Request Body
[
{
"channelName":"string"
}
]
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
channelName | Mandatory | String | Channel name | - Up to 1000 requests available at a time (list) - Channel name to be deleted |
Response bodies
N/A
Response status
HTTP Status | Desc |
---|---|
204 | No Content |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
429 | Too Many Request |
500 | Internal Server Error |
Add a user to the channel
This adds a user to the channel.
Request URL
POST https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/channels/{channelName}/users/{userId}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
channelName | Mandatory | String | Channel name | Name of the channel to add a user |
userId | Mandatory | String | User ID | User ID bound when a device token is registered |
Headers
Request Body
N/A
Response bodies
N/A
Response status
HTTP Status | Desc |
---|---|
201 | Created (successfully added) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Delete a user from the channel
This deletes a user from the channel.
Request URL
DELETE https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/channels/{channelName}/users/{userId}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
channelName | Mandatory | String | Channel name | Name of the channel to delete a user |
userId | Mandatory | String | User ID | User ID bound when a device token is registered |
Headers
Request Body
N/A
Response bodies
N/A
Response status
HTTP Status | Desc |
---|---|
204 | No Content (successfully deleted) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Messages
Send message
Sends a message.
Request URL
POST https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/messages
Content-Type: application/json; charset=utf-8
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
Headers
Request Body
{
"messageType": "(AD | NOTIF)",
"target": {
"type": "(ALL | CHANNEL | USER)",
"deviceType": "(GCM | FCMv1 | APNS)",
"to": [
"string",
"string"
],
"country": [
"string",
"string"
]
},
"message": {
"default": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
},
"option": {},
"i18n": {
"default": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
}
},
"[language]": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
}
}
}
},
"gcm": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
},
"option": {},
"i18n": {
"default": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
}
},
"[language]": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
}
}
}
},
"fcmv1": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
},
"option": {},
"i18n": {
"default": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
}
},
"[language]": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
}
}
}
},
"apns": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
},
"option": {},
"i18n": {
"default": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
}
},
"[language]": {
"content": "string",
"custom": {
"customKey1": "customValue1",
"customKey2": "customValue2"
}
}
}
}
},
"reserveTime": "yyyy-MM-dd HH:mm",
"reserveTimeZone": "string",
"scheduleCode": "string"
}
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
messageType | Optional | String | Message type | - NOTIF: notification message - AD: ad message - (default: NOTIF) |
target.type | Mandatory | String | Recipient type | - ALL: all devices registered to the service - CHANNEL: all devices registered to the channel - USER: all devices bound to the user |
target.deviceType | Optional | String | Recipient's device type | - FCMv1: Android - APNS: iOS - GCM: Android (deprecated 2024.6.19.) - If null, all devices |
target.to | Optional | Array of String | Recipient identifier | - ALL: no need to input - CHANNEL: channel name - USER: user ID - Up to 100 |
target.country | Optional | Array of String | Recipient country code | - Country code of receiving target device - ISO-3166-1 alpha-2 - Uppercase letters only |
message | Mandatory | Object | Common message to send | For the message size, see the following common message specification |
message.i18n | Optional | Object | Object for processing multilingual message by device language | For the message size, see the following multilingual message specifications |
reserveTime | Optional | String | Reserved date and time | Reserved date and time for message delivery (yyyy-MM-dd HH:mm) |
reserveTimeZone | Optional | String | Time zone of reserved date and time | - Time zone of reserved date and time (default: Asia/Seoul) - List of supported time zones - Use the TZ database name value |
scheduleCode | Optional | String | Schedule code | Schedule code to be registered |
- Both GCM/FCM are supported for sending Android device messages. NAVER Cloud Platform SENS uses GCM as the Type.
- If you specifies target.deviceType as GCM or FCMv1, a message will not be sent to all Android device, but only to the user with device tokens registered as the type.
- If the same device token is registered as both GCM and FCMv1, target.deviceType: ALL, or without specifying it, duplicate messages may be sent.
Common message
- The message item of the message delivery requestBody is the specifications for common messages.
- It can be divided into
message.default.XXX
,message.gcm.XXX
,message.fcmv1.XXX
, andmessage.apns.XXX
, and you must fill inmessage.default
as required. - If you create a default message only, the same message is sent to all push types; if you create gcm, fcmv1, and apns messages as well, you can separate messages for each push type.
- Apply priority: gcm = fcmv1 = apns > default
- If a message is composed in
message
as the following table the messages for each push type are created and sent.
Message subsection | Mandatory | Type | GCM/FCMv1 | APNS |
---|---|---|---|---|
content | Optional | String | data.content | alert or alert.body |
custom | Optional | Object | Designate as the date.KEY * FCMv1: customKey:customValue format = string:string | Designate as the KEY of the same level as aps |
option | Optional | Object | See the available options for each push type below | |
i18n | Optional | Object |
If you don't configure message.fcmv1 separately when sending a message, the message will be used as the following order: message.gcm > message.default. The section changed in FCMv1 can affect sending a message.
Multilingual message
- This is a specification for processing multilingual messages according to the language set in the device.
- It can be separated with
message.default.XXX
andmessage.[language].XXX
, and `language follows the ISO-639-1 standard and only lowercase letters are available. However, as an exception, zh-Hant and zh-Hans can be used to support Simplified/Traditional Chinese.- ISO-639-1
- Lowercase letters only
- zh-Hant, zh-Hans can be used (case sensitive)
language
is based on the language code set during device registration.- Applied priority is higher than message.content and message.custom.
i18n subsection | Mandatory | Type | GCM/FCMv1 | APNS |
---|---|---|---|---|
content | Mandatory | String | data.content | alert or alert.body |
custom | Optional | Object | Designate as the date.KEY * FCMv1: customKey:customValue format = string:string | Designate as the KEY of the same level as aps |
Available options for each push type
- Go to GCM (FCM)/FCMv1 message information guide
- collapse_key
- time_to_live
For FCMv1 types, the message information guide will be changed as follows:
- Delete delay_while_idle options
- Change the option name of time_to_live to ttl
- Go to APNS message information guide
- aps.badge
- aps.sound
- aps.content-available
- aps.alert.title
- aps.alert.action-loc-key
- ...
Response bodies
{
"requestId":"string",
"requestTime":"string",
"statusCode":"string",
"statusName":"string"
}
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
requestId | Mandatory | String | Request ID | |
requestTime | Mandatory | DateTime | Request time | |
statusCode | Mandatory | String | Request status code | See the following response code |
statusName | Mandatory | String | Request status name | - Success: success - reserved: being reserved - scheduled: being scheduled - Fail: failed |
Response status
HTTP Status | Desc |
---|---|
202 | Accepted (delivery request completed) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Search for message delivery result
Searches for the message delivery result.
Request URL
GET https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/messages/{requestId}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
requestId | Mandatory | String | Message request ID | Request identifier that is returned when sending the message |
Headers
Request Body
N/A
Response bodies
{
"requestId":"string",
"requestTime":"string",
"statusCode":"string",
"statusName":"string",
"messageStatusCode":"string",
"messageStatusName":"string",
"completeTime":"string",
"targetCount":"integer",
"sentCount":"integer",
"messageType":"string",
"target":{
...
},
"message":{
...
}
}
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
requestId | Mandatory | String | Request ID | |
requestTime | Mandatory | DateTime | Request time | |
statusCode | Mandatory | String | Request status code | - 202: success - Others: failed |
statusName | Mandatory | String | Request status name | - Success: success - Fail: failed |
messageStatusCode | Mandatory | String | Delivery status code | - 200: success - Others: failed |
messageStatusName | Mandatory | String | Name of the delivery status | - Success: success - Processing: being processed - Fail: failed |
completeTime | Mandatory | DateTime | Delivery completion time | |
targetCount | Mandatory | Integer | No. of requested devices | |
sentCount | Mandatory | Integer | No. of successfully delivered devices | |
messageType | Mandatory | String | Message type | - NOTIF: notification message - AD: ad message |
target | Mandatory | Object | Information of requested target | |
message | Mandatory | Object | Information of requested message |
Response status
HTTP Status | Desc |
---|---|
200 | OK (successfully searched) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Reserved message
View reserved message status
View the reservation status of message delivery.
GET https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/reservations/{reserveId}/reserve-status
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
reserveId | Mandatory | String | Reserved message ID | Message identifier that is returned when searching for the reserved delivery requests (requestId) |
Headers
Request Body
N/A
Response bodies
{
"reserveId": "string",
"reserveTimeZone": "string",
"reserveTime": "string",
"reserveStatus": "string"
}
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
reserveId | Mandatory | String | Reserved message ID | Message identifier that is returned when searching for the reserved delivery requests (requestId) |
reserveTime | Mandatory | String | Reserved date and time | Reserved date and time for message delivery (yyyy-MM-dd HH:mm) |
reserveTimeZone | Mandatory | String | Time zone of reserved date and time | - Time zone of reserved date and time (default: Asia/Seoul) - List of supported time zones - Use the TZ database name value |
reserveStatus | Mandatory | String | Reserved status | - READY: waiting to be sent - PROCESSING: requesting delivery - CANCELED: delivery canceled - FAIL: delivery request failed - DONE: successful delivery request - STALE: delivery request failed (timeout) |
Response status
HTTP Status | Desc |
---|---|
200 | OK (successfully searched) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Cancel reserved message
Cancel the reserved message delivery.
DELETE https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/reservations/{reserveId}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
reserveId | Mandatory | String | Reserved message ID | Message identifier that is returned when searching for the reserved delivery requests (requestId) |
Headers
Request Body
N/A
Response bodies
N/A
Response status
HTTP Status | Desc |
---|---|
204 | No Content (successfully deleted) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Scheduled message
Cancel scheduled message
Cancel the message delivery schedule.
DELETE https://sens.apigw.ntruss.com/push/v2/services/{serviceId}/schedules/{scheduleCode}/messages/{messageId}
x-ncp-apigw-timestamp: {Timestamp}
x-ncp-iam-access-key: {Sub Account Access Key}
x-ncp-apigw-signature-v2: {API Gateway Signature}
Path Variables
Item | Mandatory | Type | Description | Note |
---|---|---|---|---|
serviceId | Mandatory | String | Service ID | Service ID issued when registering the project |
scheduleCode | Mandatory | String | Schedule code | The code used for schedule registration |
messageId | Mandatory | String | Reserved message ID | Message identifier that is returned when searching for the scheduled delivery requests (requestId) |
Headers
Request Body
N/A
Response bodies
N/A
Response status
HTTP Status | Desc |
---|---|
204 | No Content (successfully deleted) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |