Skip to main content
Rewrite content fails when the request fails validation, rewrite is not enabled for the partner or user, auth is wrong, or the server cannot load rewrite config or specialty. Match the error id (or message prefix) before you change credentials or UI write-back. Messages for rewrite-specific rows often include request_id=…. Keep that value when you contact Technical Support.

Common causes

  • instruction is not exactly CONCISE, VERBOSE, or PATIENT_FRIENDLY.
  • selected_text is empty, longer than 1024 Unicode runes (default max), or surrounding_content exceeds the same max when set.
  • context or context.selection is missing, or offsets violate 0 <= start <= end.
  • Rewrite is not enabled for the partner or clinician.
  • Suki Token, Partner ID claims, or single-auth sdp_provider_id are 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.

Next steps

Ambient and Dictation error messages - Full rewrite error ids Rewrite Dictation content - Request shape, write-back, and failure UX Rewrite content - Endpoint fields and examples 403 Permission Denied - Authz and partner claim failures 401 Unauthorized or invalid Partner Token - Token and provider registration failures
Last modified on October 16, 2026