API PLEX Developer Guide
ServiceBlog
English
English
  • API PLEX Developer's Guide
  • Release Note
    • Release Note
  • Service
    • Biz Message
      • SMS
      • LMS
      • MMS
      • MMS Image Upload
      • Message sending result (WebHook)
    • Kakao Message
      • Alim Talk
      • Friend Talk
      • Image Upload API
      • Failback
      • Message sending result (WebHook)
    • Global Message
      • GMS
        • GMS (v2)
        • Message sending result (WebHook)
        • Code References
          • Message status code
          • Service error code
Powered by GitBook
On this page
  • MMS API
  • Path variable
  • MMS Sending API
  • Request Body Example
  • Response Body
  1. Service
  2. Biz Message

MMS

Messaging API that allows sending long text messages with 1,000 characters (2,000 bytes) in Korean, including images(JPG)

Last updated 1 year ago

MMS API

To use the service, you need to register the sender number in [Service Console / Sender Number].

To include an image in MMS, it is essential to use beforehand

The API can deliver message sending results through a .

Character encoding is based on UTF-8 by default.

Since text messages are processed in euc-kr, characters beyond the euc-kr representation range are not supported.

The secret key (secret_key) can be obtained by adding a sub-account in [Service Console / Sub Account] and clicking the [Detailed Inquiry] button.

Path variable

Please refer to the following information to ensure that path variables (enclosed in curly braces {}) within each URI are not omitted when making calls.

code
description

service_id

service id

  • mms-standard : standard MMS

  • mms-bulk : bulk MMS

  • mms-finance : finance MMS

MMS Sending API

POST https://mr70wq2tj4.apigw.ntruss.com/{service_id}/v2/send

Headers

Name
Type
Description

Authorization*

string

userID;secret_key

Content-Type*

string

application/json;charset=utf-8

Request Body

Name
Type
Description

msg_data*

object array

Detailed data of messages (up to 10 records)

msg_key

string

Unique key for the message managed by the user (automatically assigned if null or blank)

sub_id

string

service sub account

title

string

LMS message title (After converting the character set to euc-kr, it will be marked as a failure if it exceeds 50 bytes)

sender_number*

string

Sender's phone number (registered sender number)

receiver_number*

string

Recipient's mobile phone number

origin_cid

string

Initial sender's business code (Enter a 9-digit business code for special types of value-added communication service providers) (Up to 10 bytes)

msg*

string

Transmitted message (After converting the character set to euc-kr, it will be marked as a failure if it exceeds 2000 bytes)

echo_to_webhook

string

The string to be received along with the webhook from API PLEX by the user (up to 256 bytes)

file_path*

object array

List of image paths (up to 3)

Request Body Example

{
    "msg_data": [
        {
            "msg_key": "user_key_1",
            "sub_id": "sub_id_1",
            "title": "MMS test 1",
            "sender_number": "010xxxxxxxx",
            "receiver_number": "010xxxxxxxx",
            "msg": "MMS test 1입니다.",
            "file_path": [
                 "https://api-plex-upload-test/image/mms/userid/mms_sample1.jpg",
                 "https://api-plex-upload-test/image/mms/userid/mms_sample2.jpg",
                 "https://api-plex-upload-test/image/mms/userid/mms_sample3.jpg"
            ]
        },
        {
            "title": "MMS test 2",
            "sub_id": "sub_id_1",
            "sender_number": "010xxxxxxxx",
            "receiver_number": "010xxxxxxxx",
            "origin_cid": "0123456789",
            "msg": "MMS test 2입니다.",
            "echo_to_webhook": "echo test",
            "file_path": [
                 "https://api-plex-upload-test/image/mms/userid/mms_sample4.jpg",
                 "https://api-plex-upload-test/image/mms/userid/mms_sample5.jpg",
                 "https://api-plex-upload-test/image/mms/userid/mms_sample6.jpg"
            ]
        }
    ]
}

Response Body

Even if the response HTTP status returns as 200, it does not necessarily mean the successful acceptance of all requests. (You can check the acceptance status of each transmission by the response code field.)

Key
Type
Description

results

object array

Received message data

code

string

desc

string

Detailed acceptance result code

msg_key

string

Unique key for the message

Success

{
    "results": [
        {
            "code": "C100",
            "desc": "success",
            "msg_key": "user_key_1"
        },
        {
            "code": "C100",
            "desc": "success",
            "msg_key": "fc73428c-5319-4944-9202-97e5c718cd8c"
        }
    ]
}

Invalid request or error

{
    "code": "C401_1",
    "name": "authorization fail - authorization field error",
    "description": "there is no authorization key or value in http header"
}

Invalid request within the list

{
    "results": [
        {
            "code": "G140",
            "desc": "발신번호 예외",
            "msg_key": "user_key_1"
        },
        {
            "code": "G141",
            "desc": "수신번호 예외",
            "msg_key": "fc73428c-5319-4944-9202-97e5c718cd8c"
        }
    ]
}

API PLEX Response Code

code
HTTP status
content
description

C100

200

Success

C400_1

400

Invalid data type

Refer to the description in the response body

C400_2

400

Invalid request parameter

Refer to the description in the response body

C400_3

400

Missing required parameters

Refer to the description in the response body

C401_1

401

Missing the authorization key in the header

C401_2

401

Error in the authorization value in the header

Unable to separate values with ';'.

C401_3

401

Invalid authorization value in the header

Unable to find valid authorization information

C404_1

404

Unable to find the data

Refer to the description in the response body

C500_1

500

Internal server error

Refer to the description in the response body

G110

200

API UNIQUE ID exception (Invalid URL)

G140

200

Sender number exception

G141

200

Recipient number exception

G142

200

Invalid echo_to_webhook value

Exceed 256 byte or type error

G150

200

Insufficient credit

G160

200

Exceeded the maximum number of transmissions per session

Acceptance result code (Refer to )

the image upload API
WebHook
API PLEX response codes