📡 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
Mail API (Temp Mail)
For services requiring email verification like Vinted, Gmail
/api/mail/getActivation.php
Get a temp mail address
Parameter
| Parameter | Required | Description |
|---|---|---|
api_key |
Yes | Your API Key |
service |
Yes | Service code (e.g. kc = Vinted) |
provider |
No | Mail channel: omit / smsbower = BO mailbox (service = service code, e.g. kc); gmail500 = G5 mailbox (service = product code, e.g. 6074 = Vinted) |
domain |
Yes | Mail domain (e.g. gmail.com) |
maxPrice |
No | Max accepted price (e.g. 0.05) |
G5 mailbox (provider=gmail500) common product codes: Vinted=6074 / TikTok=1001 / Instagram=1002 / Apple=1003 / PayPal=1004 / Facebook=1005 / X=1006 / Amazon=1007 / LinkedIn=1009 / Telegram=1011 / Airbnb=1021. Only products with a price configured in the admin panel are usable. G5 does not support cancellation or refund.
Response
"status": 1,
"mail": "xxx@gmail.com",
"mailId": "12345678",
"provider": "smsbower",
"cancellable": true,
"expires_at": 1790000000
}
/api/mail/getCode.php
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"
}
/api/mail/setStatus.php
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) |
G5 mailbox (provider=gmail500) does not support cancellation or refund: calling status=2 returns {"status":0,"no_refund":true}; the mailbox simply expires at end of lifetime. BO mailbox (smsbower) still supports cancel + refund.
🚀 Gmail 接码完整示例 / Gmail receiving example
SMS API (Phone Verification)
For services requiring phone verification like Telegram, WhatsApp
/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) |
/stubs/handler_api.php?action=getStatus
Get SMS code status
STATUS_WAIT_CODE
STATUS_CANCEL
Common Service Codes
kc
tg
wa
fb
gg
vi
ig
tw
em
am