> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Conflict Report

> Generate the conflict report for an agent/date — the same work the scheduled task performs.

## Overview

Runs the LLM conflict-detection pass over an agent's session memories for a given date and writes the report that [List Conflicts](/api-reference/data/list-conflicts) and [Resolve Conflict](/api-reference/data/resolve-conflicts) read from. This is the same work Memanto's scheduled daily job performs.

## Authentication

API clients do not send an API key or `Authorization` header.

<ParamField header="X-Session-Token" type="string" required>
  Session token from [Activate Agent](/api-reference/sessions/activate-agent). Must match `agent_id`.
</ParamField>

## Path Parameters

<ParamField path="agent_id" type="string" required>
  The unique identifier of the agent.
</ParamField>

## Body

<ParamField body="date" type="string">
  Date string `YYYY-MM-DD`. Defaults to **today** on the server when omitted.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "http://localhost:8000/api/v2/agents/my-agent/conflicts/generate" \
    -H "X-Session-Token: your_session_token" \
    -H "Content-Type: application/json" \
    -d '{"date": "2026-05-08"}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - OK (conflicts found) theme={null}
  {
    "agent_id": "my-agent",
    "session_id": "sess_abc123",
    "date": "2026-05-08",
    "conflicts": {
      "status": "success",
      "json_path": "~/.memanto/conflicts/my-agent_2026-05-08_conflicts.json",
      "conflict_count": 2
    }
  }
  ```

  ```json 200 - OK (no sessions for date) theme={null}
  {
    "agent_id": "my-agent",
    "session_id": "sess_abc123",
    "date": "2026-05-08",
    "conflicts": {
      "status": "no_sessions"
    }
  }
  ```

  ```json 400 - Bad Request (Invalid Identifier) theme={null}
  {
    "detail": "Invalid summary identifier"
  }
  ```

  ```json 401 - Unauthorized (Missing Token) theme={null}
  {
    "detail": "Missing session token. Use X-Session-Token header."
  }
  ```
</ResponseExample>

## Next Steps

* [List Conflicts](/api-reference/data/list-conflicts) to fetch the unresolved conflicts from the generated report
* [Resolve Conflict](/api-reference/data/resolve-conflicts) to resolve a specific conflict
* [Generate Daily Summary](/api-reference/ai/generate-daily-summary) to generate the paired daily summary
