API Reference

Errors

UniPost uses structured error responses so clients can distinguish validation issues, authorization failures, conflicts, and transient server errors without guessing from freeform text.

Error shape

Top-level API errors are returned in an error envelope. Validation-heavy endpoints may also include an issues[] array with field-specific detail.

Common codes

HTTPCodeMeaning
400VALIDATION_ERRORMalformed JSON or structurally invalid request
401UNAUTHORIZEDMissing or invalid API key
404NOT_FOUNDThe requested resource is not in this workspace
409CONFLICTThe request conflicts with current state, often around idempotency or draft promotion
422VALIDATION_ERRORThe body is structurally valid but violates business rules
500INTERNAL_ERRORUnexpected server-side failure

Platform-side errors

Per-platform publish failures usually appear in results[].error_message on a post response rather than as top-level API errors. That allows UniPost to represent partial success across platforms.