WhatsAble

Non-Template Message

Reference for the retired legacy send endpoint. Send text and media messages with API v1 instead.

This endpoint is retired. For an account on the current Whatsable app it answers 410 Gone and sends nothing. Send messages with API v1: Send a message (API v1)

Send instant WhatsApp messages directly to your customers without requiring pre-approved templates. Perfect for quick responses, customer support, and media sharing during ongoing conversations.

The Send Non-Template Message API enables you to send immediate WhatsApp messages including text, images, videos, audio, and documents. This is ideal for customer support scenarios and ongoing conversations where template approval is not required.

Overview

The Send Non-Template Message API enables you to:

  • Send instant text messages with URL previews
  • Share images, videos, and documents with captions
  • Send audio files and voice messages
  • Organize messages with custom labels for analytics
  • Respond quickly in customer support scenarios
  • Continue conversations without template restrictions

Send Non-Template Message

Send various types of WhatsApp messages directly to a specific phone number without requiring pre-approved templates.

Endpoint

POST https://api.insightssystem.com/api:U9ztporN/send/message

Authentication

All API requests require authentication using your API key. Never share your API keys in client-side code or public repositories.

Include your API key in all requests using Bearer authentication:

Authorization: Bearer YOUR_API_KEY

Request Body

tostringrequired

The recipient's phone number in international format with country code (e.g., "+15551234567").

typestringrequired

The type of message to send. Must be one of: text, image, video, audio, document.

recipient_typestringdefault: individual

The type of recipient. Always use "individual" for single recipients.

messaging_productstringdefault: whatsapp

The messaging platform. Always use "whatsapp".

labelsarray

Array of strings for message categorization and analytics (e.g., ["support", "urgent"]).

biz_opaque_callback_datastring

WhatsApp's own tracking field, up to 512 characters. On a text message, if you set it, we send it to WhatsApp exactly as you wrote it. On an image, video, audio or document message we build the message from your link and always set our own value, so yours is not sent. If you leave it out, we set it ourselves. WhatsApp sometimes answers a send with a temporary error and still delivers the message minutes later. Our value lets the inbox recognize that late delivery and show the message as delivered instead of failed. If you set your own value on a text message, we can't make that correction for that message.

Message Type-Specific Parameters

textobjectrequired

Text message configuration

Show Text Properties
bodystringrequired

The text content of the message (max 4096 characters)

preview_urlbooleandefault: false

Whether to show URL previews for links in the message

Response

The API returns a detailed response indicating whether the message was accepted for delivery and provides WhatsApp message identifiers for tracking.

successboolean

Indicates if the request was successfully processed

whatsapp_response_infoobject

Details from the WhatsApp Business API about the message delivery

Show WhatsApp Response Fields
messaging_productstring

Always "whatsapp" for WhatsApp messages

contactsarray

Information about the message recipient

inputstring

The phone number that was provided in the request

wa_idstring

WhatsApp's unique identifier for the recipient

messagesarray

Details about the sent message

idstring

Unique message identifier (wamid) for tracking status

message_statusstring

Initial status of the message (typically "accepted")

errorobject

Present only when an error occurs

codestring

Error code identifier

messagestring

Human-readable error description

Example Requests

cURL
curl -X POST \
  https://api.insightssystem.com/api:U9ztporN/send/message \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "to": "+15551234567",
    "type": "text",
    "text": {
      "body": "Hello! Thank you for contacting our support team. How can we help you today?",
      "preview_url": true
    },
    "recipient_type": "individual",
    "messaging_product": "whatsapp",
    "labels": ["support", "greeting"]
  }'

Example Response

Success Response
{
  "success": true,
  "whatsapp_response_info": {
    "messaging_product": "whatsapp",
    "contacts": [
      {
        "input": "+15551234567",
        "wa_id": "15551234567"
      }
    ],
    "messages": [
      {
        "id": "wamid.HBgLMTU1NTEyMzQ1NjcVAgAERgINQTlEOEJDNzM5QzQwAA==",
        "message_status": "accepted"
      }
    ]
  }
}

Response Codes

Message Types Guide

Understanding the different message types and their optimal use cases will help you choose the right format for your communication needs.

Text Messages

Best Practices

  • Keep messages concise and actionable
  • Use URL previews for important links
  • Break long messages into multiple shorter ones
  • Include clear call-to-action when needed

Use Cases

  • Customer support responses
  • Order confirmations
  • Quick updates and notifications
  • FAQ responses

Media Messages

Images

  • Formats: JPG, JPEG, PNG
  • Max Size: 5MB
  • Optimal: 1080x1080px or 16:9 ratio
  • Use for: Product photos, screenshots, infographics

Videos

  • Formats: MP4, 3GPP
  • Max Size: 16MB
  • Max Duration: 90 seconds
  • Use for: Tutorials, product demos, explanations

Audio

  • Formats: MP3, AAC, AMR, OGG
  • Max Size: 16MB
  • Max Duration: 30 minutes
  • Use for: Voice messages, audio instructions

Documents

  • Formats: PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX
  • Max Size: 100MB
  • Use for: Manuals, invoices, reports, contracts

Media Requirements

All media URLs must be publicly accessible via HTTPS without requiring authentication. For security-sensitive content, consider using signed URLs with expiration times.

URL Requirements

Public Accessibility

Ensure your media URLs are publicly accessible without authentication headers or login requirements.

HTTPS Protocol

All media URLs must use HTTPS protocol. HTTP URLs will be rejected.

Direct File Access

URLs should point directly to the file, not to a page that contains the file or requires redirects.

Content-Type Headers

Your server should return appropriate Content-Type headers for media files to ensure proper handling.

Supported Formats

Media TypeSupported FormatsMax SizeNotes
ImagesJPG, JPEG, PNG5MBAnimated GIFs not supported
VideosMP4, 3GPP16MBH.264 codec recommended
AudioMP3, AAC, AMR, OGG16MBStereo or mono
DocumentsPDF, DOC, DOCX, PPT, PPTX, XLS, XLSX100MBPassword-protected files not supported

Best Practices

Message Optimization

Keep messages concise and actionable. Use rich media when it adds value. Always include clear next steps or calls-to-action when appropriate.

Error Handling

Implement comprehensive error handling with retries. Store failed messages for later retry. Monitor success rates and investigate patterns in failures.

Media Management

Use CDN for media hosting to ensure fast loading. Implement media validation before sending. Consider file size optimization for better delivery rates.

Analytics & Tracking

Use labels consistently for message categorization. Track message IDs for delivery status monitoring. Implement webhook handling for real-time status updates.

Security Considerations

API Key Security

  • Never expose API keys in client-side code
  • Use environment variables for key storage
  • Rotate keys regularly

Data Privacy

  • Avoid sending sensitive data in message content
  • Use secure, time-limited URLs for confidential documents
  • Implement proper access controls
  • Follow GDPR and other privacy regulations

FAQs

Need help?

Our support team can help with API integration, troubleshooting, or any questions about sending messages.