Sms Confirmation Api

Views: 155 - Publication Date: 2024-02-17 03:43:19
Sms Confirmation Api
VIEW CATEGORIES
 

Request Url Address: https://smsvar.com/api/getCategories

Sample Output: [{"id":1, "name": "Google"},{"id":2, "name": "Discord"}]

 

 
VIEW SERVICES IN CATEGORY
 
Request Url Address: https://smsvar.com/api/getServices/category_id

Sample Output: [{"id":"12","name":"Afganistan","category":"1"},{"id":"11","name":"Almanya","category":"1"}]

 

 

Note: You can find the category_id value in the list of categories.

 

VIEW SERVICE PRICE AND NUMBER OF STOCKS
 
Request Url Address: https://smsvar.com/api/getServiceDetails/service_id

Sample Output: {"id":"32","price":"2","stock":180}

 

 

Note: You can find the service_id value in the list of services.

 

 

 
LEARNING USER BALANCE
 
Request Url Address : https://smsvar.com/api/api_key/getBalance

 

Sample Output: {balance: 1}

 

ORDERING A NUMBER
 
Request Url Address : https://smsvar.com/api/api_key/getNumber/service_id

 

 

Sample Outputı: {"success":true,"title":"","message":"","number_id":75,"number":"+77073076157"}

 

Keep the number and number_id values in the output somewhere, you will need them when reading the messages.

 

Note: You can find the service_id value in the list of services.
 
SEE INCOMING MESSAGE TO NUMBER
 
Request Url Address

: https://smsvar.com/api/api_key/getMessage/number_id

 

 

Sample Output: {"code":null,"id":"75","status":0}

 

Status = 1 ise: Message received showing code.

Status = 0 ise: Message awaited.

Status = -1 ise: The number's been canceled.

 

Note: You can find the number_id value in the output when you order a number.
 
CANCEL NUMBER
 

Request Url Address: https://smsvar.com/api/api_key/cancelNumber/number_id

 

 

Sample Output:{"success":true, "title":"", "message":""}

 

If the number is canceled within 10 minutes, the balance will be refunded.

 

Note: You can find the number_id value in the output when you order a number.