Number validation and lookup API (EnvoiSMS Lookup)

Number validation and lookup API (EnvoiSMS Lookup)

Our number validation API (EnvoiSMS Lookup) allows you to clean your contact database and validate numbers before sending.

Endpoint```

POST /v1/verify/lookup


* `number` (required): The telephone number to validate.
* `country_code` (optional): 2-letter ISO country code (e.g. "MA" for Morocco).

Example query:```json
{
  "number": "+212612345678",
  "country_code": "MA"
}

The API returns complete information about the number:

  • valid: Indicates whether the number is valid or not.
  • carrier: The network operator (e.g. Maroc Telecom, Orange, Inwi).
  • location: The region or geographic location.
  • line_type: Line type (e.g. mobile, landline).
  • international_format: The standardized number in E.164 format.
Was this article helpful?