Ze da API icon

Ze da API

WhatsApp API powered by Ze da API - Send messages, manage groups, contacts and more

Actions137

Contact → Block/Unblock

AI-generated

Summary

Blocks or unblocks a contact by phone number

Inputs

  • phone (required) — Phone number in E.164 format without the '+' sign
  • action (required) — Whether to block or unblock the contact
  • requestOptions — Optional collection of advanced settings such as batching configuration
  • allowUnauthorizedCerts — Whether to accept responses with invalid SSL certificates
  • proxy — HTTP proxy URL, optionally with authentication credentials
  • timeout — Request timeout in milliseconds

Output shape

a contact record reflecting the updated block status

Returns a single contact object; may include pagination metadata if multiple contacts are processed in bulk

Examples

Example 1: Block a contact with phone 5511999999999

Phone=5511999999999, Action=block, RequestOptions={}, AllowUnauthorizedCerts=false, Proxy="", Timeout=10000

Links

Discussion