Skip to content

SendTyping#

Beta version

The functionality is in beta. Features may change and may also work unstably.

The method shows the typing indicator to the contact in an Instagram Direct chat.

The method uses the limits on the number of requests per second.

Request#

To send a notification, you have to execute a request at:

POST
{{apiUrl}}/waInstance{{idInstance}}/sendTyping/{{apiTokenInstance}}

For apiUrl, idInstance and apiTokenInstance request parameters, refer to the Before you start section.

Request parameters#

Parameter Type Mandatory Description
chatId string Yes Chat identifier - the numeric identifier of an account or of a group chat, or a username with the @ prefix

The display duration cannot be set

The method has no parameter for the display time: the indicator fades by itself after a few seconds, as in the Instagram app. To keep it longer, repeat the call.

Request body example#

{
    "chatId": "49547665464"
}

Response#

The response to the request is the 200 code with an empty body.

SendTyping errors#

For a list of errors common to all methods, refer to the Common errors section

HTTP code Error ID Description
400 Bad Request
Validation failed
Validation error

Request examples#

import requests

url = "{{apiUrl}}/waInstance{{idInstance}}/sendTyping/{{apiTokenInstance}}"

payload = {"chatId": "49547665464"}
headers = {'Content-Type': 'application/json'}

response = requests.post(url, json=payload, headers=headers)

print(response.text.encode('utf8'))
curl --location '{{apiUrl}}/waInstance{{idInstance}}/sendTyping/{{apiTokenInstance}}' \
--header 'Content-Type: application/json' \
--data-raw '{"chatId": "49547665464"}'