Documentation
HTTP API Documentation
https://api.waapi.me
Update instance
This request allows you to create a new WaAPI instance with a unique configuration. Use this method to initialize an instance with specific parameters, such as name, hookUrl, and other setup details.
Request
This section provides an example HTTP request for creating a new instance. Ensure the correct URL and necessary parameters are included in the request body.
POSThttps://api.waapi.me/instance
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 | Default | Type | Description |
---|---|---|---|---|
name | no | Will be generated | string | Instance(bot) name |
hookUrl | no | null | string|url | Webhook URL |
messageHook | no | false | boolean | Send outgoing messages to webhook url flag |
messageBotHook | no | false | boolean | Send incoming messages to webhook url flag |
instanceHook | no | false | boolean | Send instance(bot) changes to webhook url flag |
Response
Here, you’ll find an example JSON response and a detailed table that describes each field. The JSON response confirms the successful creation of the bot instance and includes key details, like the instance ID and initial configuration settings. Refer to the table to understand each field’s meaning and format.
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 |