POST
/
message
/
sendStatus
/
{instance}
curl --request POST \
  --url https://api.l2msg.com/whatsapp/message/sendStatus/{instance} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "type": "text",
  "content": "<string>",
  "caption": "<string>",
  "backgroundColor": "<string>",
  "font": 123,
  "allContacts": true,
  "statusJidList": [
    "{{remoteJID}}"
  ]
}'
{
  "key": {
    "remoteJid": "status@broadcast",
    "fromMe": true,
    "id": "BAE5FAB9E65A3DA8"
  },
  "message": {
    "extendedTextMessage": {
      "text": "example",
      "backgroundArgb": 4294910617,
      "font": "FB_SCRIPT"
    }
  },
  "messageTimestamp": "1717691767",
  "status": "PENDING",
  "participant": "553198296801:17@s.whatsapp.net"
}

Authorizations

apikey
string
header
required

Your authorization key header

Path Parameters

instance
string
required

Name of the instance

Body

application/json
type
enum<string>
required

status type

Available options:
text,
image,
audio
content
string
required

status type

caption
string
required

Optional for image or video

backgroundColor
string
required

Exemple #008000

font
number
required

1 = SERIF 2 = NORICAN_REGULAR 3 = BRYNDAN_WRITE 4 = BEBASNEUE_REGULAR 5 = OSWALD_HEAVY

allContacts
boolean
required

true to send to all contacts or false to send to statusJidList below

statusJidList
enum<string>[]
required

Numbers to send status

Available options:
{{remoteJID}}

Response

201 - application/json
Created
key
object

The key of the message, which identifies the message in the chat.

message
object

The message content, which may include various types of messages like text, images, etc.

messageTimestamp
string

The timestamp of the message, represented as a string.

status
string

The status of the message, such as sent, received, or pending.

participant
string

The participant in the chat to whom the message was sent.