Documents

Upload a document

The upload is idempotent. The same file on the same owner answers 200 with the document that is already there, and a new file answers 201. The file hash decides.

post/api/v1/documents

Request

  • Base URL: https://app.sellerassistant.app (the document declares no server; this is the origin it was published from)
  • URL: https://app.sellerassistant.app/api/v1/documents
  • Auth: one of:
    • API key in query parameter api_key
    • API key in header X-Api-Key

Response

The owner already has this file. The answer is that document.

Example response

{
  "data": {
    "id": 5,
    "type": "invoice",
    "status": "parsed",
    "original_name": "invoice-2026-09.pdf",
    "mime_type": "application/pdf",
    "file_size": 240128,
    "reference_number": "INV-4471",
    "targets": [
      {
        "id": 42
      }
    ],
    "ai_confidence": 0.94,
    "has_parsed_data": true
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.