Skip to main content

Reading data

When a sync reads from an integration and hits an unexpected error, the affected data model is marked FAILED. Subscribe to the SYNC_COMPLETED webhook to be notified when a sync finishes and inspect which data models succeeded — the payload carries status along with per-job counts.

Writing data

Write failures return an error response in this shape:
Accuracy of error codesMost errors are classified deterministically: first by integration-specific handling, then by HTTP status (429 becomes rate-limit-exceeded, 401/403 become access-denied). Only a write error that none of those recognise falls through to LLM-based mapping, which picks the closest error code and writes the message. Read failures never take that path — they surface as unknown-error.Where the LLM is involved the code may not be exact. platform_error is always the unmodified response from the platform, so prefer it when debugging.

Error codes

Write APIs return 400 with one of the following codes.
Internal errorsAn internal failure returns 500 with the internal-error code. If you receive it, contact support@commenda.io — we monitor internal errors and will investigate.

Connection state and writes

Writes require a healthy connection. If the connection is expired or disconnected, the write is rejected before it reaches the platform, and the customer must re-authenticate. Subscribe to the CONNECTION_CHANGED webhook to catch this as it happens rather than on the next failed write.