Skip to main content
PUT

Overview

Update a WhatsApp agent created by the user who owns the API key. Send only the fields you want to change. To attach the agent to a number, use Assign Agent to WhatsApp Number; phoneNumberId can’t be changed here.

Prerequisites

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the WhatsApp agent to update.

Request Parameters

All fields are optional. They are described in Create WhatsApp Agent. Other fields are ignored.

Response

string
Whatsapp agent updated successfully. The updated agent isn’t returned; use Get WhatsApp Agent By ID.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – Invalid Agent ID, or Only one send_whatsapp_start_message tool is allowed.
  • 401 Unauthorized – Missing or invalid API key.
  • 403 Forbidden – The request sets settings.cross_memory, which only super admins can change.
  • 404 Not Found – WhatsApp agent not found: it doesn’t exist or wasn’t created by the user who owns the API key.
  • 429 Too Many Requests – More than 1,000 WhatsApp requests in 15 minutes from your IP address.
  • 500 Internal Server Error – Unexpected server error.