API Documentation
Integrate AI-powered voter intelligence directly into your campaign tools and workflows with our comprehensive API.
// Initialize the Persuadables.AI SDK
import { PersuadablesAI } from '@persuadables/sdk';
const client = new PersuadablesAI({
apiKey: process.env.PERSUADABLES_API_KEY,
environment: 'production'
});
// Analyze voter persuadability
const analysis = await client.voters.analyze({
district: 'CA-07',
demographics: {
age_range: '25-45',
party_affiliation: 'independent'
}
});
console.log(analysis.persuadability_score);
// Output: 0.73 (73% persuadable)
console.log(analysis.top_issues);
// Output: ['healthcare', 'economy', 'education']
API Endpoints
/api/v1/voters/analyze
Analyze voter persuadability scores for a given demographic
Parameters
district
age_range
party_affiliation
Response
Persuadability scores, issue priorities, recommended messaging
/api/v1/campaigns/optimize
Optimize campaign messaging based on real-time voter feedback
Parameters
campaign_id
message_variants
target_demographics
Response
Optimized message recommendations, A/B test results
/api/v1/issues/trending
Get trending issues and sentiment analysis for a specific region
Parameters
region
timeframe
demographic_filters
Response
Issue rankings, sentiment scores, trend analysis
/api/v1/outreach/personalize
Generate personalized voter outreach content
Parameters
voter_profile
issue_priorities
communication_channel
Response
Personalized messaging, optimal timing, channel recommendations
All API requests require authentication using your API key. Include your key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Ready to Integrate?
Get started with our API and bring AI-powered voter intelligence to your campaign tools.