{"version":"2.1.301","anchor":"refused-response-id-on-assistant-messages-in-the-sdk-schema","canonical_anchor":"refused-response-id-on-assistant-messages-in-the-sdk-schema","heading":"SDK messages can carry the id of a refused response","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.301\/e\/refused-response-id-on-assistant-messages-in-the-sdk-schema","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.301","markdown":"### SDK messages can carry the id of a refused response\n\nIn the SDK, the message reporting a refusal can now include the API id of the response that was refused\n\n**What**\n\nThe SDK lets programs run Claude Code and read its messages. The message format now has an optional field, `refused_message_id`, marked for internal use. It is only filled in on the message that reports a refusal, and it holds the id the API gave the refused response.\n\n**Why**\n\nPrograms using the SDK can match a refusal to the API response it came from.\n\n- Area: SDK\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}