Error Format
Every non-success response returns the same JSON envelope:error— a stable, machine-readable code. Branch your integration logic on this.message— a human-readable explanation. Log it; don’t parse it.
Status Codes
Handling Errors
400— a bad ID. Check that you’re passing the record’s UUID and not a name or a URL.401— fix the credentials. Retrying won’t help until the key is corrected or replaced.403— API access has been turned off for your organization. Contact support@cortado.pro.404— treat as “the record isn’t available to this key”. It may have been deleted, or it may belong to another organization.429— back off. Wait the seconds given inRetry-After(60) and retry.