{
  "openapi": "3.1.0",
  "info": {
    "title": "getAIlisted Public API",
    "version": "1.0.0",
    "description": "Programmatic agent-readiness evaluations for agency integrations. Submit a client website URL and poll for the diagnostic result. API keys are issued to getAIlisted accounts. Base scans are free, with a limit of 5 per hour and 20 per day. Readiness scores do not establish rankings, successful task execution, or revenue impact.",
    "contact": {
      "url": "https://getailisted.com"
    }
  },
  "servers": [
    {
      "url": "https://getailisted.com"
    }
  ],
  "paths": {
    "/api/public/evaluate": {
      "post": {
        "operationId": "createEvaluation",
        "summary": "Start an AX evaluation for a URL",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "example": "https://example.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Evaluation job created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jobId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "example": "pending"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid url"
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "429": {
            "description": "Evaluation rate limit exceeded (5 per hour or 20 per day)"
          }
        }
      }
    },
    "/api/public/evaluations/{jobId}": {
      "get": {
        "operationId": "getEvaluation",
        "summary": "Poll an evaluation job for its result",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job status; when completed, includes the AX result (score, factors, ANPS, recommendations)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "pending",
                        "processing",
                        "completed",
                        "failed"
                      ]
                    },
                    "result": {
                      "type": "object",
                      "description": "Full evaluation when status is completed"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "404": {
            "description": "Unknown jobId"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "getAIlisted API key (axk_...)"
      }
    }
  }
}
