{
  "openapi": "3.1.0",
  "info": {
    "title": "PDF Editor feedback API",
    "version": "1.0.0",
    "description": "Feedback only, never PDF uploads. 3 accepted submissions per IP per UTC day; 60-second minimum interval. Feedback retained 90 days."
  },
  "servers": [
    {
      "url": "https://pdf.nouploads.org"
    }
  ],
  "paths": {
    "/api/feedback": {
      "post": {
        "operationId": "submitFeedback",
        "summary": "Submit user-requested product feedback",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "message"
                ],
                "additionalProperties": false,
                "properties": {
                  "message": {
                    "type": "string",
                    "minLength": 10,
                    "maxLength": 2000
                  },
                  "locale": {
                    "type": "string",
                    "default": "en",
                    "enum": [
                      "en",
                      "zh-Hant",
                      "zh-Hans",
                      "ja",
                      "ko",
                      "es",
                      "pt-BR",
                      "fr",
                      "de",
                      "it",
                      "ru",
                      "id",
                      "tr",
                      "ar",
                      "hi"
                    ]
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "browser",
                      "agent"
                    ],
                    "default": "agent"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Accepted; returns id, remaining, resetAt (Unix seconds)"
          },
          "400": {
            "description": "Invalid payload"
          },
          "413": {
            "description": "Body too large"
          },
          "429": {
            "description": "Quota or cooldown reached; respect Retry-After",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer"
                },
                "description": "Seconds until another submission may be sent"
              }
            }
          },
          "503": {
            "description": "Temporarily unavailable"
          }
        }
      }
    }
  }
}
