Send Auth List

Send an interactive WhatsApp list message for authentication. Supports JSON Body, Query, and Headers.

POST
https://api.wawp.net/v2/auth/list/send?access_token=YOUR_TOKEN&instance_id=YOUR_INSTANCE&chatId=201XXXXXXXXX&title=%F0%9F%94%90+Login+Confirmation&item1=Yes%2C+it+is+me&item2=No%2C+Reject&button=Verify+Identity&description=Please+confirm+your+login+attempt.&footer=Wawp+Security

Authentication Required

Login to swap the placeholders with your real Instance ID and Access Token.

Log In
Test /v2/auth/list/send endpoint
POSTGET

No query parameters required

This endpoint doesn't expect data in the URL.

Request Parameters

Configure the parameters required to interact with this endpoint. All query and body arguments are listed below with their details.

Request Body

Sent as a JSON object
string

The instance ID to send from.

Example:
string

Your API access token.

Example:
string

Recipient WhatsApp number.

Example:
string

Main title displayed at the top of the list.

Example:
string

Title for the FIRST option (Approve).

Example:
string

Title for the SECOND option (Reject).

Example:
string

Button text that opens the list.

Example:
string

Sub-text below the title.

Example:
string

Footer text.

Example:

Request Samples

Use these ready-to-go code snippets to integrate our API into your project quickly and efficiently. Choose your preferred language and library.

1const baseUrl = "https://api.wawp.net";
2const endpoint = "/v2/auth/list/send";
3const params = new URLSearchParams({
4 "instance_id": "YOUR_INSTANCE",
5 "access_token": "YOUR_TOKEN"
6}).toString();
7const body = {
8 "chatId": "201XXXXXXXXX",
9 "title": "🔐 Login Confirmation",
10 "item1": "Yes, it is me",
11 "item2": "No, Reject",
12 "button": "Verify Identity",
13 "description": "Please confirm your login attempt.",
14 "footer": "Wawp Security"
15};
16
17fetch(`${baseUrl}${endpoint}${params ? '?' + params : ''}`, {
18 method: "POST",
19 headers: { "Content-Type": "application/json" },
20 body: JSON.stringify(body)
21})
22 .then(async (response) => {
23 if (response.ok) {
24 const data = await response.json();
25 console.log("Success:", data);
26 return data;
27 }
28
29 // Error Handling
30
31
32 const errorText = await response.text();
33 console.error(`Error ${response.status}: ${errorText}`);
34 })
35 .catch((error) => console.error("Network Error:", error));
Interactive Samples
Ln 35, Col 1javascript

Expected Responses

Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.

Command Palette

Search for a command to run...