File Upload API for Developers

    New

    Upload a file once and reuse the returned URL across parsing, conversion, OCR, and security APIs. This helps avoid external hosting dependencies and keeps integration payloads consistent.

    What it does

    Uploads a file using multipart form-data and returns a hosted URL.

    Stores ownership by API key so files can be managed securely.

    Optional filename suffix can be provided for naming clarity.

    Endpoint & Parameters

    POST /v1/file/upload

    file
    required

    Binary file uploaded via multipart/form-data.

    filename
    optional

    Custom suffix appended to generated storage filename.

    curl -X POST https://pdfapihub.com/api/v1/file/upload \
      -H "CLIENT-API-KEY: your_api_key_here" \
      -F "file=@invoice.pdf" \
      -F "filename=invoice"

    Try it now

    File upload uses multipart form-data. Use the live playground to select a file, upload it, and copy the generated cURL command.

    Open File Upload in Try Now

    Upload once, reuse everywhere

    Generate your API key, upload a file, and use the returned URL in your downstream API calls.