Skip to main content

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.

CauseFix
Unsupported extensionUse .csv, .xlsx, .xls, .docx, .pdf or .txt
.doc sent to the Word endpointConvert it to .docx first
Scanned or image-only PDFUse a PDF with selectable text
Corrupted fileRe-export it, or try a small sample
Missing file fieldSend 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:

EndpointAccepts
/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.

See also​

Supported file types · File de-identification