Configura webhook pelo alias legado
Configura webhook pelo alias legado
Deprecated
Autenticação
InstanceBearerobrigatório
JWT HS256 da própria instância.
- Header
Authorization- Exemplo
Bearer <INSTANCE_TOKEN>
Parâmetros
instanceNamepathobrigatóriostring
Nome público da instância na rota legada ou no segundo segmento de logout
minLength 1
Request body
obrigatóriobodyobjectExemplo: {"url":"https://example.com/webhooks/codechat","enabled":true,"events":{"messagesUpsert":true,"connectionUpdated":true}}
bodyobjecturlstringobrigatórioformat: uri · maxLength: 500 · pattern: ^https?://enabledbooleanpadrão: trueeventsobject
eventsobjectcallUpsertbooleanchatsDeletedbooleanchatsUpdatedbooleanconnectionUpdatedbooleancontactsUpdatedbooleancontactsUpsertbooleangroupsParticipantsUpdatedbooleangroupsUpdatedbooleangroupsUpsertbooleanhistorySyncbooleanidentityUpdatedbooleanlabelsAssociationbooleanlabelsEditbooleanmediaRetrybooleanmessagesDeletedbooleanmessagesStarredbooleanmessagesUndecryptablebooleanmessagesUpdatedbooleanmessagesUpsertbooleannewsLetterbooleanpresenceUpdatedbooleanprofilePictureUpdatedbooleanqrcodeUpdatedbooleansendMessagebooleansettingsUpdatedbooleanstatusInstancebooleanuserAboutUpdatedboolean{"url": "https://example.com/webhooks/codechat","enabled": true,"events": {"messagesUpsert": true,"connectionUpdated": true}}
Respostas
application/json200
Webhook configurado
response 200object
response 200objectidintegerobrigatóriourlstringobrigatórioformat: urienabledbooleanobrigatórioeventsobjectobrigatório
eventsobjectobrigatóriocallUpsertbooleanchatsDeletedbooleanchatsUpdatedbooleanconnectionUpdatedbooleancontactsUpdatedbooleancontactsUpsertbooleangroupsParticipantsUpdatedbooleangroupsUpdatedbooleangroupsUpsertbooleanhistorySyncbooleanidentityUpdatedbooleanlabelsAssociationbooleanlabelsEditbooleanmediaRetrybooleanmessagesDeletedbooleanmessagesStarredbooleanmessagesUndecryptablebooleanmessagesUpdatedbooleanmessagesUpsertbooleannewsLetterbooleanpresenceUpdatedbooleanprofilePictureUpdatedbooleanqrcodeUpdatedbooleansendMessagebooleansettingsUpdatedbooleanstatusInstancebooleanuserAboutUpdatedbooleancreatedAtstring | nullobrigatórioformat: date-timeupdatedAtstringobrigatórioformat: date-timeinstanceIdintegerobrigatório{"id": 1,"url": "https://api.example.com/webhooks/codechat","enabled": true,"events": {"callUpsert": true,"chatsDeleted": true,"chatsUpdated": true,"connectionUpdated": true,"contactsUpdated": true,"contactsUpsert": true,"groupsParticipantsUpdated": true,"groupsUpdated": true,"groupsUpsert": true,"historySync": true,"identityUpdated": true,"labelsAssociation": true,"labelsEdit": true,"mediaRetry": true,"messagesDeleted": true,"messagesStarred": true,"messagesUndecryptable": true,"messagesUpdated": true,"messagesUpsert": true,"newsLetter": true,"presenceUpdated": true,"profilePictureUpdated": true,"qrcodeUpdated": true,"sendMessage": true,"settingsUpdated": true,"statusInstance": true,"userAboutUpdated": true},"createdAt": "2026-07-13T15:10:00Z","updatedAt": "2026-07-13T15:10:00Z","instanceId": 1}
