Download completed data export
POST /api/gdpr/export-download/{request_id}
Returns a completed export after matching the request ID, email, and verification token. Credentials are sent in the JSON request body so the token is not copied into the URL, access logs, or Referer. Depending on storage configuration it streams JSON (or requested HTML) or redirects to a temporary storage URL. Missing/not-ready files return 404 and expired exports return 410; the route is limited to ten requests per minute.
This operation needs no authentication.
Parameters
request_idstring path requiredformatstring queryOnly the exact value
htmlselects the HTML response; other values use JSON.Default:"json"
Request body
Credentials are sent in the request body so the verification token is not copied into the URL, access logs, or Referer.
application/json object
emailstring (email) requiredverification_tokenstring requiredLength: 8 to 256 characters
Generated sample
{
"email": "user@example.com",
"verification_token": "string"
}Responses
200 Local-storage export. JSON is the default; format=html returns an HTML view.
application/json object
text/html string
302 Redirect to a temporary storage URL.
Response headers
Locationstring (uri) header
404 Export is not available or credentials do not match.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
410 Export link has expired.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 Email or verification token failed validation.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The export-download throttle was exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string