MCP is live.Set upAsk the community
OmniDimension
WhatsApp

Block a customer

Stop every message you start to this customer from this number, until the block is lifted. The response is 201 when the block is new and 200 when the customer was already blocked, in which case the entry is returned unchanged.

Set up WhatsApp first. Connect a WhatsApp number in the dashboard or with Connect numbers. Included on every paid plan. See plans.

POST/whatsapp/numbers//opt_outs
Path parameters
number_idrequired
Body
2 fields
·

The customer's number in international format, such as +15551234567.

A note for your team.

curl -X POST 'https://backend.omnidim.io/api/v1/whatsapp/numbers/{number_id}/opt_outs' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "customer": "+15551234567",
  "note": "Asked to stop on the call."
}'
Example response
synthetic
{
  "id": 0,
  "phone_number_id": 0,
  "customer": "+15551234567",
  "source": "instructed_keyword",
  "active": false,
  "opted_out_at": "string",
  "opted_in_at": "string",
  "note": "string"
}

Authorization

BearerAuth
headerAuthorizationBearer <token>

Bearer token authentication. Obtain your API key from the OmniDimension dashboard.

Path Parameters

number_id*integer

Id of a WhatsApp number in your workspace, from listWhatsappNumbers. A number in another workspace answers 404.

Request Body

application/json
customer*string

The customer's number in international format, such as +15551234567.

note?string

A note for your team.

Lengthlength <= 500

Response body

application/json

Response Body

The customer was already blocked.

application/json
id?integer
phone_number_id?integer
customer?string
source?string

How the opt-out happened. instructed_keyword and template_stop_button are the customer's own and only they can lift them. meta_marketing_optout is a marketing choice made in WhatsApp. manual is one you added.

Value in"instructed_keyword""template_stop_button""meta_marketing_optout""manual"
active?boolean
opted_out_at?string
opted_in_at?string

When a lifted opt-out was lifted.

note?string