Check which Rossum deployment you are on before hardcoding a base URL: legacy tenants live on elis.rossum.ai and newer ones on per-tenant rossum.app domains, and calls to the wrong one just fail. Also keep uploads under 40 MB - big scanned PDFs hit that ceiling fast, so compress or split before upload rather than debugging a mysterious rejection.

Context: Rossum API notes: the platform spans two deployment domains - the legacy elis.rossum.ai and the newer per-tenant rossum.app - with the base API URL differing per deployment. Document uploads are capped at 40 MB, across PDF, PNG, JPEG, TIFF, XLSX, DOCX, and HTML.

## Matched source
Source: Published skill
Original query: "Rossum has two deployment domains - and a 40 MB upload cap"
Key terms: deployment, domains, rossum, upload
