v1

latestOpenAPI 3.1.02026-07-1413113265.9 KB
story

[BETA] set the Status privacy

Configure who can see Status posts from this instance. Set type to "all" for all contacts, "allow" to restrict visibility to a specific list of contacts, or "deny" to exclude specific contacts. ⚠️ This is a persistent account-level setting and is synchronized to all linked devices. Note: This endpoint is currently in beta and may change without notice.

post/instances/{id}/client/action/set-status-privacy

Path parameters

idinteger required

Instance ID

Request body

type'all' | 'allow' | 'deny' required

"all" shows the Status to all contacts; "allow" restricts visibility to the listed contacts; "deny" excludes the listed contacts.

contactsstring[]

E.164 phone numbers or chat IDs. Required when type is "allow" or "deny".

Example request

{
  "type": "allow",
  "contacts": [
    "+491234567890",
    "491234567891@c.us"
  ]
}

Response

Status privacy updated successfully

status'success' | 'error'
instanceIdstring

Example response

{
  "status": "success",
  "instanceId": "1",
  "data": {
    "updated": true,
    "type": "allow",
    "contactCount": 2
  },
  "links": {
    "self": "https://waapi.app/api/v1/instances/1/client/action/set-status-privacy"
  }
}