Developer Portal
Build Powerful Analytics Integrations
Access our comprehensive API documentation, SDKs, and resources to integrate Compasslytics analytics into your applications.
Lightning Fast
Our API is optimized for performance with response times under 200ms for most queries.
Secure by Default
Enterprise-grade security with OAuth 2.0 authentication and role-based access control.
Well Documented
Comprehensive documentation with examples, guides, and interactive API explorer.
Easy Integration
SDKs available for all major languages with native integration patterns.
API Endpoints
POST
/api/sources/connectRegister credentials and scopes
Parameters:
credentialsscopesconnectionType
POST
/api/queryAsk questions using natural language
Parameters:
questionsourcesoutput
POST
/api/dashboardGenerate interactive dashboard specification
Parameters:
layoutvisualizationsfilters
POST
/api/chat/editApply chat-based modifications
Parameters:
chatIdmodificationscontext
POST
/api/templates/saveSave reusable workflow templates
Parameters:
templateNameconfigurationmetadata
POST
/api/reportExport reports with interpretations
Parameters:
formattemplatescheduling
Quick Start
curl Example
curl -X POST https://api.compasslytics.com/v1/query \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"question": "Explain revenue trends over the last quarter",
"sources": ["salesforce", "stripe"],
"output": ["dashboard", "narrative", "charts"]
}'Official SDKs
JavaScript/TypeScript
v2.5.1npm install @compasslytics/sdkPython
v3.2.0pip install compasslytics-sdkRuby
v1.8.3gem install compasslytics-sdkGo
v1.2.0go get github.com/compasslytics/sdk-goAuthentication
All API requests require an authentication token. You can obtain your API key from your dashboard settings.
Authentication Headers
Authorization: Bearer YOUR_API_KEY
Content-Type: application/jsonDeveloper Resources
Everything you need to build with Compasslytics
Documentation
Complete API reference and guides
GitHub
Open source SDKs and examples
API Explorer
Interactive API testing tool
Learn More
Platform Features
Discover all the powerful features of Compasslytics
Security & Compliance
Learn about our enterprise-grade security measures
Pricing Plans
Choose the right plan for your integration needs