---
title: "Ingest session into knowledge graph"
method: POST
path: "/api/graphiti/ingest-session"
tags: ["Knowledge Graph"]
---

# Ingest session into knowledge graph

`POST /api/graphiti/ingest-session`

## Request

- Base URL: `/api/plugins/consensys-asko11y-app/resources` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/plugins/consensys-asko11y-app/resources/api/graphiti/ingest-session`
- Auth: one of:
  - API key in cookie `grafana_session`
  - HTTP bearer

Ingests conversation messages from a completed investigation session into the knowledge graph. This is the 'Feed to Knowledge Graph' action — the user opts in to share their investigation findings so future sessions can leverage discovered causal relationships (e.g., 'service A failed because database B connection pool was exhausted').

## Request body

- object
  - `messages` object[], required: Conversation messages to ingest
    - `role` 'user' | 'assistant', required: Message author role
    - `content` string, required: Message content

## Response `200`

Messages ingested successfully

- object
  - `ingested` integer: Number of messages ingested

## Other responses

- `400`: Invalid request or knowledge graph not configured
- `500`: Failed to ingest session

## Changes

- **2026-04-17** `d1bf9bf5f589`: 1 info
  - endpoint added
- **2026-02-18** `5e7e9a233e2d`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/changes/api/graphiti/ingest-session/post.md)

---

[API](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) - [All operations](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/revisions/ee3ccd0f186d?raw)
