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

# Process Session

> Manually trigger session processing to extract memories.

Force immediate processing of a session to extract long-term memories from the conversation history.
The session must be in PENDING status. Processing analyzes messages, extracts key facts,
and stores them as searchable memories.

**Path Parameters:**
- `custom_user_id` (str): Unique identifier for the user
- `session_id` (UUID): Session UUID to process

**Returns:**
- `detail` (str): Success confirmation message. Session status changes to PROCESSING, then PROCESSED when complete.



## OpenAPI

````yaml https://api.recallrai.com/api/openapi.json post /api/v1/users/{custom_user_id}/sessions/{session_id}/process
openapi: 3.1.0
info:
  title: api-backend
  description: This powers the Recallr AI API Backend
  version: 0.1.0
servers:
  - url: https://api.recallrai.com
    description: Production server
security: []
paths:
  /api/v1/users/{custom_user_id}/sessions/{session_id}/process:
    post:
      tags:
        - Sessions
      summary: Process Session
      description: >-
        Manually trigger session processing to extract memories.


        Force immediate processing of a session to extract long-term memories
        from the conversation history.

        The session must be in PENDING status. Processing analyzes messages,
        extracts key facts,

        and stores them as searchable memories.


        **Path Parameters:**

        - `custom_user_id` (str): Unique identifier for the user

        - `session_id` (UUID): Session UUID to process


        **Returns:**

        - `detail` (str): Success confirmation message. Session status changes
        to PROCESSING, then PROCESSED when complete.
      operationId: >-
        process_session_api_v1_users__custom_user_id__sessions__session_id__process_post
      parameters:
        - name: custom_user_id
          in: path
          required: true
          schema:
            type: string
            title: The custom user ID to process the session for
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: The session ID to process
        - name: X-Recallr-Project-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
            title: X-Recallr-Project-Id
        - name: X-Recallr-Api-Key
          in: header
          required: true
          schema:
            type: string
            title: X-Recallr-Api-Key
      responses:
        '200':
          description: Session marked for processing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProcessSessionResponse'
        '400':
          description: Bad request - Session not in pending state
        '401':
          description: Authentication required
        '404':
          description: User or session not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: Internal server error
components:
  schemas:
    ProcessSessionResponse:
      properties:
        detail:
          type: string
          title: Detail
          default: ok
      type: object
      title: ProcessSessionResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````