Copy
import { WhatsAppClient } from '@kapso/whatsapp-cloud-api';
const client = new WhatsAppClient({
baseUrl: 'https://api.kapso.ai/meta/whatsapp',
kapsoApiKey: process.env.KAPSO_API_KEY!
});
await client.messages.sendContacts({
phoneNumberId: '647015955153740',
to: '15551234567',
contacts: [
{
name: {
formatted_name: 'John Doe',
first_name: 'John',
last_name: 'Doe'
},
phones: [
{
phone: '+15559876543',
type: 'MOBILE'
}
],
emails: [
{
email: 'john.doe@example.com',
type: 'WORK'
}
]
}
]
});

