# `mix threadline.incident`
[🔗](https://github.com/szTheory/threadline/blob/v1.2.0/lib/mix/tasks/threadline.incident.ex#L1)

Loads application config, starts the configured Ecto repo, and fetches
the incident bundle for a given transaction ID.

## Arguments

- **`transaction_id`** (required) — The ID of the transaction to query.

## Flags

- **`--json`** — Output the incident bundle as JSON, suppressing Elixir Logger output.
  Useful for piping to tools like `jq`.

## Examples

```sh
mix threadline.incident 12345
mix threadline.incident 12345 --json | jq .
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
