Skip to content

Get Full Session

client.Chat.Get(ctx, sessionID, query) (*ChatGetResponse, error)
GET/api/v1/chat/{session_id}

Retrieve a full session by ID, including its event history.

ParametersExpand Collapse
sessionID string
query ChatGetParams
OrganizationID param.Field[string]Optional
ProjectID param.Field[string]Optional
ReturnsExpand Collapse
type ChatGetResponse struct{…}

Full chat session including its complete event history.

Events []ChatGetResponseEventUnion

Ordered list of events that make up the conversation history.

One of the following:
type ChatGetResponseEventStop struct{…}
Error string
IsError bool
Usage ChatGetResponseEventStopUsage
DurationMs float64Optional
TotalInputTokens int64Optional
TotalOutputTokens int64Optional
Turns int64Optional
SkippedIndexIDs []stringOptional

Requested indexes this turn could not query.

Type stringOptional
type ChatGetResponseEventTextDelta struct{…}
Content string
Type stringOptional
type ChatGetResponseEventText struct{…}
Content string
Type stringOptional
type ChatGetResponseEventThinkingDelta struct{…}
Content string
Type stringOptional
type ChatGetResponseEventThinking struct{…}
Content string
Type stringOptional
type ChatGetResponseEventToolCall struct{…}
Arguments map[string, any]
CallID string
Name string
Type stringOptional
type ChatGetResponseEventToolResult struct{…}
CallID string
Name string
Result any
ImageAttachment ChatGetResponseEventToolResultImageAttachmentOptional

Coordinates for lazily resolving a page screenshot presigned URL.

AttachmentName string
SourceID string
Type stringOptional
type ChatGetResponseEventUserInput struct{…}
Content string
Type stringOptional
LastUpdatedAt string

ISO-format timestamp showing when the session was last updated.

SessionID string

Unique session identifier.

SharedAccess ChatGetResponseSharedAccess

What this chat’s share link grants: read_only (transcript only) or query (viewers may ask new questions).

One of the following:
const ChatGetResponseSharedAccessQuery ChatGetResponseSharedAccess = "query"
const ChatGetResponseSharedAccessReadOnly ChatGetResponseSharedAccess = "read_only"
GeneratedTitle stringOptional

Auto-generated title derived from the first user message.

IndexIDs []stringOptional

Indexes this session is bound to. Null on unbound sessions.

JobMetadata ChatGetResponseJobMetadataOptional

Token usage and status from the most recent run. Null if the session has not been run yet.

DurationMs float64Optional
Error stringOptional
ExportConfigIDs []stringOptional
IsError boolOptional
TotalInputTokens int64Optional
TotalOutputTokens int64Optional
Turns int64Optional

Get Full Session

package main

import (
  "context"
  "fmt"

  "github.com/run-llama/llama-parse-go"
  "github.com/run-llama/llama-parse-go/option"
)

func main() {
  client := llamacloud.NewClient(
    option.WithAPIKey("My API Key"),
  )
  chat, err := client.Chat.Get(
    context.TODO(),
    "session_id",
    llamacloud.ChatGetParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", chat.SessionID)
}
{
  "events": [
    {
      "error": "error",
      "is_error": true,
      "usage": {
        "duration_ms": 0,
        "total_input_tokens": 0,
        "total_output_tokens": 0,
        "turns": 0
      },
      "skipped_index_ids": [
        "string"
      ],
      "type": "stop"
    }
  ],
  "last_updated_at": "2026-04-22T12:34:41.342245",
  "session_id": "ses-abc123",
  "shared_access": "read_only",
  "generated_title": "What were the main findings in Q3?...",
  "index_ids": [
    "idx-abc123",
    "idx-def456"
  ],
  "job_metadata": {
    "duration_ms": 0,
    "error": "error",
    "export_config_ids": [
      "string"
    ],
    "is_error": true,
    "total_input_tokens": 0,
    "total_output_tokens": 0,
    "turns": 0
  }
}
Returns Examples
{
  "events": [
    {
      "error": "error",
      "is_error": true,
      "usage": {
        "duration_ms": 0,
        "total_input_tokens": 0,
        "total_output_tokens": 0,
        "turns": 0
      },
      "skipped_index_ids": [
        "string"
      ],
      "type": "stop"
    }
  ],
  "last_updated_at": "2026-04-22T12:34:41.342245",
  "session_id": "ses-abc123",
  "shared_access": "read_only",
  "generated_title": "What were the main findings in Q3?...",
  "index_ids": [
    "idx-abc123",
    "idx-def456"
  ],
  "job_metadata": {
    "duration_ms": 0,
    "error": "error",
    "export_config_ids": [
      "string"
    ],
    "is_error": true,
    "total_input_tokens": 0,
    "total_output_tokens": 0,
    "turns": 0
  }
}
Note for AI agents: this documentation is built for programmatic access. - Overview of all docs: https://developers.llamaindex.ai/llms.txt - Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md - Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters. - A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/for-agents/mcp/ - Other LlamaIndex tooling for agents — the LlamaParse Platform MCP server, agent skills and plugins, and the n8n node — is mapped at https://developers.llamaindex.ai/for-agents/