◈
ALGORISE AI Developer API & Webhooks
v1.4.0 REST SPECIFICATION • SUB-20MS SLA

Algorise Autonomous API Reference

Integrate real-time conversational lead defense, Meta Graph comment obfuscation, and mathematical ROI telemetry directly into your enterprise ERP, Salesforce CRM, or bespoke webhook mesh.

Base Endpoint & Authentication

https://algorise-ai-backend.onrender.com/api/v1

Authenticate all private client requests by passing your API Key in the X-API-Key request header. Public defense calculation endpoints do not require authentication tokens.

POST /agent/nlp-shield/evaluate
<0.020s Execution SLA

Analyzes inbound social ad comments, extracts and cryptographically masks prospect phone numbers/emails in real-time, and formats an authenticated private WhatsApp handoff payload.

JSON Request Payload
{
  "comment_text": "Interested in 500 pcs wholesale lot. Call me on 98254-11209",
  "buyer_name": "Kishanbhai (Rajkot Wholesaler)",
  "dispatch_telegram": false
}
Response Payload (200 OK)
{
  "shield_triggered": true,
  "latency_seconds": 0.0184,
  "detected_language": "Multi-lingual Enterprise NLP",
  "qualification_score": 99.4,
  "public_comment_reply": "Thank you! Contact info secured in 0.018s. Catalog dispatched to private WhatsApp DM.",
  "private_messenger_dm": "✨ Algorise Verified Client Atelier\\n• Quotation: Dispatched\\n• 24/7 Concierge Active"
}
POST /roi-defense/calculate
Pure Telemetry Metric Engine

Calculates pipeline leakage metrics, annual revenue recovered via sub-minute response times, and payback periods based on monthly ad spend.

Request Body
{
  "monthly_ad_spend": 150000.0,
  "monthly_comments": 2500,
  "avg_order_value": 45000.0
}
Response Body
{
  "annual_revenue_recovered": 3645000.0,
  "monthly_revenue_defense": 303750.0,
  "annual_roi_multiplier": 24.3,
  "payback_period_days": 14.8,
  "tier_name": "Surat Enterprise Tier"
}
WEBHOOK Meta Graph API v21 Inbound Listener
HMAC-SHA256 Enforced

Configure your Meta Developer App to deliver comment events to our redundant webhook listener. All incoming packets must include a valid X-Hub-Signature-256 header to prevent spoofing.

// Node.js Express Middleware for Signature Verification
const verifyMetaSignature = (req, res, next) => {
  const signature = req.headers['x-hub-signature-256'];
  const expected = 'sha256=' + crypto.createHmac('sha256', process.env.META_APP_SECRET).update(req.rawBody).digest('hex');
  if (!crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))) {
    return res.status(403).json({ error: 'Invalid HMAC signature' });
  }
  next();
};
LIVE API EXPLORER & WEBHOOK SANDBOX

Test HMAC-SHA256 Signature & Sub-20ms Interception Live

Simulated Edge Enclave
|
EDGE ENCLAVE TELEMETRY AWAITING TRIGGER
COMPUTED X-HUB-SIGNATURE-256:
sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
ENCLAVE LATENCY:
-- ms
DEFENSE ACTION:
--
ENCLAVE LOG STREAM:
Ready. Click "Sign & Dispatch" to test real-time HMAC validation and sub-20ms comment suppression.