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

# Pre-warm sessions cache for the active project

> Pre-warm OpenSearch shards + Redis list cache for the active project.
Fire-and-forget: returns {ok:true} immediately while the warmup runs in
the background. Triggered from the frontend right before a session query
is likely (sidebar hover, global search modal mount, RecipientPicker mount,
periodic refresh while on the Sessions page) so the user doesn't pay the
cold-shard penalty on first interaction.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json post /sessions/warmup
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /sessions/warmup:
    post:
      tags:
        - Session
      summary: Pre-warm sessions cache for the active project
      description: >-
        Pre-warm OpenSearch shards + Redis list cache for the active project.

        Fire-and-forget: returns {ok:true} immediately while the warmup runs in

        the background. Triggered from the frontend right before a session query

        is likely (sidebar hover, global search modal mount, RecipientPicker
        mount,

        periodic refresh while on the Sessions page) so the user doesn't pay the

        cold-shard penalty on first interaction.
      operationId: WarmupSessions
      parameters:
        - in: header
          name: project
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                properties:
                  ok:
                    type: boolean
                required:
                  - ok
                type: object
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````