π¬Programmatic SMS API
If you would like to use our programmatic SMS API, do note that set-up with Nomsa team will need to be done. Please contact us here .
1. How to send demo SMS via our API
If you want to test sending demo SMS via our API please follow instruction below.
1. Visit Nomsa.gov.kh here and register with your .gov.kh mail 2. Create your API Key: visit this for more information Generate your API Key
It's almost done, now you can send demo SMS via by using our demo credential below
Demo credential Label: nomsa-sms-demo
curl --location --request POST 'https://api.nomsa.gov.kh/v1/transactional/sms/send' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{apikey}}
--data '{
"body": "Demo OTP: 1234",
"recipient": "+8559123511",
"label": "nomsa-sms-demo"
}'Response
{
"id": "145",
"credentialsLabel": "nomsa-sms-demo",
"recipient": "855961234567",
"body": "Demo OTP: 1234",
"message_id": "NOMSA-TEST@IwSs5KCQMNBUQNEnh-93CptNyqBBOm",
"created_at": "2024-01-18T07:26:55.989Z",
"updated_at": "2024-01-18T07:26:56.775Z",
"status": "UNSENT",
"error_code": null,
"accepted_at": "2024-01-18T07:26:56.774Z",
"sent_at": null,
"delivered_at": null,
"errored_at": null,
"remainingMessage": "You have SMS demo 9 left"
}Rate Limit
If you have sent out 10 message you will reach out rate limit.
We allow only 10 message for each user to testing demo SMS via API on our UAT environment if you want to send SMS via API and setup your own credential please reach out to us to set up Nomsa SMS credential.
2. How to send SMS
Response
3. GET SMS by ID
Response
4. List all SMS
Response
Last updated