Sync Messages to Karzoun Chat
Developing
POST
https://test.your-api-server.comhttps://api.karzoun.app/incoming.php
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.karzoun.app/incoming.php?id=ACCOUNT_ID&access_token=ACCESS_TOKEN&instance_id=INBOX_ID' \
--header 'Content-Type: application/json' \
--data-raw '{
"event_type": "message_create",
"data": {
"from": "private",
"to": "{PHONE_NUMBER}@c.us",
"pushname": "private",
"type": "chat",
"body": "MESSAGE OR TEMPLATE NAME",
"media": "",
"fromMe": true,
"quotedMsg": {},
"mentionedIds": []
}
}'
Response Response Example
{}
Request
Query Params
id
string
optional
Example:
ACCOUNT_ID
access_token
string
optional
Example:
ACCESS_TOKEN
instance_id
string
optional
Example:
INBOX_ID
Body Params application/json
Responses
Modified at 2024-08-29 12:59:36