Skip to main content
POST

Overview

Check with AiSensy that the token is valid and that the WhatsApp number is connected in that AiSensy account. Nothing is saved; connect the number afterwards with Create WhatsApp Integration, sending the same fields.

Prerequisites

  • An API key for your workspace
  • An AiSensy account with the WhatsApp number connected, and its API token

Request

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

Request Parameters

string
required
The WhatsApp Business number, with country code.
string
required
Your AiSensy API token.
string
default:"basic"
basic or pro.
string
Your AiSensy project ID. Required when plan is pro.

Response

boolean
true when the number and token were verified. A failed check returns an error instead.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request
    • phoneNumber or token is missing, or projectId is missing for pro.
    • Invalid phone number format.
    • Number not found, not connected, or not verified. – the number isn’t connected in that AiSensy account.
    • 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.