Skip to main content
POST
Block users

Request contract

  • Method and path: POST /apis/v1/social/messaging/whatsapp/block-users
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/messaging/whatsapp/block-users
  • connectionId: query; required
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

No additional charge for this operation.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

connectionId
string
required

Your messaging connection (msc_...), from GET /apis/v1/social/messaging/connections. On a request with a JSON body it may be sent as a top-level body member instead.

Pattern: ^msc_[0-9A-Za-z]+$

Body

application/json
users
string[]
required

Phone numbers (E.164, e.g. "+16505551234") or WhatsApp user IDs to block.

Required array length: 1 - 1000 elements
connectionId
string

The connection, when not sent as the connectionId query parameter.

Pattern: ^msc_[0-9A-Za-z]+$

Response

Success

blocked
object[]

Users successfully blocked.

failed
object[]

Users that could not be blocked, with reasons.