curl --request POST \
--url https://api.l2msg.com/whatsapp/instance/create \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"instanceName": "<string>",
"qrcode": true,
"number": "<string>",
"rejectCall": true,
"msgCall": "<string>",
"groupsIgnore": true,
"alwaysOnline": true,
"readMessages": true,
"readStatus": true,
"syncFullHistory": true,
"webhook": {
"url": "<string>",
"byEvents": true,
"base64": true,
"headers": {
"autorization": "<string>",
"Content-Type": "<string>"
},
"events": [
"APPLICATION_STARTUP"
]
}
}
'{
"instance": {
"instanceName": "teste-docs",
"instanceId": "af6c5b7c-ee27-4f94-9ea8-192393746ddd",
"webhook_wa_business": null,
"access_token_wa_business": "",
"status": "created"
},
"hash": {
"apikey": "123456"
},
"settings": {
"reject_call": false,
"msg_call": "",
"groups_ignore": true,
"always_online": false,
"read_messages": false,
"read_status": false,
"sync_full_history": false
}
}curl --request POST \
--url https://api.l2msg.com/whatsapp/instance/create \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"instanceName": "<string>",
"qrcode": true,
"number": "<string>",
"rejectCall": true,
"msgCall": "<string>",
"groupsIgnore": true,
"alwaysOnline": true,
"readMessages": true,
"readStatus": true,
"syncFullHistory": true,
"webhook": {
"url": "<string>",
"byEvents": true,
"base64": true,
"headers": {
"autorization": "<string>",
"Content-Type": "<string>"
},
"events": [
"APPLICATION_STARTUP"
]
}
}
'{
"instance": {
"instanceName": "teste-docs",
"instanceId": "af6c5b7c-ee27-4f94-9ea8-192393746ddd",
"webhook_wa_business": null,
"access_token_wa_business": "",
"status": "created"
},
"hash": {
"apikey": "123456"
},
"settings": {
"reject_call": false,
"msg_call": "",
"groups_ignore": true,
"always_online": false,
"read_messages": false,
"read_status": false,
"sync_full_history": false
}
}Your authorization key header
instance (Instance name)
Create QR Code automatically after creation
559999999999 (Instance owner number with Country Code)
Reject WhatsApp calls automatically
Message to be sent when a call is rejected automatically
Ignore group messages
Keep WhatsApp always online
Send read receipts to received messages
Show sent messages read status
Syncronize full WhatsApp history
Webhook
Show child attributes
The URL of the webhook.
Enable Webhook by events
Sends files in base64 when available
Events to be sent to the Webhook
APPLICATION_STARTUP, QRCODE_UPDATED, MESSAGES_SET, MESSAGES_UPSERT, MESSAGES_UPDATE, MESSAGES_DELETE, SEND_MESSAGE, CONTACTS_SET, CONTACTS_UPSERT, CONTACTS_UPDATE, PRESENCE_UPDATE, CHATS_SET, CHATS_UPSERT, CHATS_UPDATE, CHATS_DELETE, GROUPS_UPSERT, GROUP_UPDATE, GROUP_PARTICIPANTS_UPDATE, CONNECTION_UPDATE, CALL, NEW_JWT_TOKEN, TYPEBOT_START, TYPEBOT_CHANGE_STATUS Created
Show child attributes
The name of the instance
The unique identifier for the instance
The webhook URL for WhatsApp Business integration
The access token for WhatsApp Business
The current status of the instance
Show child attributes
Indicates whether calls are rejected
Message to be sent when a call is rejected
Indicates whether groups are ignored
Indicates whether the instance is always online
Indicates whether messages are marked as read
Indicates whether status updates are marked as read
Indicates whether the full message history is synchronized