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

# Process Session Messages

`POST /v1/messages/sessions/{sessionId}/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

- `sessionId` string, required

## Response `200`

Session messages queued for processing

- unknown

## Other responses

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

## Changes

- **2025-11-07** `14ff13755871` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/papr-ai/apis/papr-memory-api/changes/v1/messages/sessions/:sessionId/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.dev/papr-ai/apis/papr-memory-api/revisions/34b5e739fd20?raw)
