Skip to main content
GET

Overview

Fetch one template of one of your WhatsApp integrations live from AiSensy, to see which variables it needs. The data is whatever AiSensy returns for the template.

Prerequisites

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
Integration ID (the _id from Get WhatsApp Numbers).
string
required
Template ID from Get WhatsApp Templates.

Response

A successful request returns status: true, the message Template fetched successfully, and the template in data.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – Valid Phone Number ID and Template ID are required.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – Whatsapp number not found: it doesn’t exist or wasn’t connected 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, or AiSensy couldn’t be reached.