📡 API Docs

Full GreenSMS API reference, supporting both SMS and mail verification

Authentication

All API requests must carry your api_key in the URL parameters

GET https://www.greensms.net/api/mail/getActivation?api_key=YOUR_API_KEY&service=kc&domain=gmail.com
After login you can get your API Key in Profile
📧

Mail API (Temp Mail)

For services requiring email verification like Vinted, Gmail

GET /api/mail/getActivation

Get a temp mail address

Parameter

Parameter Required Description
api_key Yes Your API Key
service Yes Service code (e.g. kc = Vinted)
domain Yes Mail domain (e.g. gmail.com)
maxPrice No Max accepted price (e.g. 0.05)

Response

{
  "status": 1,
  "mail": "xxx@gmail.com",
  "mailId": 12345678
}
GET /api/mail/getCode

Get the code received by the temp mail

Parameter

Parameter Required Description
api_key Yes Your API Key
mailId Yes Mail ID (returned by getActivation)

Response

{
  "status": 1,
  "code": "123456"
}
GET /api/mail/setStatus

Modify mail activation status (cancel/complete)

Status Code

Status Code Description
2 Cancel activation (no longer need this mail)
3 Complete (code received successfully)
5 Waiting for next mail (resend)
📱

SMS API (Phone Verification)

For services requiring phone verification like Telegram, WhatsApp

GET /stubs/handler_api.php?action=getNumber

Get a phone number to receive SMS codes

Parameter

Parameter Description
service Service code (e.g. tg = Telegram, kc = Vinted)
country Country code (e.g. 0 = Russia, 6 = Indonesia)
GET /stubs/handler_api.php?action=getStatus

Get SMS code status

STATUS_OK:123456
STATUS_WAIT_CODE
STATUS_CANCEL

Common Service Codes

🛍️
Vinted
kc
✈️
Telegram
tg
💬
WhatsApp
wa
📘
Facebook
fb
🔍
Google
gg
📞
Viber
vi
📷
Instagram
ig
🐦
Twitter
tw
📧
Email
em
📦
Amazon
am