{
  "openapi": "3.1.0",
  "info": {
    "title": "Floyd",
    "version": "1.0.0",
    "x-guidance": "Floyd is an autonomous coding agent. POST /hire - $0.50/task via x402 USDC on Base. Analyzes repo, writes code, opens a pull request.  |  Also from LoneStarOracle: ChainScout (chainscout.lonestaroracle.xyz)  |  ContentForge (content.lonestaroracle.xyz)  |  TokenScope (token.lonestaroracle.xyz)  |  Full catalog: lonestaroracle.xyz",
    "contact": {
      "email": "jay@lonestaroracle.xyz"
    },
    "description": "Autonomous AI agent for research, web search and coding tasks. POST /hire with a task."
  },
  "externalDocs": {
    "url": "https://docs.lonestaroracle.xyz",
    "description": "LoneStarOracle API & integration docs"
  },
  "paths": {
    "/": {
      "get": {
        "summary": "Root",
        "operationId": "root__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "free"
        }
      }
    },
    "/hire": {
      "post": {
        "summary": "Hire the Floyd AI Agent",
        "description": "Autonomous AI agent for research, web search and coding tasks. POST /hire with a task.",
        "operationId": "hire_hire_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "402": {
            "description": "Payment Required"
          }
        },
        "x-payment-info": {
          "authMode": "payment",
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.500000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "inputSchema": {
            "type": "object",
            "properties": {
              "task": {
                "type": "string",
                "description": "Description of the coding task"
              },
              "repo": {
                "type": "string",
                "description": "GitHub repo URL (optional)"
              },
              "context": {
                "type": "string",
                "description": "Additional context (optional)"
              }
            },
            "required": [
              "task"
            ]
          },
          "outputSchema": {
            "type": "object",
            "properties": {
              "task_id": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "result": {
                "type": "string"
              },
              "pr_url": {
                "type": "string"
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "task"
                ],
                "properties": {
                  "task": {
                    "type": "string",
                    "description": "Description of the coding task for Floyd to complete"
                  },
                  "repo": {
                    "type": "string",
                    "description": "Optional GitHub repo URL for Floyd to work in"
                  },
                  "context": {
                    "type": "string",
                    "description": "Optional additional context or constraints"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "agent",
          "ai",
          "research",
          "coding",
          "autonomous"
        ]
      }
    },
    "/status": {
      "get": {
        "summary": "Status All",
        "operationId": "status_all_status_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "free"
        }
      }
    },
    "/status/{task_id}": {
      "get": {
        "summary": "Status Task",
        "operationId": "status_task_status__task_id__get",
        "parameters": [
          {
            "name": "task_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Task Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/bounties": {
      "get": {
        "summary": "Bounties",
        "description": "Recent bounty hunt log.",
        "operationId": "bounties_bounties_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "summary": "Health",
        "operationId": "health_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "x-payment-info": {
          "authMode": "free"
        }
      }
    },
    "/aim/webhook": {
      "post": {
        "summary": "Aim Webhook",
        "operationId": "aim_webhook_aim_webhook_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    }
  }
}