Documentation

HTTP API Documentation


https://api.waapi.me

Delete instance


This request allows you to delete an existing WaAPI instance. Use this method to permanently remove a bot and its associated data from the system.


Request


This section provides an example HTTP request for deleting a bot instance. Ensure that you include the correct URL and instance ID so that the intended instance is deleted.


DELETEhttps://api.waapi.me/instance/:id

Headers


When making this request, it`s important to include Authorization HTTP header


Authorization: <YOUR_API_KEY>

Response


In the response, you’ll find a JSON example confirming the deletion of the instance. The response includes the instance ID of the deleted bot, verifying that the correct instance was removed. Refer to the table for a description of each field in the response to understand its structure and content.


Field
Type
Description
idstring|uuidInstance(bot) id
namestringInstance(bot) name
phonestringConnected phone number
platformstring|enumConnected phone platform
statusstring|enumInstance(bot) status
hookUrlstring|url|nullWebhook URL
messageHookbooleanSend outgoing messages to webhook url flag
messageBotHookbooleanSend incoming messages to webhook url flag
instanceHookbooleanSend instance(bot) changes to webhook url flag

{
    "id": "c3996092-b982-4af7-8cf1-0cfafea5143c",
    "name": "Darth Maul bot",
    "phone": null,
    "platform": "unknown",
    "status": "created",
    "hookUrl": null,
    "messageHook": false,
    "messageBotHook": false,
    "instanceHook": false
}