Available in Classic and VPC
This sends SMS/LMS/MMS messages.
Request
This section describes the request format. The method and URI are as follows:
| Method | URI |
|---|---|
| POST | /sms/v2/services/{serviceId}/messages |
Request headers
For information about the headers common to all Simple & Easy Notification Service APIs, see Simple & Easy Notification Service request headers.
Request path parameters
You can use the following path parameters with your request:
| Field | Type | Required | Description |
|---|---|---|---|
serviceId |
String | Required | SMS service ID
|
Request body
You can include the following data in the body of your request:
| Field | Type | Required | Description |
|---|---|---|---|
type |
String | Required | Message type
|
contentType |
String | Optional | Message content type
|
countryCode |
String | Optional | Country code
|
from |
String | Required | Caller ID
|
subject |
String | Optional | Default message subject (byte)
|
content |
String | Required | Content of default message (byte)
|
messages |
Array | Required | Message information
|
files |
Array | Optional | Attachment list
|
reserveTime |
String | Optional | Reserved date and time
|
reserveTimeZone |
String | Optional | Reserved time zone
|
- If the maximum supported size is exceeded, some content will be truncated and sent.
- Message subject and content encoding is based on EUC-KR and sending fails if unsupported emoji characters are included.
- The
subjectandcontentwithinmessageshave higher priority than the defaultsubjectandcontent. - If it is an MMS type but has no attachments, it will be sent as an LMS.
messages
The following describes messages.
| Field | Type | Required | Description |
|---|---|---|---|
to |
String | Required | Recipient number
|
subject |
String | Optional | Individual message subject (byte)
|
content |
String | Optional | Individual message content (byte)
|
files
The following describes files.
| Field | Type | Required | Description |
|---|---|---|---|
fileId |
String | Required | Attachment ID
|
Request example
The request example is as follows:
curl --location --request POST 'https://sens.apigw.ntruss.com/sms/v2/services/ncp:sms:kr:50*********1:sens/messages' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--data '{
"type": "MMS",
"contentType": "COMM",
"countryCode": "82",
"from": "010********",
"subject": "Delivery Notification",
"content": "Hello. This is for notifying your delivery status.",
"messages": [
{
"to": "010********",
"subject": "Delivery Noti",
"content": "Hello, ******. This is for notifying your delivery status."
}
],
"files": [
{
"fileId": "a136************************74f7"
}
],
"reserveTime": "2025-11-25 09:50",
"reserveTimeZone": "Asia/Seoul"
}'
Response
This section describes the response format.
Response body
The response body includes the following data:
| Field | Type | Required | Description |
|---|---|---|---|
requestId |
String | Required | Request ID |
requestTime |
String | Required | Request date and time
|
statusCode |
String | Required | Status code
|
statusName |
String | Required | Status
|
Response status codes
For information about the HTTP status codes common to all Simple & Easy Notification Service APIs, see Simple & Easy Notification Service response status codes.
Response example
The response example is as follows:
{
"requestId": "RSLA-*************-****-********-IZJQgZEc",
"requestTime": "2025-11-25T09:39:40.535",
"statusCode": "202",
"statusName": "success"
}