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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||

