---
title: "Generate login summary"
method: GET
path: "/dashboard/api/login-summary"
tags: ["Dashboard"]
---

# Generate login summary

`GET /dashboard/api/login-summary`

## Request

- Base URL: `https://api.agnost.ai`
- URL: `https://api.agnost.ai/dashboard/api/login-summary`
- Auth: one of:
  - HTTP bearer and API key in header `x-org-id`
  - API key in header `x-api-key`

Generates a fresh 48-hour login summary for the selected organization.
The response is not persisted; dashboard clients request it after org
selection settles, then keep it in memory for the current page session.
If no recent data exists, the endpoint returns a generic `summary_text`
with an empty `sections` array.

## Query parameters

- `org_id` string, uuid

## Response `200`

Generated login summary

- object
  - `id` string, uuid
  - `org_id` string, uuid
  - `window_start` string, date-time
  - `window_end` string, date-time
  - `generated_at` string, date-time
  - `summary_text` string: LLM-written summary capped at 90 words, or a generic no-data fallback.
  - `sections` object[]
    - `key` string
    - `title` string
    - `href` string
    - `items` object[]
      - `title` string
      - `detail` string
      - `count` integer
      - `href` string

## Other responses

- `400`: Invalid request body
- `403`: No access to the requested organization
- `500`: Internal server error

## Changes

- **2026-11-03** `a61431b48f36`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agnost/apis/agnost-ai-api/changes/dashboard/api/login-summary/get.md)

---

[API](https://skmtc.dev/agnost/apis/agnost-ai-api.md) - [All operations](https://skmtc.dev/agnost/apis/agnost-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agnost/apis/agnost-ai-api/revisions/a61431b48f36?raw)
