Overview
Mindhunters provides comprehensive logging and monitoring tools to help you track API usage, debug issues, and ensure your integrations are working correctly. All logs are accessible through your workspace dashboard and provide detailed information about every request and webhook delivery.Accessing Logs
Log in to your workspace
https://your-tenant.mindhunters.ai and sign in.Open the Logs panel
Choose log type
- API Logs: Request and response details for all API calls
- Webhook Logs: Webhook delivery attempts and responses
API Logs
API Logs provide detailed information about every API request made to your Mindhunters workspace.What’s Included
Each API log entry contains:/api/v1/call)Viewing API Log Details
Navigate to API Logs
Browse request history
Filter logs
- Date range: Select specific time periods
- Status code: Filter by success (2xx), client errors (4xx), or server errors (5xx)
- Endpoint: View logs for specific API endpoints
- Method: Filter by HTTP method (GET, POST, etc.)
View request details
Example API Log Entry
Webhook Logs
Webhook Logs show all webhook delivery attempts, including successes, failures, and retries.What’s Included
Each webhook log entry contains:conversation.end, intent.triggered)Viewing Webhook Log Details
Navigate to Webhook Logs
Browse delivery history
Filter webhooks
- Date range: Specific time periods
- Event type: Specific webhook events
- Status: Success, failed, or pending retry
- Status code: HTTP response codes
View delivery details
Example Webhook Log Entry
Monitoring Best Practices
Set up alerts for errors
Set up alerts for errors
Monitor response times
Monitor response times
Track webhook delivery success
Track webhook delivery success
Review failed webhook retries
Review failed webhook retries
Monitor API usage patterns
Monitor API usage patterns
Keep logs for compliance
Keep logs for compliance
Understanding Log Retention
- API Logs: Retained for 30 days
- Webhook Logs: Retained for 30 days
Common Monitoring Scenarios
Debugging Failed API Calls
Identify the failed request
Review request details
- Request body for malformed data
- Headers for missing or incorrect authentication
- Response body for error messages
Check error messages
Verify and retry
Troubleshooting Webhook Deliveries
Check webhook logs
Examine failure details
- Status code from your endpoint
- Response time (timeouts are >5 seconds)
- Error messages
- Retry attempts
Test your endpoint
- Publicly accessible
- Using HTTPS
- Responding within 5 seconds
- Returning 200 status code
Trigger test webhook
Monitoring API Performance
Regular monitoring helps you identify performance issues early:- Track average response times: Response times should typically be under 500ms
- Watch for timeout errors: Requests timing out may indicate network or server issues
- Monitor error rates: Sudden spikes in errors may indicate a problem
- Check rate limits: Ensure you’re not approaching rate limits
Exporting Logs
You can export logs for external analysis or compliance:Filter logs
Select export format
- JSON: For programmatic analysis
- CSV: For spreadsheet analysis
Download
API Metrics Dashboard
The Mindhunters dashboard provides visual metrics for your API usage:Available Metrics
Request Volume
Success Rate
Average Response Time
Error Rate
Webhook Delivery Rate
Top Endpoints
Rate Limits and Quotas
Monitor your usage against rate limits:- API Requests: 1000 requests per minute per workspace
- Concurrent Calls: 50 simultaneous active calls
- Webhook Deliveries: 100 events per second
Checking Your Usage
View your current usage in the dashboard:- Navigate to Developer → Usage
- View real-time metrics for:
- Requests per minute
- Active calls
- Webhook queue size
Advanced Monitoring
For production applications, consider implementing:External Monitoring
- Use services like Datadog, New Relic, or Prometheus to monitor API performance
- Set up alerts for error rate thresholds
- Track custom metrics specific to your use case
Log Aggregation
- Stream logs to your own logging infrastructure
- Integrate with tools like Elasticsearch, Splunk, or CloudWatch
- Correlate Mindhunters logs with your application logs
Health Checks
Create scheduled health checks to verify API availability:Getting Help
If you notice unusual patterns in your logs or need assistance with monitoring:- Check the documentation: Review the errors guide for common issues
- Contact support: Email support@mindhunters.ai with log IDs for specific issues
- Community forum: Ask questions in the developer community
