Get Previous Device Name
View all WhatsApp Number Validation & Profile Lookup endpoints →Fetch the available previous-device name (wa_old_device_name). Two-step flow: call Check WhatsApp Account Exists first; only call this when hasExtra lists "waOldDeviceName". Pass the returned userHash here — the number is resolved server-side. Invalid/expired userHash is rejected. When the field is absent, waOldDeviceName is null and message explains why.
API Features
Previous-device name Returns wa_old_device_name when the account carries re-auth metadata
Gateway-validated userHash A valid, unexpired userHash is required for this lookup
Cache-aware The response includes a cached flag and age when a cached value is returned
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
GET
/api/project/whatsapp/get-wa-old-device-name API Response (JSON)
{} curl -X GET 'https://api.opendata-api.com/api/project/whatsapp/get-wa-old-device-name?key=<API_KEY>&userHash=<userHash>'
curl -X GET 'https://api.opendata-api.com/api/project/whatsapp/get-wa-old-device-name?key=<API_KEY>&userHash=<userHash>'
Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Anti-fraud signal enrichment from device-migration metadata
- Account-history context for risk scoring
- Sparse enrichment after hasExtra advertises waOldDeviceName