---
title: "block a contact"
method: POST
path: "/instances/{id}/client/action/block-contact"
tags: ["contact"]
---

# block a contact

`POST /instances/{id}/client/action/block-contact`

Blocks a contact, preventing them from sending messages to the authenticated user. The contact will not be able to see the user's last seen, online status, or status updates.

## Path parameters

- `id` integer, required

## Request body

- object
  - `contactId` string, required — The ID of the contact to block in the format number@c.us

## Response `200`

Contact blocked successfully

- object
  - `data` object
    - `contactId` string — The ID of the blocked contact
    - `blocked` boolean — Indicates whether the contact was successfully blocked
  - `links` object
    - `self` string
  - `status` 'success' | 'error'

## Other responses

- `401` — Unauthorized — invalid or missing bearer token
- `403` — Forbidden — insufficient permissions or account blocked
- `404` — Not found — instance does not exist or does not belong to you
- `409` — Conflict — instance is not ready
- `422` — Validation error — invalid or missing request parameters
- `429` — Too many requests — rate limit exceeded

---

[API](https://skmtc.net/waapi/apis/waapi-api.md) · [All operations](https://skmtc.net/waapi/apis/waapi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/waapi/waapi-api/revisions/1e2cc7c12090/schema)
