Aysali API icon

Aysali API

Interact with Aysali API

Instance → Set Behavior

AI-generated

Summary

Configure behavior and operational settings for an Aysali WhatsApp instance, such as call handling, automated read receipts, and online status presence.

Inputs

  • instanceName (required) — The name of the target instance to configure.
  • rejectCall — Whether to automatically reject incoming phone calls on this instance.
  • msgCall — Message sent automatically to the caller when incoming calls are rejected.
  • groupsIgnore — Whether to ignore group events or messages on this instance.
  • alwaysOnline — Whether to keep the instance status permanently displayed as online.
  • readMessages — Whether to automatically mark incoming messages as read.
  • syncFullHistory — Whether to synchronize the complete message history.
  • readStatus — Whether to automatically mark WhatsApp status updates as read.

Output shape

a JSON object

Returns the API confirmation payload containing the updated instance behavior settings.

Examples

Example 1: Auto-reject calls with a custom decline message

Set Instance Name to 'support-instance', Reject Calls to true, and Call Message to 'We do not accept calls on WhatsApp. Please text us.'

Example 2: Set instance to always appear online and automatically mark messages as read

Set Instance Name to 'support-instance', Always Online to true, and Read Messages to true.

Links

Discussion