Chats

Set an account online or offline

put/v1/accounts/{account_id}/presence

Request

  • Base URL: https://api.whatsmcp.com
  • URL: https://api.whatsmcp.com/v1/accounts/{account_id}/presence
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

account_idstring required

Request body

statestring required

available or unavailable (sets the account online/offline); composing/paused are per-chat — use …/chats/{chat}/presence

Response

OK

statusstring required

ok (queued to the bridge) or refused (nothing was sent)

Changes

No recorded changes to this operation across all 1 revision of this API.