---
title: "Could Not Parse File"
description: "SignatureAPI could not read the uploaded file as a PDF or DOCX. Check that the file opens locally and that Content-Type matches its format."
canonical: "https://signatureapi.com/docs/v1/errors/cannot-parse-file"
source: "https://signatureapi.com/docs/v1/errors/cannot-parse-file.md"
last_verified_api_version: "1.18.0"
last_modified: "2026-11-18T11:41:57Z"
---

# Could Not Parse File

SignatureAPI could not read the uploaded file as a PDF or DOCX. Check that the file opens locally and that Content-Type matches its format.

_Last verified against API version 1.18.0._

## What Happened

SignatureAPI could not read the uploaded file as a PDF or DOCX. The file may be corrupted or in another format, or the `Content-Type` may not match the file contents. The `detail` property says which format it tried.

> **Tip:** The response includes a `detail` property with more information about this error.

## How to Fix

- Verify the file is a valid PDF or DOCX by opening it locally in a PDF viewer or word processor.
- Ensure the `Content-Type` header in your request matches the actual file format (`application/pdf` for PDF, `application/vnd.openxmlformats-officedocument.wordprocessingml.document` for DOCX).
- Try re-saving or re-exporting the file from its original application and uploading again.
- If the file was generated programmatically, verify the output is well-formed.

Still stuck? [Contact support](https://signatureapi.com/support).
