Skip to main content
POST

Overview

Set the webhook of your AiSensy account to Weya’s WhatsApp webhook address, so incoming WhatsApp messages and events reach Weya. You can’t choose the address: it is always Weya’s. Assigning an agent with Assign Agent to WhatsApp Number already sets the webhook up, so you only need this endpoint to repair it.

Prerequisites

  • An API key for your workspace
  • Your AiSensy API token

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
Your AiSensy API token.

Response

object
The response from AiSensy to the update.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – token is required, or AiSensy rejected the token.
  • 401 Unauthorized – Missing or invalid 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, or AiSensy couldn’t be reached.