{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ampost/json-schema/ampost-post-feedback-request-schema.json",
  "title": "PostFeedbackRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/ampost-openapi-generated.yml#/components/schemas/PostFeedbackRequest",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "description": "Either \"bug\" or \"suggestion\"."
    },
    "message": {
      "type": "string",
      "description": "Description of the issue or suggestion."
    },
    "route": {
      "type": "string",
      "description": "Dashboard page or API path the report is about."
    },
    "request": {
      "type": "object",
      "description": "The API request that failed (method, path, body, requestId)."
    },
    "error": {
      "type": "object",
      "description": "Error object returned by Ampost."
    },
    "recentRequests": {
      "type": "array",
      "description": "Recent API calls from the dashboard."
    },
    "browser": {
      "type": "string",
      "description": "User‑agent string from the dashboard."
    },
    "screenshot": {
      "type": "string",
      "description": "Base64 data URL of a screenshot (PNG or JPEG)."
    }
  },
  "required": [
    "kind",
    "message"
  ]
}