Actions27
- Contact Actions
- Group Actions
- Guardrail Actions
- Message Actions
- Session Actions
Contact → Block
AI-generatedSummary
Block a contact on WhatsApp by specifying their phone number or JID within a given WhatsApp session.
Inputs
- Session (Name or ID) (required) — The WhatsApp session's name or ID in which to block the contact.
- Number or JID (required) — Phone number (country code + area code) or canonical JID of the contact to be blocked.
- Request Options — Optional settings such as batching, SSL certificate validation behavior, proxy, and timeout for the HTTP request.
Output shape
a single record confirming the block action or an error response
The operation sends a POST request to the endpoint /api/sessions/{session}/contacts/block with the required contact identifier in the body. It does not explicitly define the response schema beyond standard API error handling.