Overview
Method used to create an instance linked to your account.
You don’t necessarily need to subscribe now; you have 2 days for trial use. After 2 days without subscription, the instance is automatically deleted.
To use Partner endpoints, provide the Partner Token in the Authorization field using the following format: Bearer <Partner-Token>It is not necessary to send the Client-Token in these requests.
Attributes
Required
Optional
Session name on connected devices
Webhook URL for sent messages
Webhook URL for received messages
receivedAndDeliveryCallbackUrl
Webhook URL for received and sent messages
Webhook URL for chat presence status
Webhook URL for disconnection
Webhook URL for connection
Webhook URL for message status
Automatically reject calls
Message when rejecting a call
Automatic message reading
Mobile instance (true) or web (false)
WhatsApp Business version
disableEnqueueWhenDisconnected
Enable/disable queue when disconnected
Request Body
{
"name": "My instance"
}
Response
200
{
"id": "instanceId",
"token": "instanceToken",
"due": 1648565999675
}
405
Make sure you are correctly sending the method specification, that is, verify that you sent POST or GET as specified at the beginning of this topic.
415
If you receive a 415 error, make sure to add the “Content-Type” header to your request, which in most cases is “application/json”.