Send Zalo message Consulting in text form

HTTP request

POST https://rest.esms.vn/MainService.svc/json/SendZaloFollowerMessage_V4_post_json/

  • Content Type: application/json

  • Response Type: application/json

curl --location 'http://rest.esms.vn/mainservice.svc/json/SendZaloFollowerMessage_V4_post_json/' \
--header 'Content-Type: application/json' \
--header 'Cookie: ASP.NET_SessionId=5xcbl12ska5q5wocug3chmjz; ASP.NET_SessionId=wauhgrxpkq40wj00w52orug3' \
--data '{
 "ApiKey":"{{ApiKey}}",
 "SecretKey":"{{SecretKey}}",
 "OAID":"{{OAID}}",
 "User_id":"{{User_id}}",
 "Content":"{{Content}}",
  "CallbackUrl": "{{CallbackUrl}}"

}'

  • Body request

Parameter
Type
Required
Description

ApiKey

string

Your API Key.

SecretKey

string

Your Secret Key.

OAID

string

Zalo OA Id is the Zalo Official Account Id of the organization. It can be obtained by accessing to the Zalo administrator page.

Note: Pre-registration is required.

User_id

string

The identification value of user at Zalo.

Content

string

The message content. Text content to send to users Maximum limit is 2,000 characters

CallbackUrl

string

The webhook URL that will receive the status of message after it processed to the operator. It is used for determine whether the SMS is succcessfully delivered to the receiver or failed. See the sample request at here. More details at here.


  • Response:

{
    "CodeResult": "100",
    "CountRegenerate": 0,
    "SMSID": "d8e0f1f0702544b2acb456ca9ccfd111250"
}

Valid request.

  • Response body

Parameter
Type
Description

CodeResult

string

Response code.

SMSID

string

The message id eSMS system.

ErrorMessage

string

The error message if the request is invalid.

Last updated