API Reference
Business profile and blocking

Block users

POST/{phone-number-id}/block_users
Base URL: https://whatsapp.mimicr.dev/v24.0 · provider: https://graph.facebook.com/v24.0

Blocks users so they cannot message the business. Only users who messaged the business in the last 24 hours can be blocked; the others come back in failed_users with 139100.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

phone-number-idstringrequired

WhatsApp Business phone number ID.

Example: "424361664134261"

Body

application/json
messaging_productstringrequired

Must be whatsapp.

block_usersobject[]required

Users to block or unblock.

Show child attributes
userstringrequired

Phone number or WhatsApp ID.

Responses

200Result per user.
messaging_productstring

Always whatsapp.

block_usersobject
Show child attributes
added_usersobject[]
Show child attributes
inputstring

The user you sent.

wa_idstring

WhatsApp ID.

failed_usersobject[]

Users that could not be processed.

Show child attributes
inputstring

The user you sent.

errorsobject[]
Show child attributes
messagestring

Message.

codeinteger

139100 when the user has not messaged the business in the last 24 hours.

error_dataobject
Show child attributes
detailsstring

Details.

400Invalid request. The body follows the Graph API error envelope; code identifies the error (for example 100 invalid parameter, 131009 parameter value not valid).
errorobjectrequired
Show child attributes
messagestringrequired

Human-readable error message, for WhatsApp errors prefixed with (#code).

typestringrequired

Exception type.

Example: "OAuthException"
codeintegerrequired

Error code. See the error codes reference.

error_subcodeinteger

More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).

error_user_titlestring

Title meant to be shown to the end user.

error_user_msgstring

Message meant to be shown to the end user.

error_dataobject
Show child attributes
messaging_productstring

Always whatsapp.

detailsstring

Details about the error.

fbtrace_idstringrequired

Trace ID. Include it when you contact support.

401Missing, invalid or revoked access token (190; a revoked token adds error_subcode: 460). A missing token answers 400 with code 104.
errorobjectrequired
Show child attributes
messagestringrequired

Human-readable error message, for WhatsApp errors prefixed with (#code).

typestringrequired

Exception type.

Example: "OAuthException"
codeintegerrequired

Error code. See the error codes reference.

error_subcodeinteger

More specific code, when there is one (for example 33 for objects that do not exist or are not visible to the token, 460 for revoked tokens, 2388024 for duplicate templates).

error_user_titlestring

Title meant to be shown to the end user.

error_user_msgstring

Message meant to be shown to the end user.

error_dataobject
Show child attributes
messaging_productstring

Always whatsapp.

detailsstring

Details about the error.

fbtrace_idstringrequired

Trace ID. Include it when you contact support.