Skip to main content

Set WhatsApp Status

This endpoint will let you set the text status of your WhatsApp account to the provided value.

Parameters

These parameters should be sent as JSON payload in the request body.

FieldDescriptionExample values
statusThe value of the statusMy cool new status

Invocation

Make a POST request to https://api.p.2chat.io/open/whatsapp/set-status/<number> where <number> is the phone number that you have connected to 2Chat.

curl --location --request POST 'https://api.p.2chat.io/open/whatsapp/set-status/+595981048478' \
--header 'X-User-API-Key: your_api_key_here' \
--header 'Content-Type: application/json' \
--data-raw '{
"status": "My cool new status"
}'

Response

The API will return whether it succeded or not to queue the request for processing

{
"success": true,
"batched": true
}