Refer Chat object to find more details aboutDocumentation Index
Fetch the complete documentation index at: https://docs.periskope.app/llms.txt
Use this file to discover all available pages before exploring further.
chat object.
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
client.on('chat.created', (data) => {
console.log(data);
});
The chat.created webhook is triggered when a new group or individual chat is created on whatsapp.
Refer Chat object to find more details aboutDocumentation Index
Fetch the complete documentation index at: https://docs.periskope.app/llms.txt
Use this file to discover all available pages before exploring further.
chat object.
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
client.on('chat.created', (data) => {
console.log(data);
});
{
"event": "<event-type>",
"data": "<event-data>", // complete data object as mentioned in Objects section
"org_id": "<your-organisation-id>",
"timestamp": "<timestamp>" // timestamp of the event creation
}
Was this page helpful?