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

# Get session transcript using JWE payload

[Back to the Analytics APIs overview](https://koreai.mintlify.site/agent-platform/api-reference/analytics-overview.md)

Use this endpoint to read the transcript of one saved session, with the parameters in the request body instead of the URL. It returns the same response as [the corresponding GET endpoint](https://koreai.mintlify.site/agent-platform/api-reference/analytics-get-session-transcript). For the response fields and errors, see that article.

Use the `POST` endpoint when the request parameters must be encrypted. When request encryption is on for the Platform Key, send the body as an encrypted JWE. For details, see [List conversation messages using JWE payload](https://koreai.mintlify.site/agent-platform/api-reference/analytics-list-conversation-messages-with-encrypted-payload). When response encryption is on, the endpoint returns encrypted responses, as for the other analytics endpoints.

## Prerequisites

* A Platform Key bound to the project, sent in the `x-api-key` header, with the `session:read` permission.
* The ID of a session in the project.
* For `includeSummary`, a model bound to the `conversation_summary` feature in the project.

## Request

Send the session ID in the path. The path takes one ID. A comma-separated list returns `400 SINGLE_SESSION_ONLY`. Set `Content-Type` to `application/json` or `application/jose+json`. Any other type returns `415 UNSUPPORTED_MEDIA_TYPE`.

The body is optional. When you send one, it is a flat JSON object with these keys. An unknown key returns `400`.

| Key | Description |
| :- | :- |
| `cursor` | The `nextCursor` value from the previous page. Omit it for the first page. |
| `limit` | The number of messages per page, from 1 to 200. The default is 50. |
| `includeSummary` | A boolean. When `true`, the first page includes `data.summary`. The default is `false`. |

For the paging rules, the summary behavior, and the summary fields, see [Include a summary](https://koreai.mintlify.site/agent-platform/api-reference/analytics-get-session-transcript#include-a-summary) in the GET article.

Example body for the first page with a summary:

```json theme={null}
{ "includeSummary": true, "limit": 50 }
```

***

**Related articles:**

* [Get session transcript](https://koreai.mintlify.site/agent-platform/api-reference/analytics-get-session-transcript): The GET form, with the response fields and errors.
* [Generate conversation summary](https://koreai.mintlify.site/agent-platform/api-reference/analytics-generate-conversation-summary): Summarize a saved session or a transcript that you send.


## OpenAPI

````yaml agent-platform/api-specs/analytics-session-transcript.yaml post /api/public/analytics/projects/{projectId}/sessions/{sessionId}/transcript
openapi: 3.1.0
info:
  title: Artemis Analytics Session Transcript API
  version: 1.1.0
  summary: >-
    Read the transcript of one session, optionally with its conversation
    summary.
  description: >
    Returns the customer-visible messages of one saved session in conversation

    order, one page at a time. PII-scrubbed content stays scrubbed. Every call
    is

    audit-logged.


    `includeSummary` adds `data.summary` to the first page (no `cursor`). 

    The summary is the same one `/conversation-summary` returns for the
    session: 

    same prompt, model, PII handling, limits, 30-second deadline and
    `llm_metrics` row.

    It covers the whole saved session, not only the returned page. 

    On later pages the flag is accepted and ignored. With the flag off (the
    default) 

    the response is unchanged and no model call is made. A failed summary
    doesn't 

    fail the request: the response is still 200, with `summary.text` null and
    `summary.error` set.


    Authenticate with the `x-api-key` header. The key must be bound to the

    project and have `session:read`. The POST form takes the same parameters in

    a JSON body; request and response encryption follow the Platform Key

    settings.
servers:
  - url: https://agents.kore.ai
security:
  - PlatformKey: []
paths:
  /api/public/analytics/projects/{projectId}/sessions/{sessionId}/transcript:
    parameters:
      - $ref: '#/components/parameters/ProjectId'
      - $ref: '#/components/parameters/SessionId'
    post:
      tags:
        - Session Transcript
      summary: Get a session transcript (POST form)
      operationId: postPublicAnalyticsSessionTranscript
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TranscriptRequestBody'
            examples:
              firstPageWithSummary:
                value:
                  includeSummary: true
                  limit: 50
              nextPage:
                value:
                  cursor: eyJ2IjoyLCJtIjoi...
                  limit: 50
          application/jose+json:
            schema:
              type: string
              description: Compact JWE request envelope when request encryption is on.
      responses:
        '200':
          description: One page of the transcript.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranscriptResponse'
              examples:
                withSummary:
                  $ref: '#/components/examples/TranscriptWithSummary'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '500':
          $ref: '#/components/responses/Error'
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
        minLength: 1
    SessionId:
      name: sessionId
      in: path
      required: true
      description: One session id. A comma-separated list returns 400 SINGLE_SESSION_ONLY.
      schema:
        type: string
        minLength: 1
  schemas:
    TranscriptRequestBody:
      type: object
      additionalProperties: false
      properties:
        cursor:
          type: string
        limit:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
        includeSummary:
          type: boolean
          default: false
    TranscriptResponse:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          const: true
        data:
          type: object
          required:
            - sessionId
            - turns
            - nextCursor
            - hasMore
            - ordering
          properties:
            sessionId:
              type: string
            turns:
              type: array
              items:
                $ref: '#/components/schemas/TranscriptTurn'
            nextCursor:
              type:
                - string
                - 'null'
              description: Pass as `cursor` to read the next page. Null on the last page.
            hasMore:
              type: boolean
            ordering:
              type: object
              properties:
                mode:
                  type: string
                  example: durable
                version:
                  type: integer
                  example: 2
            summary:
              $ref: '#/components/schemas/TranscriptSummary'
    TranscriptTurn:
      type: object
      required:
        - messageId
        - role
        - timestamp
        - content
      properties:
        messageId:
          type: string
        role:
          type: string
          example: user
          description: For example user or assistant.
        timestamp:
          type: string
          format: date-time
        content:
          description: Message content after the PII read policy.
    TranscriptSummary:
      type: object
      description: >-
        Present only when `includeSummary` is true and the request has no
        `cursor`.
      required:
        - text
        - messageCount
        - summarizedMessageCount
        - truncated
        - requestId
      properties:
        text:
          type:
            - string
            - 'null'
          description: Summary after the PII read policy. Null when generation failed.
        messageCount:
          type: integer
          description: User and assistant messages in the session.
        summarizedMessageCount:
          type: integer
          description: Messages sent to the model. 0 when no model call was made.
        truncated:
          type: boolean
          description: True when the oldest messages were left out to fit the input budget.
        requestId:
          type:
            - string
            - 'null'
          description: Finds the model call in the LLM ledger. Null when no model call ran.
        error:
          type: object
          description: Present only on failure. The transcript response is still 200.
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - NO_SUMMARIZABLE_MESSAGES
                - SUMMARY_MODEL_NOT_CONFIGURED
                - SUMMARY_MODEL_FAILED
                - SUMMARY_TIMEOUT
            message:
              type: string
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            resetRequired:
              type: boolean
  examples:
    TranscriptWithSummary:
      value:
        success: true
        data:
          sessionId: c6c7dfd6-3988-468b-89b2-86907d5acbba
          turns:
            - messageId: msg_01
              role: assistant
              timestamp: '2026-11-26T10:00:00.000Z'
              content: Welcome to Venus Bank! May I have your customer ID?
            - messageId: msg_02
              role: user
              timestamp: '2026-11-26T10:00:05.000Z'
              content: cust-001
          nextCursor: null
          hasMore: false
          ordering:
            mode: durable
            version: 2
          summary:
            text: The customer asked about their credit cards. ...
            messageCount: 13
            summarizedMessageCount: 13
            truncated: false
            requestId: sum_7f3c2a9e4b1d4c0a
  responses:
    Error:
      description: |
        Error envelope. Codes: SINGLE_SESSION_ONLY, INVALID_QUERY_PARAMETER,
        INVALID_REQUEST_BODY, ENCRYPTED_PAYLOAD_INVALID, cursor errors (400,
        `resetRequired` tells the caller to restart from the first page);
        AUTHENTICATION_REQUIRED (401); FORBIDDEN (403); NOT_FOUND (404, also
        returned for a session in another project); UNSUPPORTED_MEDIA_TYPE
        (415); RATE_LIMITED (429); TRANSCRIPT_FAILED (500).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    PlatformKey:
      type: apiKey
      in: header
      name: x-api-key

````

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