---
title: "List Insights"
method: GET
path: "/gateway/insights"
---

# List Insights

`GET /gateway/insights`

Published insights for ``agent_id``, newest first.

``agent_id`` is typed here so a missing/empty value fails with 422 before
reaching the gateway; it rides through to the upstream via the forwarded
query string (see ``tokenwise_service._build_gateway_request``).

## Query parameters

- `agent_id` string, required

## Response `200`

Successful Response

- InsightOut[]
  - `id` string, uuid, required — A unique ID for the request (not the message). Repeated identical requests get different IDs. However, for a streaming response, the ID will be the same for all responses in the stream.
  - `workspace_id` string, uuid, required
  - `agent_id` string, required
  - `state` string, required
  - `source` string, required
  - `kind` string, required
  - `author` string
  - `title` string, required
  - `narrative` string, required
  - `projected_savings` string
  - `optimization_id` string
  - `config_suggestion` object
  - `feedback_verdict` string
  - `feedback_comment` string
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ai21/apis/ai21-studio-api.md) · [All operations](https://skmtc.net/ai21/apis/ai21-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ai21/ai21-studio-api/versions/308239964cd0/schema)
