Documentation
HTTP API Documentation
https://api.waapi.meInstance connect
This request initiates a 3-minute session for a WaAPI instance, during which QR codes can be generated for the bot`s connection. Use this method to start the connection process and retrieve QR codes as needed.
Request
This section provides an example HTTP request to start a 3-minute session for the specified bot instance. Ensure that the request includes the correct URL and instance ID so that the session begins for the intended instance.
POSThttps://api.waapi.me/instance/:id/connectHeaders
When making this request, it`s important to include Authorization HTTP header
Authorization: <YOUR_API_KEY>Response
The response contains a JSON example confirming the session start, along with the instance ID. During this 3-minute period, QR codes can be generated for the bot`s connection setup. Refer to the table for a detailed description of each field in the response.
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 |