Messages for rewrite-specific rows often include
request_id=…. Keep that value when you contact Technical Support.
Common causes
instructionis not exactlyCONCISE,VERBOSE, orPATIENT_FRIENDLY.selected_textis empty, longer than 1024 Unicode runes (default max), orsurrounding_contentexceeds the same max when set.contextorcontext.selectionis missing, or offsets violate0 <= start <= end.- Rewrite is not enabled for the partner or clinician.
- Suki Token, Partner ID claims, or single-auth
sdp_provider_idare wrong. - The provider is not registered or not active.
Fix
1
Keep Original Text and Chart Save
Do not clear the selection or block EHR save when rewrite fails. Retry only from the rewrite control. See Rewrite Dictation content.
2
Fix 400 Validation
Confirm
instruction, required context.selection, 0 <= start <= end, and length limits for selected_text and surrounding_content. Match the span to the offsets you send.3
Fix 401 Auth
Refresh
sdp_suki_token. For single_auth, send a valid sdp_provider_id. If the message is provider not registered, register the clinician first. See 401 Unauthorized or invalid Partner Token.4
Fix 403 Entitlement or Claims
For
content_rewrite_not_enabled, ask Suki Technical Support to enable content rewrite for the partner or user. For claim or partner-detail failures, follow 403 Permission Denied.5
Handle 500 and Downstream Errors
Retry quietly. Store
request_id from the message or response body before you open a ticket.On Rewrite content, inactive providers return 400 (
provider_user_inactive). On many other Ambient and Dictation endpoints the same condition can return 412.