Text status

Post a text-based status (story) to WhatsApp.

POST
https://api.wawp.net/v2/status/text?instance_id=123456789&access_token=YOUR_ACCESS_TOKEN&text=Have+a+look%21+https%3A%2F%2Fgithub.com%2F&backgroundColor=%2338b42f&font=0&linkPreview=true&linkPreviewHighQuality=false&contacts=null

Authentication Required

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

Log In
Test /v2/status/text endpoint
POST
POST

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

WhatsApp Instance ID

Example:
string

API Access Token

Example:
string

Text content for the status

Example:
string

Background color in #RRGGBB format

Example:
number

Font ID (0-5 mostly)

Example:
boolean

Enable link preview

Example:
boolean

High quality link preview

Example:
string

Optional contacts to mention or target

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/status/text";
3const params = new URLSearchParams({
4 "instance_id": "123456789",
5 "access_token": "YOUR_ACCESS_TOKEN"
6}).toString();
7const body = {
8 "text": "Have a look! https://github.com/",
9 "backgroundColor": "#38b42f",
10 "font": "0",
11 "linkPreview": "true",
12 "linkPreviewHighQuality": "false",
13 "contacts": "null"
14};
15
16fetch(`${baseUrl}${endpoint}${params ? '?' + params : ''}`, {
17 method: "POST",
18 headers: { "Content-Type": "application/json" },
19 body: JSON.stringify(body)
20})
21 .then(async (response) => {
22 if (response.ok) {
23 const data = await response.json();
24 console.log("Success:", data);
25 return data;
26 }
27
28 // Error Handling
29 if (response.status === 400) {
30 console.error("Error 400: Bad Request - Missing Required Parameter(s)");
31 }
32 if (response.status === 400) {
33 console.error("Error 400: Bad Request (XML Format)");
34 }
35 if (response.status === 400) {
36 console.error("Error 400: Bad Request (Plain Text)");
37 }
38 if (response.status === 401) {
39 console.error("Error 401: Unauthorized - Invalid or Missing Access Token");
40 }
41 if (response.status === 401) {
42 console.error("Error 401: Unauthorized (XML Format)");
43 }
44 if (response.status === 404) {
45 console.error("Error 404: Not Found - Session Does Not Exist");
46 }
47 if (response.status === 404) {
48 console.error("Error 404: Not Found (XML Format)");
49 }
50 if (response.status === 500) {
51 console.error("Error 500: Internal Server Error - Unexpected Failure");
52 }
53 if (response.status === 500) {
54 console.error("Error 500: Internal Server Error (HTML)");
55 }
56 if (response.status === 502) {
57 console.error("Error 502: Bad Gateway - Connection Failed to Upstream");
58 }
59 if (response.status === 502) {
60 console.error("Error 502: Bad Gateway (XML Format)");
61 }
62
63 const errorText = await response.text();
64 console.error(`Error ${response.status}: ${errorText}`);
65 })
66 .catch((error) => console.error("Network Error:", error));
Interactive Samples
Ln 66, 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.

Success - Request completed successfully
Type:
application/json
boolean *
string *

Example

{
"success": true,
"message": "Operation completed successfully"
}
Bad Request - Missing Required Parameter(s)
Unauthorized - Invalid or Missing Access Token
Not Found - Session Does Not Exist
Internal Server Error - Unexpected Failure
Bad Gateway - Connection Failed to Upstream
Previous TopicWhatsApp Status (Stories)
Next TopicImage status

Command Palette

Search for a command to run...