The blocked users REST API lets you block and unblock WhatsApp contacts programmatically and retrieve your current block list. Blocks are applied on Meta’s platform and mirrored locally in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/rahul-baberwal/django-meta-whatsapp/llms.txt
Use this file to discover all available pages before exploring further.
WhatsAppBlockedUser model for fast filtering in the inbox UI. All three endpoints use the first active WhatsAppAccount (selected via WhatsAppAccount.objects.filter(is_active=True).first()) and require the X-API-Key header — see Authentication.
POST /whatsapp/api/block/
Block a WhatsApp contact. The block is applied on Meta’s platform via theblock_users() utility and the result is returned directly.
Request Body
Phone number of the contact to block, including the country code. Example:
"+919876543210".Example
Success Response
failed_users with an error detail rather than added_users. Check meta_response.block_users.failed_users even on a 200 response.
DELETE /whatsapp/api/unblock/
Unblock a WhatsApp contact. The unblock is applied on Meta via theunblock_users() utility and the result is returned directly. The local WhatsAppBlockedUser record (if present) is not automatically updated by this endpoint — use the dashboard sync or sync_blocked_users_from_meta() to reconcile local state.
Request Body
Phone number of the contact to unblock, including the country code with a leading
+.Example
Success Response
GET /whatsapp/api/blocked/
List all currently active blocked users for the first activeWhatsAppAccount. Only records where is_active=True are returned — unblocked contacts (historical records with is_active=False) are excluded.
Example
Success Response
Response Fields
List of all active
WhatsAppBlockedUser objects for the account (where is_active=True).