Documentation

API Reference

All endpoints available at your Engine URL:

https://api.lefast.my.id/
Navigate

Overview

The LeFast WhatsApp Gateway API lets you send WhatsApp messages programmatically through your connected devices. All endpoints are served from your Engine URL.

Authentication

Endpoint type Header
v1 endpoints Authorization: Bearer
all requests Content-Type: application/json

Each connected device has its own API key, used for sending messages, checking numbers, and getting profiles.

Response Format

Success · 200
{
  "success": true,
  "statusCode": 200,
  "status": "",
  "message": "",
  "data": {}
}
Error · 4xx
{
  "success": false,
  "statusCode": 400,
  "status": "error",
  "message": "",
  "error": {
    "code": "",
    "details": {}
  }
}

Error Codes

HTTP Error Code Meaning
400 VALIDATION_ERROR Missing required fields
401 AUTH_REQUIRED / INVALID_API_KEY Invalid or missing API key
403 SUBSCRIPTION_INACTIVE Quota exceeded or subscription not active
404 DEVICE_NOT_FOUND Session or device not found
429 QUOTA_EXCEEDED Monthly quota exceeded
500 INTERNAL_ERROR Internal server error