Before proceeding, ensure you have obtained a phone number and API key as described in the prerequisites.
Install the Pinnacle TypeScript SDK, dotenv, and TypeScript type definitions:
This guide uses version rcs-js>=2.0.3. It’s compatible with the following
runtimes: Node.js 18+, Vercel, Cloudflare Workers, Deno v1.25+, Bun 1.0+, and
React Native.
Create an .env file in your project root and add your Pinnacle API key and RCS agent ID:
Create a new TypeScript file (e.g., index.ts) and add the following code to the right.
Quick replies are optional. For sending media urls, you can also use storage on the dashboard under System > Storage or via our API
Run the script:
If successful, you should receive 2 texts to your device (a basic text with quick replies and a card with quick replies). You can see more properties for RCS messages in the API reference.