GET/api/fixes

Get AI-generated optimization suggestions for a specific evaluation.

Scope: fixes

Query Parameters

ParameterRequiredDescription
actionYesMust be "list"
evaluationIdYesUUID of the evaluation

Example Request

curl "https://app.adalign.io/api/fixes?action=list&evaluationId=UUID_HERE" \
  -H "Authorization: Bearer adal_your_key_here"

Response

{
  "success": true,
  "data": {
    "fixes": [
      {
        "id": "uuid-here",
        "fixType": "headline",
        "target": "landing_page",
        "currentValue": "Welcome to Our Store",
        "suggestedValue": "Get 50% Off Premium Software",
        "reasoning": "The landing page headline should match the ad offer...",
        "expectedImpact": "15-25%",
        "confidenceScore": 0.85,
        "priority": "HIGH",
        "status": "pending",
        "implementationSteps": [
          "Locate the H1 element on the landing page",
          "Replace text with the suggested headline"
        ]
      }
    ],
    "total": 5,
    "pending": 3,
    "applied": 1,
    "dismissed": 1
  }
}