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

---

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