GetSettings#
Beta version
The functionality is in beta. Features may change and may also work unstably.
The method returns the current settings of an instance.
The settings are changed by the SetSettings method.
The method uses the limits on the number of requests per second.
Request#
To get the instance settings, you have to execute a request at:
GET
{{apiUrl}}/waInstance{{idInstance}}/getSettings/{{apiTokenInstance}}
For apiUrl, idInstance and apiTokenInstance request parameters, refer to the Before you start section.
Response#
Response parameters#
| Field | Type | Description |
|---|---|---|
wid | string | The numeric identifier of the instance account. Empty string for a non-authorized instance |
typeInstance | string | The messenger type. Here it is always instagram |
webhookUrl | string | The address to send webhooks to. An empty string means webhooks are not sent |
webhookUrlToken | string | The access token for authorization on your webhook server |
delaySendMessagesMilliseconds | integer | The messages sending delay in milliseconds: from 500 to 60000 |
markIncomingMessagesReaded | string | Mark incoming messages as read: yes / no |
markIncomingMessagesReadedOnReply | string | Mark incoming messages as read when sending a message via the API: yes / no |
outgoingWebhook | string | Receive notifications about the statuses of sent messages: yes / no |
outgoingMessageWebhook | string | Receive notifications about messages sent not via the API: yes / no |
outgoingAPIMessageWebhook | string | Receive notifications about messages sent via the API: yes / no |
outgoingCommentWebhook | string | Receive notifications about comments left not via the API: yes / no |
outgoingAPICommentWebhook | string | Receive notifications about comments sent via the API: yes / no |
outgoingCommentStatusWebhook | string | Receive notifications about the statuses of sending, editing, deleting and liking comments via the API (outgoingCommentStatus, editCommentStatus, deleteCommentStatus, likedCommentStatus): yes / no. The failed status always arrives |
outgoingAPIPostWebhook | string | Receive notifications about posts created via the API: yes / no |
outgoingPostStatusWebhook | string | Receive notifications about the statuses of creating, editing and deleting posts via the API (outgoingPostStatus, editPostStatus, deletePostStatus): yes / no. The failed status always arrives |
incomingWebhook | string | Receive notifications about incoming messages: yes / no |
incomingCommentWebhook | string | Receive notifications about incoming comments: yes / no |
incomingLikeWebhook | string | Receive notifications about likes on posts, Reels and comments of the account: yes / no |
incomingMessageStatusWebhook | string | Receive notifications about incoming messages being read: yes / no |
stateWebhook | string | Receive notifications about the instance state change: yes / no |
editedMessageWebhook | string | Receive notifications about edited messages: yes / no |
deletedMessageWebhook | string | Receive notifications about deleted messages: yes / no |
pollMessageWebhook | string | Receive notifications about polls and votes in them: yes / no |
Response body example#
{
"wid": "74857974059",
"typeInstance": "instagram",
"webhookUrl": "",
"webhookUrlToken": "",
"delaySendMessagesMilliseconds": 500,
"markIncomingMessagesReaded": "yes",
"markIncomingMessagesReadedOnReply": "yes",
"outgoingWebhook": "yes",
"outgoingMessageWebhook": "yes",
"outgoingAPIMessageWebhook": "yes",
"outgoingCommentWebhook": "yes",
"outgoingAPICommentWebhook": "yes",
"outgoingCommentStatusWebhook": "yes",
"outgoingAPIPostWebhook": "yes",
"outgoingPostStatusWebhook": "yes",
"incomingWebhook": "yes",
"incomingCommentWebhook": "yes",
"incomingLikeWebhook": "yes",
"incomingMessageStatusWebhook": "no",
"stateWebhook": "yes",
"editedMessageWebhook": "yes",
"deletedMessageWebhook": "yes",
"pollMessageWebhook": "no"
}
GetSettings errors#
For a list of errors common to all methods, refer to the Common errors section
Request examples#
import requests
url = "{{apiUrl}}/waInstance{{idInstance}}/getSettings/{{apiTokenInstance}}"
response = requests.get(url)
print(response.text.encode('utf8'))
curl --location '{{apiUrl}}/waInstance{{idInstance}}/getSettings/{{apiTokenInstance}}'