WhatsApp Gateway
API referenceChannels

Unfollow a channel

POST
/api/v1/sessions/{session}/channels/{jid}:unfollow

Stop following the channel for this session.

Current behavior is not_implemented (501).

Requires send capability.

No request body; returns 204 when supported.

Errors: forbidden (403), not_found (404), not_implemented (501).

Authorization

AuthorizationBearer <token>

Send Authorization: Bearer <token>. The token can be a login JWT from the frontend or an api-key for a script. JWT access comes from the person's organization role. Api-key access comes from the permissions saved on the key.

In: header

Path Parameters

session*string

Session ID for the follow/unfollow/mute action.

Example"01HX..."
jid*string

Channel JID, for example 120363012345678901@newsletter. URL encoding for reserved chars is handled by the gateway.

Example"120363012345678901@newsletter"

Response Body

application/json

curl -X POST "https://example.com/api/v1/sessions/01HX.../channels/120363012345678901@newsletter:unfollow"
Empty
{  "error": {    "code": "not_found",    "details": {      "property1": null,      "property2": null    },    "message": "session not found"  }}