๐Ÿ‘‘ PRO Feature

๐Ÿš€ Server API Integration

Connect your own AI server or custom API to handle incoming messages and generate intelligent replies using OpenAI, Claude, or any custom logic. Take full control of your auto-reply system.

Why Use Server API Integration?

Unlock the power of AI and custom automation for your messages

๐Ÿค–

AI-Powered Replies

Integrate OpenAI, Claude, or any AI service to generate intelligent, context-aware responses automatically.

๐ŸŽฏ

Custom Business Logic

Implement your own rules, CRM integration, database lookups, or any custom logic for replies.

๐Ÿ”„

Real-Time Processing

Messages are sent to your API instantly, with fast response times and reliable delivery.

๐ŸŒ

Multi-Language Support

Detect and respond in any language using AI translation or your own language detection logic.

๐Ÿ“Š

Full Control & Analytics

Track all messages, analyze patterns, and optimize your auto-reply system with complete visibility.

๐Ÿ”

Secure & Private

Your data goes directly to your server. Full encryption with X-API-Key authentication support.

How Server API Works

Simple 4-step process from message to intelligent reply

1

๐Ÿ“ฑ Message Received

AutoReply Mate receives a notification from WhatsApp, SMS, Telegram, or any supported app.

โ†’
2

๐Ÿš€ Sent to Your API

Message data is sent to your configured endpoint with sender info, message text, and timestamp.

โ†’
3

๐Ÿค– Your Server Processes

Your server/AI analyzes the message and generates an intelligent reply using your custom logic.

โ†’
4

โœ‰๏ธ Reply Sent Automatically

AutoReply Mate receives your response and sends it back to the sender instantly.

๐Ÿ“– API Documentation

Everything you need to integrate your server

๐Ÿ“ค Request Format (App โ†’ Your Server)

AutoReply Mate sends this JSON to your API endpoint

JSON
POST /api/autoreply
Content-Type: application/json
X-API-Key: your-secret-key-here

{
  "type": "SMS",
  "sender": "+40712345678",
  "name": "John Doe",
  "message": "help",
  "timestamp": "2026-02-28 14:30:00"
}

๐Ÿ“‹ Field Descriptions:

  • type: App type - SMS, WHATSAPP, TELEGRAM, FACEBOOK_MESSENGER, INSTAGRAM, etc.
  • sender: Phone number (e.g., +40712345678) or contact name if phone not available
  • name: Contact display name (optional - only if available)
  • message: The message text received
  • timestamp: Format yyyy-MM-dd HH:mm:ss

๐Ÿ“ฅ Response Format (Your Server โ†’ App)

Your server must respond with this JSON structure

JSON Success
{
  "text": "Your reply message here",
  "status": "success",
  "timestamp": "2026-02-28 14:30:05"
}

โœ… Success Response Fields:

  • text: The reply message to send back (required)
  • status: Must be "success" to send the reply (required)
  • timestamp: Optional, for logging purposes

โŒ Error Responses

Handle these common error scenarios

401 UNAUTHORIZED
{
  "error": "Missing X-API-Key header",
  "status": "unauthorized"
}
403 FORBIDDEN
{
  "error": "Invalid API key",
  "status": "forbidden"
}
400 BAD REQUEST
{
  "error": "Invalid JSON format",
  "status": "bad_request"
}

๐Ÿงช Test Your API with cURL

Quick test to verify your endpoint is working

bash
curl -X POST https://your-domain.com/api/autoreply \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-secret-key-here" \
  -d '{
    "type": "SMS",
    "sender": "+40712345678",
    "name": "Test User",
    "message": "help",
    "timestamp": "2026-02-28 14:30:00"
  }'

โš™๏ธ Setup Guide

Get started with Server API in minutes

1๏ธโƒฃ

Deploy Your Server

Create your API endpoint using PHP, Node.js, Python, or any backend. See code examples for ready-to-use implementations.

2๏ธโƒฃ

Open AutoReply Mate

Launch the app and navigate to Settings โ†’ Server API Configuration (PRO feature required).

3๏ธโƒฃ

Configure Endpoint

Enter your API URL and optional X-API-Key. Select which apps to enable (WhatsApp, SMS, Telegram, etc.).

4๏ธโƒฃ

Test Connection

Use the built-in "Test Connection" button to verify your endpoint is working correctly before activating.

5๏ธโƒฃ

Activate Server API

Toggle the switch to activate. Server API will now handle messages for selected apps (bypassing custom rules).

โš ๏ธ

Important Note

When Server API is active for an app, ALL custom rules are bypassed. Only your API will handle messages for that app. Make sure your server is reliable and responds quickly.

๐Ÿ’ก Use Cases

Real-world applications of Server API integration

๐Ÿค–

AI-Powered Customer Support

  • Integrate OpenAI or Claude for intelligent responses
  • Understand customer intent automatically
  • Provide 24/7 instant support
  • Reduce response time by 90%
๐Ÿ›’

E-commerce Automation

  • Auto-respond with order status
  • Tracking number lookup from database
  • Delivery estimates and updates
  • Return/refund instructions
๐Ÿ“…

Appointment Booking

  • Check real-time availability
  • Confirm appointments instantly
  • Send automatic reminders
  • Handle reschedule requests
๐Ÿ“Š

Lead Management & CRM

  • Qualify leads automatically
  • Capture and store contact info
  • Schedule follow-up callbacks
  • Direct CRM integration
๐ŸŒ

Multi-Language Support

  • Auto-detect message language
  • Respond in customer's language
  • AI translation integration
  • Global customer support
๐Ÿ””

Smart Notifications

  • Send alerts based on keywords
  • Escalate urgent messages
  • Custom notification rules
  • Team collaboration integration

๐Ÿš€ Ready to Get Started?

Upgrade to PRO to unlock Server API Integration and connect your AI server