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
Created
The response is of type object
.