error object with a code and message. SDK exceptions also expose the HTTP status, request ID, retryability, and optional details.
Validation details
Forvalidation_error, details is an array of issues with code, path, and message. A path can include an array index, such as ["to", 0].
For approval_required, details is an object containing approvalId. Check the code before interpreting the details.
Retry carefully
Aretryable flag is a hint, not evidence that a previous mutation was rejected. Keep the original idempotency key and payload when retrying. For pending or unknown operations, follow operation handling.
When reporting a failure, include the request ID and error code. Do not include API keys, signing secrets, or temporary attachment URLs.