Sending status text
Method#
/send-text-status#
POST https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/send-text-status
Header#
| Key | Value | 
|---|---|
| Client-Token | ACCOUNT 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#
| Attributes | Type | Description | 
|---|---|---|
| message | String | Text to be sent to status | 
Opcionais#
| Attributes | Type | Description | 
|---|---|---|
Request Body#
URL#
Method
POST https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/send-text-status
Body#
Response#
200#
| Attributes | Type | Description | 
|---|---|---|
| zaapId | string | id on z-api | 
| messageId | string | id on whatsapp | 
Example
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”