Set account settings
POST
/waInstance{{idInstance}}/setSettings/{{apiTokenInstance}}Documentation SetSettings
Request
Body Params application/json
webhookUrl
string
required
webhookUrlToken
string
required
delaySendMessagesMilliseconds
integer
required
markIncomingMessagesReaded
string
required
markIncomingMessagesReadedOnReply
string
required
outgoingWebhook
string
required
outgoingMessageWebhook
string
required
outgoingAPIMessageWebhook
string
required
incomingWebhook
string
required
stateWebhook
string
required
keepOnlineStatus
string
required
pollMessageWebhook
string
required
incomingCallWebhook
string
required
Example
{
"webhookUrl": "https://mysite.com/webhook/green-api/",
"webhookUrlToken": "",
"delaySendMessagesMilliseconds": 3000,
"markIncomingMessagesReaded": "no",
"markIncomingMessagesReadedOnReply": "no",
"outgoingWebhook": "yes",
"outgoingMessageWebhook": "yes",
"outgoingAPIMessageWebhook": "yes",
"incomingWebhook": "yes",
"stateWebhook": "yes",
"keepOnlineStatus": "no",
"pollMessageWebhook": "yes",
"incomingCallWebhook": "yes"
}
Request samples
Responses
setSettings(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
saveSettings
boolean
required
ExamplesetSettings
{
"saveSettings": true
}
Last modified: 18 days ago