Skip to main content

Sending status text

Method#

/send-text-status#

POST https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/send-text-status

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Concept#

You can post texts in your status and this method is responsible for that, remember that statuses disappear after 24 hours.


Attributes#

Required#

AttributesTypeDescription
messageStringText to be sent to status

Opcionais#

AttributesTypeDescription

Request Body#

URL#

Method

POST https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/send-text-status

Body#

{
"message": "Your message status"
}

Response#

200#

AttributesTypeDescription
zaapIdstringid on z-api
messageIdstringid on whatsapp

Example

{
"zaapId": "3999984263738042930CD6ECDE9VDWSA",
"messageId": "D241XXXX732339502B68"
}

405#

In this case certify that you are sending the correct specification of the method. This means, verify if you sent a POST or GET as specified at the beginning of this topic.

415#

In case you receive 415 error, make sure to add the “Content-Type” of the object you are sending in the request headers, mostly “application/json”


Code#