---
title: "Explain Source Error"
method: POST
path: "/sources/{source_id}/explain-error"
tags: ["Sources"]
---

# Explain Source Error

`POST /sources/{source_id}/explain-error`

Explain a Broken source's failure from its task trace, config, and optionally recent logs.

## Path parameters

- `source_id` string, required

## Request body

- ExplainConnectorErrorRequest — Request body for the connector-error 'Explain with AI' endpoints (sources + destinations).
  - `include_logs` boolean — Also attach recent connector logs to the context for extra signal.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/streamkap/apis/streamkap-rest-api.md) · [All operations](https://skmtc.net/streamkap/apis/streamkap-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/streamkap/streamkap-rest-api/versions/8aea6143d003/schema)
