{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amplitude/refs/heads/main/json-structure/dsar-api-dsar-status-response-structure.json",
  "name": "DsarStatusResponse",
  "description": "DsarStatusResponse schema from Amplitude Data Subject Access Request API",
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string",
      "description": "The unique identifier for the DSAR request."
    },
    "status": {
      "type": "string",
      "description": "The processing status of the request.",
      "enum": [
        "pending",
        "processing",
        "complete",
        "failed"
      ]
    },
    "download_url": {
      "type": "uri",
      "description": "The URL to download the requested data. Only present when status is complete."
    }
  }
}