---
search:
  tags:
    - Sessions
    - GET
seo:
  description: >-
    Return the rolling summary and newest message tail that fits the token
    budget. Reference for the GET /api/v2/sessions/{id}/context endpoint in the
    Anlyon API.
sidebar:
  label: Get prompt-ready session context
  badge: GET
title: Get prompt-ready session context
type: openapi-operation
---
Return the rolling summary and newest message tail that fits the token budget.

`GET /api/v2/sessions/{id}/context`
