Skip to main content

Sending image status

Method#

/send-image-status#

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

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Concept#

Method responsible for sending an image to your status, remember that statuses disappear after 24 hours.


Attributes#

Required#

AttributesTypeDescription
imageStringImages link or Base64

Opcionais#

AttributesTypeDescription

Request Body#

URL#

Method

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

Body#

{
"image": "https://www.z-api.io/wp-content/themes/z-api/dist/images/logo.svg"
}
Send base64 image

If you have doubts about how to send a Base64 image, access the "Send Image" message topic, there you will find everything you need to know about sending in this format.


Response#

200#

AttributosTypeDescription
zaapIdstringid on z-api
messageIdstringid on whatsapp

Exemplo

{
"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#


Code#