Contacts Management
Omdaa API provides an interface for managing WhatsApp contacts. You can get a list of contacts, verify numbers, and get detailed information about contacts.
Get All Contacts
To get a list of all contacts from a specific session:
"function">curl "keyword">-X GET "https://omdaa.com/api/v1/contacts?sessionId=my class="keyword">-instance" \
"keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN"Check WhatsApp Number
To verify if a number exists on WhatsApp and get information about it:
"function">curl "keyword">-X POST https://omdaa.com/api/v1/contacts/check \
"keyword">-H "Authorization: Bearer YOUR_JWT_TOKEN" \
"keyword">-H "Content"keyword">-Type: application/json" \
"keyword">-d '{
"sessionId": "my"keyword">-instance",
"numbers": ["966501234567"]
}'Response
{
"success": true,
"data": [
{
"number": "966501234567",
"exists": true,
"jid": "966501234567@s.whatsapp.net",
"name": "Contact Name",
"isBusiness": false
}
]
}💡 Note
When verifying numbers, make sure to use the correct format: number without special characters (e.g., 966501234567not +966 50 123 4567).