Overview – full docs available to clients

REST API Overview

Integrate any ERP or backend workflow with SystGrid MsgQ using standard HTTPS JSON requests. Complete endpoint specifications, error codes, and provider configuration guides are provided during client onboarding.

Service Endpoints

REST API

https://api.msgq.io

Submit approved template messages, variables, and document attachments.

Client Portal

https://app.msgq.io

View delivery statuses, API audit logs, reports, and tenant settings.

Expiring Document Links

https://d.msgq.io

Serves private PDF/JPG files via cryptographically signed, expiring URLs.

1. Token Authentication

Every API call to https://api.msgq.io must be sent over HTTPS with a tenant-scoped Bearer token in the Authorization header. Tokens are scoped strictly to your tenant workspace and audited on every request. Your WhatsApp Business provider credentials remain stored encrypted inside SystGrid MsgQ and never need to be embedded inside your ERP code.

2. Sending a Template Message with an Attachment

The illustrative example below demonstrates sending an approved WhatsApp invoice template with a PDF attachment. SystGrid MsgQ stores the file privately, generates an expiring link on d.msgq.io, and dispatches the message via your configured WhatsApp Business account.

Illustrative Request (JSON)
POST https://api.msgq.io/v1/messages
Authorization: Bearer <YOUR_TENANT_API_TOKEN>
Content-Type: application/json

{
  "reference_id": "INV-2026-004812",
  "recipient_phone": "+919820000000",
  "template_id": "erp_invoice_dispatch_v1",
  "template_variables": {
    "customer_name": "Acme Industrial Components Pvt Ltd",
    "invoice_number": "INV-2026-004812",
    "invoice_amount": "INR 1,48,500.00",
    "due_date": "2026-04-30"
  },
  "attachment": {
    "filename": "INV-2026-004812.pdf",
    "content_type": "application/pdf",
    "content_base64": "<BASE64_ENCODED_FILE_BYTES>"
  }
}
Illustrative Response (202 Accepted)
HTTP/1.1 202 Accepted
Content-Type: application/json

{
  "message_id": "msg_01JQ9W7K3A8X5M2N4P6R",
  "reference_id": "INV-2026-004812",
  "status": "queued",
  "document_link": {
    "url": "https://d.msgq.io/s/signed-expiring-token",
    "expires_at": "2026-04-15T18:30:00Z"
  },
  "created_at": "2026-04-01T10:15:22Z"
}

3. Delivery Status Tracking & Webhooks

As Meta WhatsApp Cloud API (or your chosen WhatsApp provider) reports message progress, SystGrid MsgQ normalises status transitions—queued, sent, delivered, read, and failed—and records them in your audit trail and Client Portal.

Your ERP can correlate outcomes back to internal document numbers using the reference_id field, query message status via API, or receive status callbacks via webhook notifications where configured.

Illustrative Status Event Payload
{
  "event": "message.status.updated",
  "message_id": "msg_01JQ9W7K3A8X5M2N4P6R",
  "reference_id": "INV-2026-004812",
  "status": "delivered",
  "provider_message_id": "wamid.HBgMOTE5ODIwMDAwMDAw...",
  "occurred_at": "2026-04-01T10:15:26Z"
}

Need the full API specification?

Full OpenAPI reference, field schemas, attachment limits, and sandbox guidance are shared directly with onboarded clients.

Request onboarding docs