Quick Start

Learn how to get your ChatPulse API key and send your first transactional message in under 5 minutes.


1

Obtain your API Key

To authenticate with the ChatPulse API, you need an API key. You can generate one in your developer dashboard.

Keep your API key secure. Do not commit it to version control or expose it in client-side code. Use environment variables.
2

Install the SDK

We provide official SDKs for Node.js/TypeScript and Go. For this guide, we'll use the Node.js SDK.

Terminal
npm install chatpulse
3

Send your first message

Now you can use the SDK to send a transactional email or WhatsApp message.

index.ts
import { ChatPulse } from 'chatpulse';// Initialize with your API keyconst cp = new ChatPulse(process.env.CHATPULSE_API_KEY);async function main() {  await cp.emails.send({    from: 'hello@yourdomain.com',    to: ['user@example.com'],    subject: 'Welcome aboard!',    html: '<strong>It works!</strong>'  });}main();

Next Steps