Integrate your platform with GlobalConnect to obtain virtual phone numbers and receive SMS verification codes in real time.
https://lucky-sms.com/SMSBOWER
The endpoint is also accessible at /api/partner. It accepts both GET and POST requests.
For POST, send a application/json; charset=utf-8 body.
For GET, pass all parameters as query-string fields.
Every request must include the key field containing your Partner API key.
Keys are issued and managed through the admin panel.
{
"action": "...",
"key": "your_api_key_here"
}
If the key is missing or invalid the server returns HTTP 401:
{"status":"ERROR","message":"Invalid key"}
Returns the list of available countries, operators, and services together with the number of phone numbers available for each service.
{
"action": "GET_SERVICES",
"key": "your_api_key"
}
{
"status": "SUCCESS",
"countryList": [
{
"country": "england",
"operatorMap": {
"Hutchison 3G UK Ltd": {
"tg": 4,
"google": 2
}
}
}
]
}
The numbers in operatorMap represent how many phone numbers are currently available for that service code.
Requests a phone number for a specific service. The number is reserved for your activation session and remains valid for 60 minutes.
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Must be GET_NUMBER |
key | string | Yes | Your API key |
country | string | Yes | Country code, e.g. england |
operator | string | Yes | Operator name, e.g. Hutchison 3G UK Ltd |
service | string | Yes | Service ID, e.g. tg |
sum | string | No | Price hint (informational only) |
exceptionPhoneSet | array of strings | No | Phone numbers to exclude from the result (without leading +) |
POST https://lucky-sms.com/SMSBOWER
Content-Type: application/json; charset=utf-8
{
"action": "GET_NUMBER",
"key": "your_api_key",
"country": "england",
"operator": "Hutchison 3G UK Ltd",
"service": "tg",
"sum": "20.00",
"exceptionPhoneSet": ["447472190082", "447472190099"]
}
{
"number": "447472190082",
"activationId": 36532,
"status": "SUCCESS",
"call": 0,
"voice": 0
}
number – phone number without leading +activationId – ulong; use this in subsequent FINISH_ACTIVATION and GETSMS calls{"status":"NO_NUMBERS"}
Sent from your server to this server to close an activation session and report the outcome.
| Field | Type | Required | Description |
|---|---|---|---|
action | string | Yes | Must be FINISH_ACTIVATION |
key | string | Yes | Your API key |
activationId | ulong | Yes | The ID returned by GET_NUMBER |
status | integer | Yes | Activation outcome (see table below) |
POST https://lucky-sms.com/SMSBOWER
Content-Type: application/json; charset=utf-8
{
"action": "FINISH_ACTIVATION",
"key": "your_api_key",
"activationId": 36532,
"status": 3
}
{"status":"SUCCESS"}
When a Push URL is configured for your API key, this server will POST every incoming SMS to that URL as application/json; charset=utf-8 immediately after receiving it.
If your server returns a response with "status": "SUCCESS", the message is marked as delivered and no further attempts are made.
If any other response (or a network error) is received, the server will retry every 10 seconds. Retries stop as soon as one of the following conditions is met:
"status": "SUCCESS".1, 3, 4, or 5).While the activation remains pending (no FINISH_ACTIVATION received), PUSH_SMS continues to retry regardless of how many attempts have been made.
| Field | Type | Description |
|---|---|---|
key | string | The partner API key (for verification) |
action | string | Always PUSH_SMS |
smsId | string | Unique SMS record identifier |
phone | string | Destination phone number (without +) that received the SMS |
phoneFrom | string | Sender identifier (number or short code) |
text | string | SMS message text |
call | integer (0/1) | Voice call flag (currently always 0) |
voice | integer (0/1) | Voice message flag (currently always 0) |
POST https://your-server.com/agent/api/sms
Content-Type: application/json; charset=utf-8
{
"key": "your_api_key",
"action": "PUSH_SMS",
"smsId": "36532",
"phone": "447472190082",
"phoneFrom": "Microsoft",
"text": "Microsoft access code: 5015",
"call": 0,
"voice": 0
}
{"status":"SUCCESS"}
If no Push URL is configured for your key, you can manually poll for incoming SMS messages using this endpoint.
GET https://lucky-sms.com/SMSBOWER/getsms/?apiKey={apiKey}&id={activationId}
| Parameter | Type | Description |
|---|---|---|
apiKey | string | Your API key |
id | ulong | The activationId returned by GET_NUMBER |
SMS available:
{
"status": "SUCCESS",
"messages": [
{
"smsId": "abc123",
"phone": "447472190082",
"phoneFrom": "Microsoft",
"text": "Microsoft access code: 5015",
"receivedAt": "2024-01-15T12:34:56+00:00"
}
]
}
No SMS yet:
{"status":"WAIT_CODE"}
Activation expired:
{"status":"EXPIRED"}
Use these status codes in the FINISH_ACTIVATION request:
| Code | Name | Description |
|---|---|---|
| 1 | Prohibited | Issuing a number for this service is prohibited. |
| 3 | Success | Activation was completed successfully. The SMS code was received and used. |
| 4 | Canceled | Activation was canceled by the partner. Note: if a phone number is canceled 5 or more times for the same service, it will not be issued again for that service. |
| 5 | Returned | Activation has been returned (e.g. the number was not needed). |
| HTTP | status | Cause |
|---|---|---|
| 400 | ERROR | Invalid JSON, missing required field, or unknown action. |
| 401 | ERROR | Missing or invalid API key. |
| 403 | ERROR | Service not allowed for the given API key. |
| 404 | ERROR | Activation not found or does not belong to this key. |
| 200 | NO_NUMBERS | No phone numbers are currently available for the requested service. |