---
title: "Process Session Messages"
method: POST
path: "/v1/messages/sessions/{session_id}/process"
tags: ["v1", "Messages"]
---

# Process Session Messages

`POST /v1/messages/sessions/{session_id}/process`

Process all stored messages in a session that were previously stored with process_messages=false.
    
    **Authentication Required**: Bearer token, API key, or session token
    
    This endpoint allows you to retroactively process messages that were initially stored 
    without processing. Useful for:
    - Processing messages after deciding you want them as memories
    - Batch processing large conversation sessions
    - Re-processing sessions with updated AI models
    
    **Processing Behavior**:
    - Only processes messages with status 'stored_only' or 'pending'
    - Uses the same smart batch analysis (every 15 messages)
    - Respects existing memory creation pipeline

## Path parameters

- `session_id` string, required

## Response `200`

Session messages queued for processing

- object — Generic JSON response object

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Session not found
- `422` — Validation Error
- `500` — Internal server error

## Changes

- **2026-06-11** `f29d29d1ad16` — 1 breaking
  - the response's body type changed from no type to `object` for status `200`
- **2026-06-11** `22d84aa060d6` — 1 breaking
  - the response's body type changed from `object` to no type for status `200`
- **2026-06-10** `02daa1da4e82` — 1 breaking
  - the response's body type changed from no type to `object` for status `200`
- **2026-03-13** `0e4854909d2a` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/v1/messages/sessions/:session_id/process/post.md)

---

[API](https://skmtc.dev/papr-ai/apis/papr-memory-api.md) · [All operations](https://skmtc.dev/papr-ai/apis/papr-memory-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/papr-ai/papr-memory-api/revisions/b553be9aad37/schema)
