---
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`

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

---

[API](https://skmtc.net/consensys/apis/ask-o11y-ai-powered-observability-assistant-api.md) · [All operations](https://skmtc.net/consensys/apis/ask-o11y-ai-powered-observability-assistant-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/consensys/ask-o11y-ai-powered-observability-assistant-api/versions/3ccc03eccaef/schema)
