⚠️ Block users
messenger_post_blacklist_v2Add users to the messenger blacklist to prevent them from messaging you. Optionally include a reason (spam, fraud, insults) and item context.
Instructions
Adds one or more users to the account's BLACKLIST. WARNING: a blocked user will no longer be able to message you in the messenger; this immediately affects a third party and requires confirmation. Accepts an array of users with a user_id and an optional context (item_id and reason). reason_id: 1=spam, 2=fraud, 3=insults and rudeness, 4=other reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| users | Yes | List of users to block (at least one), each as { user_id, context? }. | |
| dryRun | No | v0.7.0: if true — returns a preview of the HTTP request without calling the Avito API. Safe for inspecting exactly what would be done. Default: the value of AVITO_MCP_DRY_RUN_DEFAULT (usually false). | |
| user_id | No | Avito account ID that maintains the blacklist. Defaults to Profile_id from .env. | |
| idempotencyKey | No | v0.7.0: optional key for duplicate protection. A repeat call with the same key within AVITO_MCP_IDEMPOTENCY_TTL_SEC returns the cached result. The same key with different args returns a conflict error. Keys are stored as bounded SHA-256 fingerprints. |