---
title: "List persisted inbound pipeline debug events"
method: GET
path: "/api/debug/inbound-pipeline"
tags: ["Debug"]
---

# List persisted inbound pipeline debug events

`GET /api/debug/inbound-pipeline`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/debug/inbound-pipeline`
- Auth: API key in cookie `luca.session_token`

Stored trace events from the inbound pipeline, for working out why a message routed, drafted, or stalled the way it did. Admin only, and a user session only. API keys get a 403.

**Session-only.** This endpoint isn't on the API-key allowlist. An organization API key gets a 403 here, whatever scopes it holds.

## Query parameters

- `limit` integer
- `cursor` string
- `channel` string
- `conversationId` string, uuid
- `leadId` string, uuid
- `providerMessageId` string

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- InboundPipelineDebugResponse
  - `events` object[], required
    - `id` string, uuid, required
    - `coachId` string, uuid, required
    - `eventName` string, required
    - `channel` string, nullable, required
    - `channelAccountId` string, uuid, nullable, required
    - `leadId` string, uuid, nullable, required
    - `conversationId` string, uuid, nullable, required
    - `providerMessageId` string, nullable, required
    - `reviewQueueId` string, uuid, nullable, required
    - `payload` unknown
    - `createdAt` string, required
  - `nextCursor` string, nullable, required

## Other responses

- `400`: validation failed
- `401`: unauthorized
- `403`: admin access required
- `429`: rate limited
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
