{
  "openapi": "3.0.3",
  "info": {
    "title": "SnapVault API",
    "description": "Ephemeral file relay service for AI Agents. Upload a file and get a 5-minute temporary URL.",
    "version": "1.0.0"
  },
  "servers": [{ "url": "https://snapvault.jp" }],
  "paths": {
    "/": {
      "post": {
        "summary": "Upload a file",
        "description": "Upload a file and receive a temporary URL valid for 5 minutes.",
        "operationId": "uploadFile",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": ["file"],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "File uploaded successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "example": "https://s.snapvault.jp/znMWBEeIZVk"
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-04-07T13:50:52+09:00"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
