Decision Intelligence API
Build place-aware applications with authentication, analytics, AI insights, and urban intelligence endpoints — documented with clear examples and token pricing.
Getting Started
Authenticate once, then call any endpoint relative to the base URL.
1. Authentication
All API requests require authentication using API keys. Get your key from your dashboard.
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
https://api.characterdeveloper.com/v1/analytics2. Base URL
All API endpoints are relative to the base URL:
https://api.characterdeveloper.com/v1/All responses are in JSON format with proper HTTP status codes.
Pricing & Tokenization
Token-based pricing — each request consumes tokens by complexity and resource usage.
Token-Based Pricing
Our API uses a token-based pricing model. Each request consumes tokens based on complexity and resource usage.
Starter
- Basic analytics endpoints
- Community insights
- Standard support
Professional
- All analytics endpoints
- AI-powered insights
- Priority support
Enterprise
- All endpoints
- Custom integrations
- Dedicated support
API Endpoints
Sample endpoints for analytics, insights, and AR experiences.
Analytics
/analytics/communityGet community engagement metrics and participation data.
{
"engagement_rate": 0.68,
"active_users": 234,
"participation_score": 8.2
}/analytics/projectsRetrieve project performance and completion metrics.
{
"total_projects": 47,
"completion_rate": 0.73,
"average_satisfaction": 4.2
}Insights
/ai/sentiment-analysisAnalyze sentiment of community feedback and proposals.
// Request
{
"text": "The new bike lane proposal looks great!"
}
// Response
{
"sentiment": "positive",
"confidence": 0.89,
"score": 0.72
}/ai/predictionsGet AI-powered predictions for project success and community impact.
{
"success_probability": 0.78,
"impact_score": 8.4,
"confidence_interval": [0.65, 0.91]
}AR Experiences
/ar/experiencesList available AR experiences for community engagement.
{
"experiences": [
{
"id": "garden-guide",
"title": "Community Garden Plant Guide",
"participants": 23
}
]
}Rate Limits & Requirements
Rate Limits
- Starter: 1,000 requests/hour
- Professional: 10,000 requests/hour
- Enterprise: Unlimited
Rate limits reset every hour. Exceeded limits return HTTP 429.
Requirements
- Valid API key in Authorization header
- Content-Type: application/json for POST requests
- HTTPS required for all requests
- User-Agent header recommended
Error Handling
Conventional HTTP status codes with detailed error payloads for debugging.
Common Status Codes
200Success400Bad Request401Unauthorized403Forbidden404Not Found429Rate Limited500Server Error
Error Response Format
{
"error": {
"code": "invalid_request",
"message": "Missing required parameter",
"details": "The 'text' field is required"
}
}SDKs & Libraries
JavaScript / Node.js
npm install @characterdev/apiOfficial SDK with TypeScript support and automatic token management.
Python
pip install characterdev-apiPython SDK with async support and built-in retry logic.
REST API
curl -X GETDirect HTTP requests work with any programming language.
Need Help?
Our developer support team can help you integrate and scale with the Decision Intelligence API.