Skip to main content
GET
/
api
/
{session}
/
status
/
new-message-id
Generate message ID that you can use for batch contacts
curl --request GET \
  --url https://{host}/api/{session}/status/new-message-id \
  --header 'apikey: <api-key>'
{
    "messageId": "3EB0796F91D8B2A4E053AC100F0A4D1E"
}

Description

This endpoint generates a unique message ID that can be used to group contacts when sending status (stories) on WhatsApp. The generated ID allows you to send the same status to different groups of contacts in an organized way.

URL Parameters

session
string
required
Unique authenticated session ID

Response

messageId
string
required
Unique message ID generated for grouping contacts
{
    "messageId": "3EB0796F91D8B2A4E053AC100F0A4D1E"
}

Status Codes

  • 200 - Message ID generated successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized

Usage Example

curl -X GET https://api.wappfy.com.br/api/my-session/status/new-message-id

Notes

  • The generated message ID can be reused to send the same status to multiple groups of contacts
  • Status are temporary content (Stories) on WhatsApp that disappear after 24 hours
  • Use this ID in conjunction with the status send endpoints to organize your publications

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

session
string
required

Session name (instanceName)

Response

200 - application/json
id
string
required

Pre-generated message id

Example:

"BBBBBBBBBBBBBBBBB"

I