WACM.in Logo
Developer Documentation

WACM.in API Reference

Complete documentation for the WACM.in REST APIs. Integrate WhatsApp Business messaging, eCommerce, and Multi-Channel Verification directly into your applications.

AI & LLM Integration Hub

LLM Ready

Feed WACM API specs directly to Cursor, Claude, ChatGPT, Antigravity, or custom AI agents.

Download .mdOpenAPI 3.1
Machine-Readable Feeds:/llms.txt /llms-full.txt

Overview

WACM.in provides RESTful APIs for WhatsApp Business communication and eCommerce management. All APIs use JSON for request/response payloads and require authentication via Bearer token.

Authentication

The Wpbox and Shop developer APIs use a Laravel Sanctum bearer token. Wpbox endpoints also accept ?token= when no Authorization header is present. Obtain a token from the WACM dashboard under Settings → API.

Method 1: Authorization Header (Recommended)

Request Header
GET /api/v1/contacts HTTP/1.1
Host: app.wacm.in
Authorization: Bearer your_api_token_here
Accept: application/json

Method 2: Query Parameter

cURL
curl "https://app.wacm.in/api/v1/contacts?token=your_api_token_here"

Security Note

Always use HTTPS for API requests. Never expose your API token in client-side code or public repositories.

Rate Limiting

Only the Verification API currently declares an explicit route-level limit: 30 requests per minute for authenticated endpoints and 10 requests per minute for the magic-link endpoint. Other limits are enforced by the application plan and middleware; contact support for your tenant limits.

Base URL

Base URL
https://app.wacm.in

Pagination

List endpoints return paginated responses using Laravel's standard pagination format:

Paginated Response
{
  "data": [...],
  "links": {
    "first": "https://app.wacm.in/api/v1/contacts?page=1",
    "last": "https://app.wacm.in/api/v1/contacts?page=5",
    "prev": null,
    "next": "https://app.wacm.in/api/v1/contacts?page=2"
  },
  "meta": {
    "current_page": 1,
    "last_page": 5,
    "per_page": 15,
    "total": 75
  }
}

Use ?page= to navigate pages and ?limit= to control results per page (default: 15).

Quick Reference

Overview of all available REST endpoints across WACM modules.

WhatsApp Business API (Base: /api/v1)

GET
/me

Get authenticated user profile

GET
/contacts

List all contacts with pagination

POST
/contacts

Create or update a contact

POST
/contacts/bulk-sync

Bulk sync contacts with group/tag assignments

GET
/contacts/{id}

Get contact details with groups and fields

PUT
/contacts/{id}

Update contact information

DELETE
/contacts/{id}

Delete contact

POST
/contacts/check-phone

Verify phone number WhatsApp registration

POST
/messages/text

Send text, media, or quick-reply message

POST
/messages/template

Send approved template message

POST
/messages/list

Send interactive list message

GET
/templates

List approved message templates

GET
/groups

List contact groups

GET
/tags

List contact tags

GET
/fields

List custom contact field definitions

GET
/campaigns

List campaigns with stats

POST
/campaigns/audience-preview

Preview audience count before launching

POST
/campaigns

Create and dispatch campaign

POST
/campaigns/send

Send campaign message to contact dynamically

GET
/conversations

List active conversations

GET
/conversations/{id}/messages

List messages in a conversation

eCommerce API (Base: /v1/shop & /shop)

GET
/v1/shop/products

List all products

POST
/v1/shop/products

Create a new product

GET
/v1/shop/products/{id}

Get product details

PUT
/v1/shop/products/{id}

Update product

DELETE
/v1/shop/products/{id}

Delete product (204 No Content)

GET
/v1/shop/categories

List categories

POST
/v1/shop/categories

Create category (name, slug)

GET
/v1/shop/orders

List orders

GET
/v1/shop/orders/{id}

Get order details

PUT
/v1/shop/orders/{id}/status

Update order status

POST
/shop/erp/sync

Sync products from external ERP

POST
/shop/ai/search

AI natural language product search

POST
/shop/webhooks/shopify/{token}

Shopify webhook receiver

POST
/shop/webhooks/woo/{token}

WooCommerce webhook receiver

POST
/shop/webhooks/custom/{token}

Custom webhook receiver

Verification API (Base: /v1/verification)

POST
/v1/verification/request

Request OTP verification (WhatsApp / Email)

POST
/v1/verification/verify

Verify OTP code

GET
/v1/verification/status/{request_id}

Check verification status

POST
/v1/verification/resend

Resend OTP code

GET
/v1/verification/magic/{request_id}/{token}

Magic link verification

Need Help?

Can't find what you're looking for? Our team is here to help you integrate.