ComTrack

API reference

Digest API

Upload one statement file for parsing and ingestion. Accepts PDF, CSV, XLSX or TXT and returns a reference to the stored file once it’s processed.

2 min readUpdated

POSThttps://commissionconnector.com/api/digest

Authentication

Every request must include your API key in the x-api-key header. Find your key in ComTrack under Integrations → API Keys.

Request

Headers

HeaderTypeRequiredDescription
x-api-keystringYesYour API key for authentication
Content-Typemultipart/form-dataYesSet automatically when sending form data

Body (multipart/form-data)

FieldTypeRequiredDescription
fileFile (binary)YesThe file to upload. Accepted types: .pdf, .csv, .xlsx, .txt

Response

200 OK: example successful response.

{
  "status": "digested",
  "file": {
    "id": "9c681f6b-d3fd-418c-b347-8c8ba6878146",
    "name": "filename123.xlsx"
  }
}
FieldTypeDescription
statusstringProcessing result: digested, skipped_duplicate, not_recognized or rejected
file.idstring (UUID)Unique ID of the uploaded file. Use it to reference the file in other calls.
file.namestringThe original filename uploaded

Errors

CodeErrorDescription
400Bad RequestMissing file field or invalid multipart structure
401UnauthorizedInvalid or missing x-api-key
413Payload Too LargeFile exceeds the maximum allowed size
415Unsupported Media TypeFile type not supported
422Unprocessable EntityFile unreadable, corrupted or password-protected
429Too Many RequestsRate limit exceeded
500 / 503Server ErrorTemporary or internal failure; retry later

Examples

curl -X POST "https://commissionconnector.com/api/digest" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "file=@/path/to/filename123.xlsx"

Notes

  • Only one file can be uploaded per request.
  • The file must be valid and not password-protected.
  • A successful upload returns status: "digested".

Change log

  • 2025-10-14: Endpoint documented with x-api-key authentication and the updated response format.

Was this article helpful?