Quickstart
Get started with the Contacted API.
QuickStart Guide
This QuickStart guide is designed to assist you in making your first API call. We recommend using our SDKs, however, you may find it more beneficial to go directly to the API reference documentation.
Prefer AI to build everything for you? Visit app.contacted.io/console/agent to have AI agents like Cursor install and configure your entire email system in under 8 minutes.
If you would like to interact with generating emails before making an API call, please visit the developer playground.
This guide will walk you through:
Setting up your developer environment
Installing the Contacted library
Making your first request to the Contacted API
Understanding advanced data parsing
Prerequisites
To complete this guide, you will need:
Branding setup on account
A Contacted API key
Python 3.7+ or TypeScript 4.5+
1. Setup your API key
The first thing you will need is a valid API key. Please visit this link and navigate to "API Keys" on the left nav bar.
2. Install the Contacted library
Node.js
Python
Note: You can also call the underlying API directly (see our API Docs).
3. Making a request
JavaScript
Python
4. Advanced Data Parsing
You can pass any data that should be included in the email through the data object. Our AI intelligently understands context and weaves this information seamlessly into your emails.
Key Features:
✅ Reference data keys in prompts for custom instructions ✅ Include images via URLs ✅ Pass any type of data (numbers, dates, arrays, etc.) ✅ AI automatically understands data types and context
Important: All data values must be strings. Don't worry about types—our AI will understand the meaning.
Basic Data Example
Advanced Data with Custom Instructions
Including Images
Complex Data Structures
Data Types Our AI Understands
Names
"John Doe"
Personal identifiers, greetings
Dates
"2025-07-15" or "July 15th"
Scheduling, deadlines, timestamps
Prices
"29.99" or "$29.99"
Financial information, pricing
URLs
"https://example.com"
Links, buttons, references
Images
"https://cdn.example.com/image.jpg"
Visual content placement
Lists
"Item 1, Item 2, Item 3"
Formatted lists, enumerations
Numbers
"42" or "1,234"
Quantities, metrics, counts
Next Steps
Explore the API Playground to test prompts and see live previews
Set up Branding to ensure emails match your company style
Check out API Reference for complete documentation
Try AI Agent Setup for automated integration
Ready to send more advanced emails? Our AI handles the complexity—you just describe what you need!
Last updated