{"version":"2.1.285","anchor":"error-result-now-includes-api-error-on-success-results","canonical_anchor":"error-result-now-includes-api-error-on-success-results","heading":"SDK result messages include the API error when there is one","tier":"notice","area":"SDK","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.285\/e\/error-result-now-includes-api-error-on-success-results","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.285","markdown":"### SDK result messages include the API error when there is one\n\nThe SDK's result message now includes api_error when present, alongside api_error_status and api_error_code\n\n**Unclear.** When `api_error` is actually filled in is not stated.\n\n**What**\n\nThe Agent SDK lets programs run Claude Code. The result message it returns at the end of a run now includes an `api_error` field when one is present. Before, it carried only `api_error_status` and `api_error_code`.\n\n**Why**\n\nPrograms using the SDK get more detail about an API error.\n\n- Area: SDK\n- Names: `api_error`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}