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

# Refresh the current session

> Renew during recent foreground activity, at most once every 30 minutes per tab, with one request in flight. Let the browser manage the session cookie. JavaScript does not need access to the credential. Background polling and event streams do not renew sessions. A session expires after 12 hours without renewal or seven days after sign-in. On 401, preserve the current location and prompt for sign-in. A 503 indicates temporary unavailability.




## OpenAPI

````yaml /api/openapi.yaml post /api/v1/session/refresh
openapi: 3.1.0
info:
  title: OpenCluster Control Plane API
  version: 0.1.0
  description: >
    Use the OpenAPI document for the deployed version. Product operations use
    session

    cookies and resolve the Organization from the authenticated User.

    Include the configured public Origin on write requests.

    Collection cursors are opaque. Pass next unchanged to the cursor parameter

    documented by the operation. An empty next value ends pagination.

    Use HTTP status codes for error handling rather than parsing error text.
  license:
    name: Apache-2.0
servers:
  - url: http://localhost:8081
    description: Local self-hosted deployment
security: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Members
  - name: Sessions
  - name: Policy
  - name: Audit
  - name: Integration Types
  - name: Integrations
  - name: Relays
  - name: Incidents
  - name: Investigations
  - name: Conversations
  - name: Postmortems
  - name: Slack
  - name: Webhook Intake
paths:
  /api/v1/session/refresh:
    post:
      tags:
        - Sessions
      summary: Refresh the current session
      description: >
        Renew during recent foreground activity, at most once every 30 minutes
        per tab, with one request in flight. Let the browser manage the session
        cookie. JavaScript does not need access to the credential. Background
        polling and event streams do not renew sessions. A session expires after
        12 hours without renewal or seven days after sign-in. On 401, preserve
        the current location and prompt for sign-in. A 503 indicates temporary
        unavailability.
      operationId: refreshSession
      responses:
        '200':
          description: >-
            The effective expiration. A cookie is set only when the expiration
            changes.
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store
            Set-Cookie:
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                required:
                  - expiresAt
                additionalProperties: false
                properties:
                  expiresAt:
                    type: string
                    format: date-time
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '503':
          $ref: '#/components/responses/Unavailable'
      security:
        - SessionCookie: []
components:
  responses:
    Unauthorized:
      description: Missing or rejected credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Membership, permission, or cookie origin was rejected.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: A required configured capability is unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: string
          minLength: 1
          maxLength: 1024
          example: the requested resource is not available to this caller
        reason:
          type: string
          enum:
            - credential_rejected
            - session_expired
        requires:
          type: string
          minLength: 1
          maxLength: 128
  securitySchemes:
    SessionCookie:
      type: apiKey
      in: cookie
      name: __Host-OC-SESSIONID

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.