POST/api/plugin/upload
Multipart form, one field named file. For a spreadsheet the answer is immediate:
curl -H "X-A2DB-Key: $KEY" -F "file=@pricelist.xlsx" \
https://microcitylabs.com/api/plugin/upload
# -> {"upload_id": "...", "needs_read": false,
# "grid": {"header": [...], "records": [[...], ...]},
# "mapping": {"title": 1, "sku": 0, "price": 4, "description": 2, "qty": -1, "vendor": 3}}For a PDF or image you get the page count instead: {"upload_id": "...", "needs_read": true, "pages": 12}