Smarter conversations. Stronger customer relationships. Explore WhatsMod ↗
whatsmod®
API GUIDE

Message from your code.
Follow up with events.

API token, authorization scope, and core endpoints for server-side integrations. Do not share your API key in browser code.

Connection and authorization

Base path on your application API server /api/public/v1 It is in the form. Generate the token from the API Tokens section on the panel; Authorization: Bearer TOKEN Send it with the title. You can limit the token in terms of duration and WhatsApp number.

Endpoints

TransactionRoadAuthority / consequence
GET/accountsToken verification · linked accounts
POST/messagesmessages.send · sending text
POST/messages/mediamessages.send · multipart file sending
POST/messages/templatemessages.send · Cloud API approved template
GET/messages/:messageIdmessages.read · message status
GET/conversations/:conversationId/messagesmessages.read · page history
POST/otp/sendotp · sending code generated by your application
GET/balanceotp · balance, plan and number rights

Text message example

The following example does not run; Provide the API address, token and recipient values ​​from your own server configuration.

POST {APP_API_ORIGIN}/api/public/v1/messages
Authorization: Bearer {API_TOKEN}
Content-Type: application/json
Idempotency-Key: {BENZERSIZ_ISTEK_ANAHTARI}

{
  "accountId": "{BAGLI_HESAP_ID}",
  "to": "{ULKE_KODUYLA_TELEFON}",
  "text": "Merhaba, talebinizi aldık."
}

202 Accepted means admission to the queue. Track the result from the message status endpoint or webhook event. Re-requesting with the same Idempotency-Key on supported transmit nodes prevents double transmission.

Webhook events

message.new, message.update, conversation.update, account.status, demo.verified, otp.sent, otp.failed and otp.rate_limited Choose the ones you need from the events. Test the target URL and review the delivery history from the panel.

OTP stream

/otp/send request phone, 4–8 digits code and optional site takes fields. This service transmits the code; Your application must generate the code and manage validation and validation. Credit and speed limits apply.

Open API tokens in the panel↗