Developer & API Docs

Developer Documentation & API Guides

Explore architecture specifications, webhook event protocols, and cloud integration guides.

1. Platform Overview & Quickstart

AutoMashi connects available channels through official platform authorization, then processes comments and messages according to account permissions and channel rules.

  • Requirements: A verified Meta Business account or Facebook page linked to an Instagram Professional account.
  • Official Authentication: Authorized securely via official Meta OAuth 2.0 without sharing account passwords.
  • Omnichannel: Unified triggers across Reels, Posts, Instagram DMs, and WhatsApp chats.

2. Real-Time Webhooks & Verification Handshake

Events are dispatched securely to encrypted endpoints verified with digital signature hashes (X-Hub-Signature-256).

// Webhook Verification Handshake Example:
GET /api/webhooks/whatsapp?hub.mode=subscribe&hub.verify_token=YOUR_TOKEN&hub.challenge=1158201444
Response: 1158201444 (Status 200 OK)

// Inbound WhatsApp Event Payload:
POST /api/webhooks/whatsapp
Headers: { "x-hub-signature-256": "sha256=..." }
Payload: { "entry": [{ "changes": [{ "value": { "messages": [...] } }] }] }

3. Flow Engine & Dynamic Variables

Inject dynamic context into automated responses and product links seamlessly:

{{name}}

Customer first name or social handle.

{{product_link}}

Direct product checkout URL with tracking UTM.

{{discount_code}}

Unique promo code applied to the session.

Need Custom Integration Support?

Our engineering team is available to assist with custom webhook setups and enterprise flows.