Documentation
HTTP API Documentation
https://api.waapi.me
Create instance
This request allows you to update an existing WaAPI instance with new configuration settings. Use this method to modify parameters such as instance name, hookUrl, or any other settings as needed.
Request
This section provides an example HTTP request for updating an instance. Make sure to specify the correct URL along with the instance ID, and include any fields in the request body that you wish to update.
PATCHhttps://api.waapi.me/instance/:id
Headers
When making this request, it`s important to include Authorization HTTP header
Authorization: <YOUR_API_KEY>
Body
Here, you’ll find an example JSON request data and a detailed table that describes each field.
Field | Required | Type | Description |
---|---|---|---|
name | no | string | Instance(bot) name |
hookUrl | no | string|url | Webhook URL |
messageHook | no | boolean | Send outgoing messages to webhook url flag |
messageBotHook | no | boolean | Send incoming messages to webhook url flag |
instanceHook | no | boolean | Send instance(bot) changes to webhook url flag |
Response
Here, you’ll find an example JSON response confirming the successful update, along with a detailed table describing each field. The response contains information about the updated instance, such as the modified settings or status. Refer to the table for the meaning and format of each field.
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 |