Decision: Status and code ·
Write failure: Reconcile first ·
Logs: Safe fields only
The important part
- Branch on error.code, not the wording of error.message.
- An error or lost connection can leave a write outcome unknown.
- Keep a non-JSON error fallback and log only safe diagnostic fields.
SMS suppression change
SinglePOST /v1/sms suppression now returns 409 do_not_contact, with type conflict. It previously returned 400 invalid_request. Update code that matches the old response. Nothing was sent: stop and respect the recipient’s opt-out. Campaign recipients remain held individually with hold_reason: do_not_contact.
Preserve uncertainty
If hang-up is not confirmed, HTTP 503hangup_pending returns error.details.deleted:false and error.details.retry_pending:true. Deletion stays queued and continues automatically. Repeating the same DELETE for the same account and ID safely resumes it. A lost response or deletion_unavailable is not success: check the list, then repeat that same DELETE if needed. Missing and foreign IDs share HTTP 404. Bulk call deletion and account closure keep separate safety rules.
An accepted call or SMS request is not delivery proof. Save returned identifiers and read the resulting record. For number credentials, carrier_outcome_unknown needs support investigation; credential_save_pending permits a deliberate retry with identical details to finish the local save. Never delete and re-import to recover.
Show a safe message and retain the code and operation ID when present. Keep full bodies, caller details and credentials out of logs. See the error catalog and retry rules.