Skip to content
WJunction - Webmaster Forum

How can I receive OTP via API?

Hi, im very new to all of this, i might not be familiar with terminology.

I know the url to make an API call to get a phone number:
it goes something like this:
api.sms-man.com/control/get-number?token=$token&country_id=$country_id&application_id=$application_id

The response from it looks like so:

{
“request_id”: 123456789,
“number”: “79123456789”,
“country_id”: 1,
“application_id”: 123,
“status”: “success”
}
 

4 comments

I'm not familiar with this API, but it looks like api.sms-man.com/control/get-sms?token=$token&request_id=$request_id should work.
 
If you need to get SMS with OTP, it makes sense to use the api.sms-man.com/control/get-sms endpoint. The fastest way to get some code samples is to provide Gemini or ChatGPT with that endpoint URL and describe the existing code.
 
One thing I’d check is whether get-sms needs the phone number, request ID, or both. Usually the API docs will show which value links the OTP request to the number you purchased.
 
you pass the request_id you got from get-number to get-sms (with your token) and call it every 5s or so until the code shows up. if nothing comes after a few minutes cancel the number, most of these services refund unused ones iirc
 

About the author

M
New Member · Joined
1
Messages
0
Reactions
1
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom