http://localhost:5000/api
All endpoints require Jira API token authentication configured via environment variables.
Process natural language query and return results.
Request Body:
{
"query": "How many tickets are assigned to John Doe?",
"project_key": "DEMO",
"time_range": "last_month"
}Response:
{
"status": "success",
"intent": "assignee_count",
"entities": {
"assignee": "John Doe",
"project": "DEMO",
"time_range": "last_month"
},
"results": {
"total_assignees": 12,
"target_assignee_count": 23,
"average_per_assignee": 8.5
}
}Parse query without execution (for validation).
Get list of sample queries for testing.
Generate velocity analysis.
Parameters:
project_key: Jira project keytime_range: Time period (last_month, last_quarter, etc.)sprint_duration: Sprint duration in days
Generate defect analysis.
Parameters:
project_key: Jira project keytime_range: Time periodseverity: Filter by severity level
Generate lead time analysis.
Generate trend analysis.
Get list of available metrics.
Test Jira API connection.
Synchronize data from Jira.
Get list of Jira projects.
Get list of Jira users.
Generate chart data.
Request Body:
{
"chart_type": "velocity_trend",
"data_source": "analytics_result",
"format": "plotly"
}Export chart as image.
All endpoints return consistent error format:
{
"status": "error",
"error_code": "AUTHENTICATION_FAILED",
"message": "Invalid Jira API token",
"details": "Please check your JIRA_API_TOKEN environment variable"
}- 100 requests per minute per IP
- 1000 requests per hour per API token
- Rate limit headers included in responses
200: Success400: Bad Request401: Unauthorized429: Rate Limited500: Internal Server Error
mj3b