Reference

Errors

All error responses follow the same envelope shape:

{
  "success": false,
  "message": "Human-readable error description",
  "error": "ERROR_CODE"
}

Common error codes

CodeHTTPMeaning
API_KEY_MISSING401X-API-Key header was not provided.
INVALID_API_KEY401API key is invalid or has been revoked.
TOKEN_EXPIRED401Your JWT token has expired — re-authenticate.
VALIDATION_ERROR400Missing or invalid fields in your request.
COMPANY_NOT_FOUND400You must register a company before creating campaigns.
CAMPAIGN_NOT_FOUND404The post_id does not match any campaign.
ACCESS_DENIED403You can only modify campaigns you created.
FEEDBACK_NOT_ENABLED400Cannot add questions to an ad with has_feedback=false.
COHORT_REWARDS_NOT_ENABLED400Cohort rewards are not enabled for this campaign.
IMAGE_UPLOAD_FAILED400Failed to upload image to CDN.
SERVER_ERROR500Unexpected server error — contact support.