Phone Verification (OTP)

Validate phone number (EnvoiSMS Lookup Engine)

Validates phone number format, carrier, and location using the operator database.

post/verify/lookup

Request

  • Base URL: https://api.envoisms.ma/v1
  • URL: https://api.envoisms.ma/v1/verify/lookup
  • Auth: HTTP bearer

Request body

numberstring required

Phone number to validate (E.164 or local format)

country_codestring

Optional ISO 2-letter country code

Example request

{
  "number": "+212612345678",
  "country_code": "MA"
}

Response

Phone validation information

validboolean
numberstring
local_formatstring
international_formatstring
country_prefixstring
country_codestring
country_namestring
locationstring
carrierstring
line_typestring

Changes

No recorded changes to this operation across all 1 revision of this API.