{"version":"2.1.324","anchor":"api-error-type-is-passed-through","canonical_anchor":"plugin-hooks-validation-and-api-error-schema-extended","heading":"API errors now carry their error type, plus new plugin error details","tier":"notice","area":"Telemetry","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/api-error-type-is-passed-through","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### API errors now carry their error type, plus new plugin error details\n\nSDK error messages and error records now include the API's error type (`api_error_type`), and plugin errors explain more about why a plugin was skipped\n\n**Unclear.** It is not clear which event this is or whether tools built on Claude Code can read it.\n\n**What**\n\nWhen the Anthropic API returns an error, the type of that error is now passed along.\n\n- The SDK error frame (the error message that apps built on the Agent SDK receive) gains `api_error_type`, the `error.type` taken from the API's response.\n\n- An event passes it on as `apiErrorType` when `api_error_type` is present, next to the existing `apiErrorCode`, and API error records in telemetry (usage data sent back to Anthropic) also carry `apiErrorType`.\n\n- Tool-result telemetry now includes `run_input` for built-in tools.\n\n- Plugin load errors gain `managed_lock`, which says an `enabledPlugins` entry in managed settings (rules set by your administrator) caused a folder copy of a plugin to be dropped.\n\n- The plugin dependency resolver also reports `settingsUnread` and `outsideRange`.\n\n**Why**\n\nApps built on the SDK can now tell kinds of API errors apart, and see why a plugin folder was ignored.\n\n- Area: Telemetry\n- Names: `apiErrorType`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}