Documentation
HTTP API Documentation
https://api.waapi.me
Instance disconnect
This request completely stops a WaAPI instance, bringing its status to stopped. If the instance was connected to WhatsApp, it will be disconnected as well. Use this method when you need to stop the instance`s operation or disconnect it from WhatsApp.
Request
This section provides an example HTTP request to stop the instance and disconnect it from WhatsApp. Ensure the request includes the correct URL and the instance ID for the instance you wish to disconnect and stop.
POSThttps://api.waapi.me/instance/:id/disconnect
Headers
When making this request, it`s important to include Authorization HTTP header
Authorization: <YOUR_API_KEY>
Response
The response contains a JSON example confirming that the bot instance has been stopped. It includes the instance ID and status, showing that the bot has been successfully disconnected from WhatsApp and is now in a stopped state. Refer to the table for a description of each field in the response, explaining the status and other relevant details.
Field | Type | Description |
---|---|---|
id | string|uuid | Instance(bot) id |
name | string | Instance(bot) name |
phone | string | Connected phone number |
platform | string|enum | Connected phone platform |
status | string|enum | Instance(bot) status |
hookUrl | string|url|null | Webhook URL |
messageHook | boolean | Send outgoing messages to webhook url flag |
messageBotHook | boolean | Send incoming messages to webhook url flag |
instanceHook | boolean | Send instance(bot) changes to webhook url flag |