Message sending result (WebHook)
The result of GMS is delivered to the customer's callback URL.
WebHook API (v1) is scheduled to be deprecated after December 31, 2023. It is recommended to use WebHook API (v2).
Access to the client's callback URL via CJ API GATEWAY needs to be allowed. (IP, PORT)
WebHook API (v2)
The processing results for the messages requested by the client will be delivered to the client's callback URL. (API PLEX Gateway -> Client URL)
API (v2) for delivering GMS message results to the client.
POST
{Callback URL}
Headers
Content-Type*
string
application/json;charset=utf-8
Webhook body (API PLEX ➡ Client URL)
results
object array
Y
An array for the transmission results (although it's in array format, it is sent one record at a time)
to
string
Y
Recipient number
messageId
string
Y
Message unique key
sentAt
string
Y
Transmission time (yyyy-MM-dd'T'HH:mm:ss.SSSZ)
doneAt
string
Y
Final processing time (yyyy-MM-dd'T'HH:mm:ss.SSSZ)
smsCount
number
Y
The number of parts the message content was split into
mccMnc
string
N
mcc
string
N
Mobile Country Code (MCC)
mnc
string
N
Mobile Network Code (MNC)
billing
boolean
Y
Billing status (not charged if null or not present)
echo_to_webhook
string
Y
A string to be received along with the webhook when the user requests it
status
object
Y
error
object
N
Detailed status
id
number
Y
groupId
number
N
groupName
string
N
description
string
Y
Status message
Detailed error
id
number
N
groupId
number
N
groupName
string
N
error group name
description
string
N
error message
permanent
boolean
N
Permanence status (true or false)
Message Split Rules
The table below is an example. The splitting criteria may varies depending on the mobile carriers.
To specify the exact number of splits, please refer to smsCount in the webhook body.
GSM
1
160
GSM
2
306
GSM
3
459
GSM
4
612
GSM
5
765
UNICODE
1
70
UNICODE
2
134
UNICODE
3
201
UNICODE
4
268
UNICODE
5
335
Response body (Client URL ➡ API PLEX)
code
string
Y
Webhook reception result code (set to "100" in the response when successfully received) The response will consistently include the code "100" upon successful webhook reception
desc
string
Y
Detailed result of webhook reception (e.g., "desc": "success")
Last updated