Status Client API
Generated client method reference for the status namespace.
This page documents 6 schema-registry client methods in the status namespace.
deleteAllStatus
Delete all statuses
Signature client.deleteAllStatus(): Promise<boolean>
Usage
import { SocketClient } from '@open-wa/socket-client';
const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.deleteAllStatus();Parameters
This method does not define input parameters.
Returns
| Prop | Value |
|---|---|
| Return type | Promise<boolean> |
Resolves to boolean. A rejected Promise indicates input validation or dispatch failure.
This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.
Advanced method metadata
Overview
| Prop | Value |
|---|---|
| Namespace | status |
| Action | delete |
| Functionality | both |
| Positional parameter order | - |
| Aliases | deleteAllStatuses, status.deleteAll |
| Deprecated aliases | - |
| License | insiders |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | DELETE | /api/status/deleteAll | deleteAllStatus | Active |
| Alias | DELETE | /api/deleteAllStatus | deleteAllStatus | Active |
| Alias | DELETE | /api/deleteAllStatuses | deleteAllStatuses | Active |
deleteStatus
Delete status
Signature client.deleteStatus(statusesToDelete: string \| string[]): Promise<boolean>
Usage
import { SocketClient } from '@open-wa/socket-client';
const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.deleteStatus({
statusesToDelete: [],
});Parameters
Prop
Type
Returns
| Prop | Value |
|---|---|
| Return type | Promise<boolean> |
Resolves to boolean. A rejected Promise indicates input validation or dispatch failure.
This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.
Advanced method metadata
Overview
| Prop | Value |
|---|---|
| Namespace | status |
| Action | delete |
| Functionality | both |
| Positional parameter order | statusesToDelete |
| Aliases | status.delete |
| Deprecated aliases | - |
| License | insiders |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | DELETE | /api/status/delete | deleteStatus | Active |
| Alias | DELETE | /api/deleteStatus | deleteStatus | Active |
getStories
Get all stories
Signature client.getStories(): Promise<Story[]>
Usage
import { SocketClient } from '@open-wa/socket-client';
const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.getStories();Parameters
This method does not define input parameters.
Returns
| Prop | Value |
|---|---|
| Return type | Promise<Story[]> |
| Story | View fields |
Resolves to Story[]. A rejected Promise indicates input validation or dispatch failure.
This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API. Message-shaped status entry, based on the legacy story API. Chat and sender may be absent or null. The licensed getStories payload has not been verified against this model.
Advanced method metadata
Overview
| Prop | Value |
|---|---|
| Namespace | status |
| Action | read |
| Functionality | both |
| Positional parameter order | - |
| Aliases | getStatuses, status.get, status.getAll, status.getStories |
| Deprecated aliases | - |
| License | insiders |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | GET | /api/status/getAll | getStories | Active |
| Alias | GET | /api/getStatuses | getStatuses | Active |
| Alias | GET | /api/getStories | getStories | Active |
| Alias | GET | /api/status/get | status.get | Active |
| Alias | GET | /api/status/getStories | status.getStories | Active |
postImageStatus
Post image status
Signature client.postImageStatus(image: string, caption?: string): Promise<MessageId \| string \| boolean>
Usage
import { SocketClient } from '@open-wa/socket-client';
const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.postImageStatus({
image: "image",
});Parameters
Prop
Type
Returns
| Prop | Value |
|---|---|
| Return type | Promise<MessageId | string | boolean> |
| MessageId | View fields |
Resolves to MessageId \| string \| boolean. A rejected Promise indicates input validation or dispatch failure.
This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.
Advanced method metadata
Overview
| Prop | Value |
|---|---|
| Namespace | status |
| Action | send |
| Functionality | both |
| Positional parameter order | image, caption |
| Aliases | status.postImage |
| Deprecated aliases | - |
| License | insiders |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | POST | /api/status/postImage | postImageStatus | Active |
| Alias | POST | /api/postImageStatus | postImageStatus | Active |
postTextStatus
Post text status
Signature client.postTextStatus(text: string, backgroundColor?: string, font?: number): Promise<MessageId \| string \| boolean>
Usage
import { SocketClient } from '@open-wa/socket-client';
const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.postTextStatus({
text: "text",
});Parameters
Prop
Type
Returns
| Prop | Value |
|---|---|
| Return type | Promise<MessageId | string | boolean> |
| MessageId | View fields |
Resolves to MessageId \| string \| boolean. A rejected Promise indicates input validation or dispatch failure.
This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.
Advanced method metadata
Overview
| Prop | Value |
|---|---|
| Namespace | status |
| Action | send |
| Functionality | both |
| Positional parameter order | text, backgroundColor, font |
| Aliases | status.postText |
| Deprecated aliases | - |
| License | insiders |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | POST | /api/status/postText | postTextStatus | Active |
| Alias | POST | /api/postTextStatus | postTextStatus | Active |
postVideoStatus
Post video status
Signature client.postVideoStatus(video: string, caption?: string): Promise<MessageId \| string \| boolean>
Usage
import { SocketClient } from '@open-wa/socket-client';
const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.postVideoStatus({
video: "video",
});Parameters
Prop
Type
Returns
| Prop | Value |
|---|---|
| Return type | Promise<MessageId | string | boolean> |
| MessageId | View fields |
Resolves to MessageId \| string \| boolean. A rejected Promise indicates input validation or dispatch failure.
This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.
Advanced method metadata
Overview
| Prop | Value |
|---|---|
| Namespace | status |
| Action | send |
| Functionality | both |
| Positional parameter order | video, caption |
| Aliases | status.postVideo |
| Deprecated aliases | - |
| License | insiders |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | POST | /api/status/postVideo | postVideoStatus | Active |
| Alias | POST | /api/postVideoStatus | postVideoStatus | Active |
Was this helpful?
Your answer includes the page path and docs version.
