Document Upload

Before processing documents, you need to upload them to our secure servers. The upload endpoint accepts PDF, JPG, JPEG, and PNG files.

Upload Endpoint

POST https://api.invaro.ai/api/v1/parse/upload

Example Implementation

curl -X POST "https://api.invaro.ai/api/v1/parse/upload" \
  -H "Authorization: Bearer your_api_key" \
  -F "files=@document.pdf"

Response Format

{
  "success": true,
  "data": {
    "files": [
      {
        "file_id": "1739260380783576729_invoice3.pdf",
        "file_url": "https://storage.invaro.ai/documents/1739260380783576729_invoice3.pdf",
        "doc_id": "f663d9ac-6d5b-4cfe-bf30-ac19ad9429e4"
      }
    ],
    "status": "done"
  }
}

Best Practices

  1. File Size - Keep files under 10MB for optimal processing
  2. Image Quality - Ensure documents are clear and readable
  3. File Format - Use PDF for best results
  4. Error Handling - Always implement proper error handling

Store the doc_id from the response - you’ll need it to process the document.

Next Steps

Process Documents

Learn how to process your uploaded documents