400 Bad request
The request reached the API, but something in it couldn't be used. These are the usual causes.
File upload failed
File de-identification returns 400, no file comes back, or the Dashboard shows an
upload error.
| Cause | Fix |
|---|---|
| Unsupported extension | Use .csv, .xlsx, .xls, .docx, .pdf or .txt |
.doc sent to the Word endpoint | Convert it to .docx first |
| Scanned or image-only PDF | Use a PDF with selectable text |
| Corrupted file | Re-export it, or try a small sample |
Missing file field | Send multipart/form-data with a field named file |
Unsupported file type
Unsupported file type · Only .docx files are accepted (and similar per endpoint).
Each file endpoint takes specific extensions:
| Endpoint | Accepts |
|---|---|
/csv | .csv, .xlsx, .xls |
/docx | .docx (convert .doc first) |
/pdf | .pdf with selectable text |
/txt | .txt |
Renaming a file doesn't change its format. Convert or re-export it instead. The SDKs'
deidentify_file() / deidentifyFile() pick the right endpoint from the extension.
Malformed request
The JSON body or a field couldn't be read. Check the body matches the endpoint's
reference, such as Chat or
De-identify text. A body that's valid JSON but
has the wrong fields usually returns 422 instead.