Skip to main content
POST
/
api
/
ext
/
generic
/
sms
/
phone-mobile-syntax-validator
Validate mobile phone number syntax
curl --request POST \
  --url https://app.spotzee.com/api/ext/generic/sms/phone-mobile-syntax-validator \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'phone=+1-555-123-4567'
{
  "status": "success",
  "data": {
    "isValid": true,
    "phoneNumber": "+15551234567",
    "countryIso2": "US",
    "countryIso3": "USA",
    "countryCode": "+1"
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Use format: Bearer YOUR_API_KEY

Body

application/x-www-form-urlencoded
phone
string
required

Phone number to validate. Can include country code and formatting characters.

Pattern: ^[\+]?[0-9\s\-\(\)]+$
Example:

"+1-555-123-4567"

Response

Successfully validated phone number

status
string
required
Example:

"success"

data
object
required
Example:
{
  "isValid": true,
  "phoneNumber": "+15551234567",
  "countryIso2": "US",
  "countryIso3": "USA",
  "countryCode": "+1"
}