Deleting data
DELETE/api/v2/instance/:instanceId/socket
Deleting data
Request
Path Parameters
ID of the instance.
Responses
- 201
- 400
- 401
ResponseSocket
- application/json
- Schema
- Example (from schema)
Schema
SocketEvents object
Default value: true
Enables sending the qr code.
Default value: false
Enables sending instance State.
Default value: false
Enables batch sending of old messages.
Default value: true
Enables sending of all new incoming messages.
Default value: true
Enables sending all updates to the incoming or outgoing message.
Default value: true
Enables the sending of all messages sent by the API.
Default value: false
Enables sending the initial batch of loaded contacts.
Default value: false
Enables sending a new contact with additional information.
Default value: false
Enable update notification for each contact in the conversation.
Default value: true
Enables notification of contact behavior in chat.
Default value: false
Enables sending all loaded chats.
Default value: false
Enable notification of each chat update in the conversation.
Default value: false
Enable notification of every new chat started.
Default value: false
Enable notification when a chat is deleted.
Default value: false
Enable notification when a group is created.
Default value: false
c
Default value: false
Enable notification when a member of a group is updated.
Default value: true
Enable notification when connection status changes.
Default value: false
{
  "socketId": "string",
  "enabled": true,
  "SocketEvents": {
    "qrcodeUpdate": true,
    "stateInstance": false,
    "messagesSet": false,
    "messagesUpsert": true,
    "messagesUpdate": true,
    "sendMessage": true,
    "contactsSet": false,
    "contactsUpsert": false,
    "contactsUpdate": false,
    "presenceUpdate": true,
    "chatsSet": false,
    "chatsUpdate": false,
    "chatsUpsert": false,
    "groupsUpsert": false,
    "groupUpdate": false,
    "groupParticipantsUpdate": false,
    "connectionUpdate": true,
    "callUpsert": false
  },
  "createdAt": "2025-06-12T13:21:07.134Z",
  "updatedAt": "2025-06-12T13:21:07.134Z",
  "deletedAt": "2025-06-12T13:21:07.134Z",
  "instanceInstanceId": "string"
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
  "message": [
    "string"
  ],
  "error": "string",
  "statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
  "message": [
    "string"
  ],
  "error": "string",
  "statusCode": 0
}