Install an agent to a WATI channel

Deploys an agent to a WhatsApp or Instagram channel of the WATI account that is
connected to the authenticated tenant. The install creates or updates the AI operator
and the automation rule in WATI.

The agent must belong to the authenticated tenant. The install uses the WATI
credentials that are stored for the tenant.

Send channel_id or channel_number to select the channel. If you send neither, the
install uses the previous channel of the agent, or the only channel of the WATI account.
The request fails with 400 when the install cannot find one channel.

An agent has one active install. When an install deploys the text agent to a different
channel, the upstream service also retires the installs of the agent on its other
channels and deactivates their automation rules. This step is best-effort.

After the install, the upstream service also tries to enable the agent, and to publish
the agent when it has no live version. These two steps are best-effort. If one of them
fails, the failure is only logged and the response is still 200.

Error bodies have two shapes. The gateway returns the Error object. The upstream
service returns {"error": "<message>"}, and some of its errors also have an
error_code. The gateway passes the upstream body through unchanged.

Requires the agents:write scope.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
uuid
required

Agent to install. It must belong to the authenticated tenant.

string
enum

Channel type. If omitted, the install uses the type of the agent's current install, or WhatsApp for a first install.

Allowed:
string

WATI channel ID. For Instagram, use a channelId from GET /wati/instagram/channels.

string

Phone number of the WhatsApp channel.

boolean
Defaults to false

If true, the install skips the text agent (AI operator, automation rule and bot action).

boolean
Defaults to false

If true, the automation rule in WATI also uses the WATI working hours filter.

string
enum

Set to voice to also sync the voice agent settings to WATI. This sync is best-effort. If it fails, the failure is only logged.

Allowed:
string

WATI channel ID for voice. If omitted, the install uses the stored voice channel of the agent, or channel_id.

string

Phone number of the voice channel.

boolean

Set to true to opt the channel in to voice note replies. Set to false to remove the opt-in. If omitted, the stored setting does not change.

Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json