WhatsApp Automation Gateway — API Reference

Every endpoint answers GET or POST. Params can go in the query string or a JSON body. Replace YOUR_ACCOUNT_ID / YOUR_API_KEY / YOUR_MASTER_PIN below with your own — get an API key by registering an account from the dashboard, or by calling POST /api/register.

Account

GET · POST /api/register open

Create a new account (its own WhatsApp session, settings and log). Returns an API key for server-to-server use.

Params: account_id, pin, bot_name, signup_pin

GET demo
https://www.api.nawanotify.online///api/register?account_id=your_account_id&pin=your_pin&bot_name=My%20Bot
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/register' \
  -H 'Content-Type: application/json' \
  -d '{"account_id":"your_account_id","pin":"your_pin","bot_name":"My Bot"}'
GET · POST /api/verify-pin open

Check an account_id + PIN pair. Used by the dashboard lock screen.

Params: account_id, pin

GET demo
https://www.api.nawanotify.online///api/verify-pin?account_id=your_account_id&pin=your_pin
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/verify-pin' \
  -H 'Content-Type: application/json' \
  -d '{"account_id":"your_account_id","pin":"your_pin"}'
GET · POST /api/change-pin api key

Change this account's own PIN.

Params: new_pin

GET demo
https://www.api.nawanotify.online///api/change-pin?api_key=YOUR_API_KEY&new_pin=newSecurePin1
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/change-pin' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","new_pin":"newSecurePin1"}'
GET · POST /api/regenerate-api-key api key

Issue a new API key for this account. The old one stops working at once.

GET demo
https://www.api.nawanotify.online///api/regenerate-api-key?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/regenerate-api-key' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'

System

GET · POST /api/status api key

This account's connection state, QR image and switches.

GET demo
https://www.api.nawanotify.online///api/status?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/status' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/qr api key

Current QR code for this account, as a PNG data URL.

GET demo
https://www.api.nawanotify.online///api/qr?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/qr' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/info api key

This account's identity and limits.

GET demo
https://www.api.nawanotify.online///api/info?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/info' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/endpoints open

The live route table for this gateway. See also GET /api-docs for a formatted page.

GET demo
https://www.api.nawanotify.online///api/endpoints
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/endpoints' \
  -H 'Content-Type: application/json' \
  -d '{}'
GET · POST /api/stats api key

This account's counters since the process started.

GET demo
https://www.api.nawanotify.online///api/stats?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/stats' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/logs api key

This account's recent activity, newest first.

Params: limit, type

GET demo
https://www.api.nawanotify.online///api/logs?api_key=YOUR_API_KEY&limit=50&type=image
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/logs' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","limit":"50","type":"image"}'
GET · POST /api/clear-logs api key

Delete this account's stored activity.

GET demo
https://www.api.nawanotify.online///api/clear-logs?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/clear-logs' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/settings api key

This account's settings and identifiers. The PIN is never returned.

GET demo
https://www.api.nawanotify.online///api/settings?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/settings' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/save-settings api key

Update this account's settings. Send only the fields you want changed. Use /api/change-pin for the PIN.

Params: bot_name, max_bulk_messages, delay_between_messages, rate_limit_per_minute, log_incoming

GET demo
https://www.api.nawanotify.online///api/save-settings?api_key=YOUR_API_KEY&bot_name=My%20Bot&max_bulk_messages=50&delay_between_messages=1500&rate_limit_per_minute=120&log_incoming=true
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/save-settings' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","bot_name":"My Bot","max_bulk_messages":"50","delay_between_messages":"1500","rate_limit_per_minute":"120","log_incoming":"true"}'
GET · POST /api/toggle-bot api key

Turn outgoing sending on or off for this account.

Params: is_active

GET demo
https://www.api.nawanotify.online///api/toggle-bot?api_key=YOUR_API_KEY&is_active=true
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/toggle-bot' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","is_active":"true"}'
GET · POST /api/restart-connection api key

Reconnect this account without clearing its session.

GET demo
https://www.api.nawanotify.online///api/restart-connection?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/restart-connection' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/disconnect-whatsapp api key

Log out this account's number, clear its session, and produce a fresh QR.

GET demo
https://www.api.nawanotify.online///api/disconnect-whatsapp?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/disconnect-whatsapp' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'

Messaging

GET · POST /api/send-message api key

Send text to one number.

Params: number, message, quoted_id

GET demo
https://www.api.nawanotify.online///api/send-message?api_key=YOUR_API_KEY&number=923243458649&message=Hello%20from%20the%20API
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-message' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","number":"923243458649","message":"Hello from the API"}'
GET · POST /api/send-group-message api key

Send text to one group.

Params: group_id, message

GET demo
https://www.api.nawanotify.online///api/send-group-message?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us&message=Hello%20from%20the%20API
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-group-message' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us","message":"Hello from the API"}'
GET · POST /api/send-bulk api key

Send the same text to many numbers. numbers accepts an array or a comma separated list.

Params: numbers, message, delay

GET demo
https://www.api.nawanotify.online///api/send-bulk?api_key=YOUR_API_KEY&numbers=923243458649%2C923009999999&message=Hello%20from%20the%20API&delay=1500
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-bulk' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","numbers":"923243458649,923009999999","message":"Hello from the API","delay":"1500"}'
GET · POST /api/send-bulk-groups api key

Send the same text to many groups.

Params: group_ids, message, delay

GET demo
https://www.api.nawanotify.online///api/send-bulk-groups?api_key=YOUR_API_KEY&group_ids=1203630000000000%40g.us&message=Hello%20from%20the%20API&delay=1500
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-bulk-groups' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_ids":"1203630000000000@g.us","message":"Hello from the API","delay":"1500"}'
GET · POST /api/send-media api key

Send image, video, audio, or document by URL or base64. type defaults to image.

Params: jid, type, url, base64, caption, file_name, mimetype

GET demo
https://www.api.nawanotify.online///api/send-media?api_key=YOUR_API_KEY&jid=923243458649&type=image&url=https%3A%2F%2Fpicsum.photos%2F400&caption=Hello%20there&file_name=file.pdf&mimetype=application%2Fpdf
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-media' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","type":"image","url":"https://picsum.photos/400","caption":"Hello there","file_name":"file.pdf","mimetype":"application/pdf"}'
GET · POST /api/send-sticker api key

Send a WebP sticker.

Params: jid, url, base64

GET demo
https://www.api.nawanotify.online///api/send-sticker?api_key=YOUR_API_KEY&jid=923243458649&url=https%3A%2F%2Fpicsum.photos%2F400
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-sticker' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","url":"https://picsum.photos/400"}'
GET · POST /api/send-location api key

Send a map pin.

Params: jid, latitude, longitude, name, address

GET demo
https://www.api.nawanotify.online///api/send-location?api_key=YOUR_API_KEY&jid=923243458649&latitude=31.4504&longitude=73.0779&name=Ali&address=Main%20Street
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-location' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","latitude":"31.4504","longitude":"73.0779","name":"Ali","address":"Main Street"}'
GET · POST /api/send-contact api key

Send a contact card.

Params: jid, contact_name, contact_number

GET demo
https://www.api.nawanotify.online///api/send-contact?api_key=YOUR_API_KEY&jid=923243458649&contact_name=Ali%20Raza&contact_number=923001234567
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-contact' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","contact_name":"Ali Raza","contact_number":"923001234567"}'
GET · POST /api/send-poll api key

Send a poll. options accepts an array or a comma separated list.

Params: jid, question, options, selectable_count

GET demo
https://www.api.nawanotify.online///api/send-poll?api_key=YOUR_API_KEY&jid=923243458649&question=Which%20day%20works%3F&options=Monday%2CTuesday%2CWednesday&selectable_count=1
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-poll' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","question":"Which day works?","options":"Monday,Tuesday,Wednesday","selectable_count":"1"}'
GET · POST /api/send-reaction api key

React to a message. Send an empty emoji to remove the reaction.

Params: jid, message_id, emoji, from_me

GET demo
https://www.api.nawanotify.online///api/send-reaction?api_key=YOUR_API_KEY&jid=923243458649&message_id=ABCD1234EFGH&emoji=%F0%9F%91%8D&from_me=true
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-reaction' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","message_id":"ABCD1234EFGH","emoji":"👍","from_me":"true"}'
GET · POST /api/delete-message api key

Delete a message for everyone.

Params: jid, message_id, from_me, participant

GET demo
https://www.api.nawanotify.online///api/delete-message?api_key=YOUR_API_KEY&jid=923243458649&message_id=ABCD1234EFGH&from_me=true
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/delete-message' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","message_id":"ABCD1234EFGH","from_me":"true"}'
GET · POST /api/mark-read api key

Send a read receipt for one message.

Params: jid, message_id, participant

GET demo
https://www.api.nawanotify.online///api/mark-read?api_key=YOUR_API_KEY&jid=923243458649&message_id=ABCD1234EFGH
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/mark-read' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","message_id":"ABCD1234EFGH"}'
GET · POST /api/send-presence api key

Show typing or recording. state: available, unavailable, composing, recording, paused.

Params: jid, state

GET demo
https://www.api.nawanotify.online///api/send-presence?api_key=YOUR_API_KEY&jid=923243458649&state=composing
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/send-presence' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","state":"composing"}'

Contacts

GET · POST /api/check-number api key

Check whether numbers are registered on WhatsApp.

Params: numbers

GET demo
https://www.api.nawanotify.online///api/check-number?api_key=YOUR_API_KEY&numbers=923243458649%2C923009999999
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/check-number' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","numbers":"923243458649,923009999999"}'
GET · POST /api/profile-picture api key

Get a profile picture URL for a contact or group.

Params: jid, high_res

GET demo
https://www.api.nawanotify.online///api/profile-picture?api_key=YOUR_API_KEY&jid=923243458649&high_res=true
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/profile-picture' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649","high_res":"true"}'
GET · POST /api/get-profile api key

Profile picture plus the about text, when visible.

Params: jid

GET demo
https://www.api.nawanotify.online///api/get-profile?api_key=YOUR_API_KEY&jid=923243458649
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/get-profile' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","jid":"923243458649"}'
GET · POST /api/update-profile-status api key

Change the about text on this account.

Params: text

GET demo
https://www.api.nawanotify.online///api/update-profile-status?api_key=YOUR_API_KEY&text=Back%20soon%20shortly
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/update-profile-status' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","text":"Back soon shortly"}'
GET · POST /api/update-profile-name api key

Change the display name on this account.

Params: name

GET demo
https://www.api.nawanotify.online///api/update-profile-name?api_key=YOUR_API_KEY&name=Ali
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/update-profile-name' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","name":"Ali"}'

Groups

GET · POST /api/groups api key

List every group this account's number belongs to.

Params: search

GET demo
https://www.api.nawanotify.online///api/groups?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/groups' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/group-info api key

Full metadata for one group.

Params: group_id

GET demo
https://www.api.nawanotify.online///api/group-info?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-info' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us"}'
GET · POST /api/group-participants api key

Members of a group with their admin roles.

Params: group_id

GET demo
https://www.api.nawanotify.online///api/group-participants?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-participants' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us"}'
GET · POST /api/create-group api key

Create a group and add members.

Params: subject, participants

GET demo
https://www.api.nawanotify.online///api/create-group?api_key=YOUR_API_KEY&subject=New%20Group&participants=923001111111%2C923002222222
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/create-group' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","subject":"New Group","participants":"923001111111,923002222222"}'
GET · POST /api/group-add api key

Add members. Privacy settings can silently turn this into an invite.

Params: group_id, participants

GET demo
https://www.api.nawanotify.online///api/group-add?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us&participants=923001111111%2C923002222222
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-add' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us","participants":"923001111111,923002222222"}'
GET · POST /api/group-remove api key

Remove members.

Params: group_id, participants

GET demo
https://www.api.nawanotify.online///api/group-remove?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us&participants=923001111111%2C923002222222
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-remove' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us","participants":"923001111111,923002222222"}'
GET · POST /api/group-promote api key

Make members admins.

Params: group_id, participants

GET demo
https://www.api.nawanotify.online///api/group-promote?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us&participants=923001111111%2C923002222222
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-promote' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us","participants":"923001111111,923002222222"}'
GET · POST /api/group-demote api key

Remove admin rights.

Params: group_id, participants

GET demo
https://www.api.nawanotify.online///api/group-demote?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us&participants=923001111111%2C923002222222
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-demote' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us","participants":"923001111111,923002222222"}'
GET · POST /api/group-subject api key

Rename a group.

Params: group_id, subject

GET demo
https://www.api.nawanotify.online///api/group-subject?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us&subject=New%20Group
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-subject' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us","subject":"New Group"}'
GET · POST /api/group-description api key

Change the group description.

Params: group_id, description

GET demo
https://www.api.nawanotify.online///api/group-description?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us&description=Group%20description
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-description' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us","description":"Group description"}'
GET · POST /api/group-settings api key

setting: announcement (admins only post), not_announcement, locked (admins only edit info), unlocked.

Params: group_id, setting

GET demo
https://www.api.nawanotify.online///api/group-settings?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us&setting=announcement
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-settings' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us","setting":"announcement"}'
GET · POST /api/group-invite-code api key

Get the invite link for a group.

Params: group_id

GET demo
https://www.api.nawanotify.online///api/group-invite-code?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-invite-code' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us"}'
GET · POST /api/group-revoke-invite api key

Invalidate the old invite link and issue a new code.

Params: group_id

GET demo
https://www.api.nawanotify.online///api/group-revoke-invite?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-revoke-invite' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us"}'
GET · POST /api/group-join api key

Join a group with an invite code or full link.

Params: code

GET demo
https://www.api.nawanotify.online///api/group-join?api_key=YOUR_API_KEY&code=https%3A%2F%2Fchat.whatsapp.com%2FABCDEFG
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-join' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","code":"https://chat.whatsapp.com/ABCDEFG"}'
GET · POST /api/group-leave api key

Leave a group.

Params: group_id

GET demo
https://www.api.nawanotify.online///api/group-leave?api_key=YOUR_API_KEY&group_id=1203630000000000%40g.us
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/group-leave' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","group_id":"1203630000000000@g.us"}'

Automation

GET · POST /api/webhook-save api key

Point this account's incoming messages at your own URL.

Params: webhook_url, webhook_enabled

GET demo
https://www.api.nawanotify.online///api/webhook-save?api_key=YOUR_API_KEY&webhook_url=https%3A%2F%2Fyoursite.com%2Fhook&webhook_enabled=true
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/webhook-save' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","webhook_url":"https://yoursite.com/hook","webhook_enabled":"true"}'
GET · POST /api/webhook-test api key

Send a sample payload to this account's webhook URL.

GET demo
https://www.api.nawanotify.online///api/webhook-test?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/webhook-test' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/auto-reply-list api key

This account's keyword rules.

GET demo
https://www.api.nawanotify.online///api/auto-reply-list?api_key=YOUR_API_KEY
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/auto-reply-list' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY"}'
GET · POST /api/auto-reply-save api key

Replace the rule list. rules is an array of {match, mode, reply, enabled}. mode: contains, exact, startswith.

Params: rules, auto_reply_enabled

GET demo
https://www.api.nawanotify.online///api/auto-reply-save?api_key=YOUR_API_KEY&auto_reply_enabled=true
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/auto-reply-save' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","auto_reply_enabled":"true"}'
GET · POST /api/auto-reply-add api key

Append a single keyword rule.

Params: match, reply, mode

GET demo
https://www.api.nawanotify.online///api/auto-reply-add?api_key=YOUR_API_KEY&match=price&reply=Our%20price%20list%20is%20on%20the%20way.&mode=contains
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/auto-reply-add' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","match":"price","reply":"Our price list is on the way.","mode":"contains"}'
GET · POST /api/auto-reply-delete api key

Delete one rule by its position in the list.

Params: index

GET demo
https://www.api.nawanotify.online///api/auto-reply-delete?api_key=YOUR_API_KEY&index=0
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/auto-reply-delete' \
  -H 'Content-Type: application/json' \
  -d '{"api_key":"YOUR_API_KEY","index":"0"}'

Admin

GET · POST /api/admin/accounts master pin

List every account on this gateway. Requires the master PIN.

GET demo
https://www.api.nawanotify.online///api/admin/accounts?master_pin=YOUR_MASTER_PIN
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/admin/accounts' \
  -H 'Content-Type: application/json' \
  -d '{"master_pin":"YOUR_MASTER_PIN"}'
GET · POST /api/admin/delete-account master pin

Permanently remove an account: session, settings, logs, registry entry. Requires the master PIN.

Params: account_id

GET demo
https://www.api.nawanotify.online///api/admin/delete-account?master_pin=YOUR_MASTER_PIN&account_id=your_account_id
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/admin/delete-account' \
  -H 'Content-Type: application/json' \
  -d '{"master_pin":"YOUR_MASTER_PIN","account_id":"your_account_id"}'
GET · POST /api/admin/reset-pin master pin

Reset an account's PIN if they lose it. Requires the master PIN.

Params: account_id, new_pin

GET demo
https://www.api.nawanotify.online///api/admin/reset-pin?master_pin=YOUR_MASTER_PIN&account_id=your_account_id&new_pin=newSecurePin1
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/admin/reset-pin' \
  -H 'Content-Type: application/json' \
  -d '{"master_pin":"YOUR_MASTER_PIN","account_id":"your_account_id","new_pin":"newSecurePin1"}'
GET · POST /api/admin/set-signup-pin master pin

Require a signup PIN before new accounts can register, or clear it to leave signup open. Requires the master PIN.

Params: signup_pin

GET demo
https://www.api.nawanotify.online///api/admin/set-signup-pin?master_pin=YOUR_MASTER_PIN
POST demo
curl -X POST 'https://www.api.nawanotify.online///api/admin/set-signup-pin' \
  -H 'Content-Type: application/json' \
  -d '{"master_pin":"YOUR_MASTER_PIN"}'