Use the following URL to generate and send a PIN to your user:.
/v1/request
Key | Example | Description | Required |
---|---|---|---|
access-token | ABCDEFG12345 | You can find your API key in your account | Required |
number | 09xxxxxxx | The mobile phone number to verify. | Required |
brand_name | ABCD Company | To identify your company or application name in the SMS body. | Required |
code_length | 4 | The length of the verification code. The default code length is 4. | |
ttl | 300 | Lifetime of the verification code in seconds. The valid minimal value 60 and maximum is 3,600 seconds. | |
sender_name | ABCD | Use this field to specify the sender name for your message. This must be at least 3 characters in length but no longer than 11 alphanumeric characters or 13 numeric characters. Note: SenderID is subjected to approval. | |
template | {brand_name} အတွက် သင်၏အတည်ပြုရန်ကုဒ်နံပါတ်မှာ {code} ဖြစ်ပါတယ် | Use This field to customize your message template. {brand_name} = The brand name, {code} = OTP Code |
https://verify.smspoh.com/api/v1/request?access-token=ABCDEFG12345&number=09xxxxxxx&brand_name=ABCD+Company&code_length=4&sender_name=ABCD&template={brand_name}
အတွက် အတည်ပြုရန်ကုဒ်နံပါတ်မှာ {code} ဖြစ်ပါတယ်
{ "status": true, "request_id": 123456, "number": "09xxxxxxx" }
status | boolean |
---|---|
request_id | integer | The unique ID to verify request.
|
number | string The mobile phone number to verify.
|