ApiDocumentation

ABI API Documentation

Integrate the power of Autonomous Business Intelligence directly into your applications.

Authentication
Authenticate your API requests by providing your secret key in the Authorization header.

All API requests must include an `Authorization` header with your API key. Get your key from the API Management page.

Authorization: Bearer YOUR_API_KEY
API Endpoints
Base URL: /api/v1/
GET

/business-health

Retrieves the latest overall business health score and its core components.

Example Response:

{
  "success": true,
  "data": {
    "overall_score": 85,
    "risk_level": "low",
    "score_timestamp": "2024-01-01T12:00:00Z",
    "component_scores": {
      "financial": {
        "score": 90,
        "trend": 1.2
      },
      "market": {
        "score": 80,
        "trend": -0.5
      },
      "operational": {
        "score": 88,
        "trend": 2.1
      },
      "team": {
        "score": 82,
        "trend": 0.3
      }
    }
  }
}
GET

/tasks

Fetches a list of AI-generated QuantumTasks, filterable by status.

Example Response:

{
  "success": true,
  "data": [
    {
      "id": "task_123",
      "title": "Analyze Q4 Marketing Spend ROI",
      "priority": 95,
      "status": "generated",
      "businessImpact": "high"
    }
  ]
}
POST

/tasks

Creates a new task for the ABI system to process and prioritize.

Request Body:

{
  "title": "Prepare draft for investor update",
  "description": "Include recent wins and financial highlights.",
  "type": "strategic",
  "businessImpact": "critical"
}

Example Response:

{
  "success": true,
  "data": {
    "id": "task_124",
    "title": "Prepare draft for investor update",
    "priority": 98,
    "status": "generated"
  }
}
base44
Edit with Base44