API Reference
Deductive AI provides a comprehensive REST API for programmatic access to all platform features.Authentication
API Keys
All API requests require authentication using an API key:Getting Your API Key
- Sign in to Deductive AI
- Navigate to Settings > API Keys
- Click Create API Key
- Copy and store your API key securely
Key Types
- Admin Keys - Full access to all resources
- Assistant Keys - Limited access for assistant API only
Base URL
All API requests should be made to:Rate Limits
- Standard: 100 requests per minute
- Enterprise: 1000 requests per minute
Endpoints
Query
Submit a natural language query to Deductive AI. Endpoint:POST /query
Request Body:
Integrations
List Integrations
Endpoint:GET /integrations
Response:
Create Integration
Endpoint:POST /integrations
Request Body:
Incidents
List Incidents
Endpoint:GET /incidents
Query Parameters:
status- Filter by status (open, resolved, investigating)severity- Filter by severity (low, medium, high, critical)start_time- Filter incidents after this timeend_time- Filter incidents before this time
Get Incident
Endpoint:GET /incidents/{id}
Response:
Error Handling
All errors follow a consistent format:Error Codes
INVALID_REQUEST- Request validation failedUNAUTHORIZED- Authentication requiredFORBIDDEN- Insufficient permissionsNOT_FOUND- Resource not foundRATE_LIMIT_EXCEEDED- Too many requestsINTERNAL_ERROR- Server error
SDKs
Python
JavaScript
Webhooks
Subscribe to events for real-time updates: Endpoint:POST /webhooks
Request Body:
Next Steps
- Get Started - Set up your first integration
- Security - Learn about API security
- Examples - Code examples