{
  "openapi": "3.1.0",
  "info": {
    "title": "Dromeas agent trial",
    "version": "2026-11-13",
    "description": "Unauthenticated trial for AI agents: 50 credits, 7 days. Guide: https://dromeas.ai/agents"
  },
  "servers": [
    {
      "url": "https://kqeiodzfgmbeyskrvvgs.supabase.co/functions/v1/free-analysis"
    }
  ],
  "paths": {
    "/": {
      "post": {
        "operationId": "agentTrial",
        "summary": "Agent trial actions: challenge, create, review, result",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "required": [
                      "action"
                    ],
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "agent_trial_challenge"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "required": [
                      "action",
                      "challenge",
                      "nonce"
                    ],
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "agent_trial_create"
                        ]
                      },
                      "challenge": {
                        "type": "string"
                      },
                      "nonce": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "required": [
                      "action",
                      "trial_key"
                    ],
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "agent_trial_review"
                        ]
                      },
                      "trial_key": {
                        "type": "string"
                      },
                      "files": {
                        "type": "array",
                        "maxItems": 50,
                        "items": {
                          "type": "object",
                          "required": [
                            "path",
                            "content"
                          ],
                          "properties": {
                            "path": {
                              "type": "string"
                            },
                            "content": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  },
                  {
                    "type": "object",
                    "required": [
                      "action",
                      "trial_key",
                      "review_id"
                    ],
                    "properties": {
                      "action": {
                        "type": "string",
                        "enum": [
                          "agent_trial_result"
                        ]
                      },
                      "trial_key": {
                        "type": "string"
                      },
                      "review_id": {
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON result"
          },
          "402": {
            "description": "Trial credits used"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    }
  }
}