Skip to content

Get Full Session

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

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

ParametersExpand Collapse
sessionID string
query BetaChatGetParams
OrganizationID param.Field[string]optional
ProjectID param.Field[string]optional
ReturnsExpand Collapse
type BetaChatGetResponse struct{…}

Full chat session including its complete event history.

Events []BetaChatGetResponseEventUnion

Ordered list of events that make up the conversation history.

One of the following:
type BetaChatGetResponseEventThinkingDelta struct{…}
Content string
Type stringoptional
type BetaChatGetResponseEventTextDelta struct{…}
Content string
Type stringoptional
type BetaChatGetResponseEventThinking struct{…}
Content string
Type stringoptional
type BetaChatGetResponseEventText struct{…}
Content string
Type stringoptional
type BetaChatGetResponseEventToolCall struct{…}
Arguments map[string, any]
CallID string
Name string
Type stringoptional
type BetaChatGetResponseEventToolResult struct{…}
CallID string
Name string
Result any
ImageAttachment BetaChatGetResponseEventToolResultImageAttachmentoptional

Coordinates for lazily resolving a page screenshot presigned URL.

AttachmentName string
SourceID string
Type stringoptional
type BetaChatGetResponseEventStop struct{…}
Error string
IsError bool
Usage BetaChatGetResponseEventStopUsage
DurationMs float64optional
TotalInputTokens int64optional
TotalOutputTokens int64optional
Turns int64optional
Type stringoptional
type BetaChatGetResponseEventUserInput struct{…}
Content string
Type stringoptional
LastUpdatedAt string

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

SessionID string

Unique session identifier.

GeneratedTitle stringoptional

Auto-generated title derived from the first user message.

IndexIDs []stringoptional

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

JobMetadata BetaChatGetResponseJobMetadataoptional

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 := llamacloudprod.NewClient(
    option.WithAPIKey("My API Key"),
  )
  chat, err := client.Beta.Chat.Get(
    context.TODO(),
    "session_id",
    llamacloudprod.BetaChatGetParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", chat.SessionID)
}
{
  "events": [
    {
      "content": "content",
      "type": "thinking_delta"
    }
  ],
  "last_updated_at": "2026-04-22T12:34:41.342245",
  "session_id": "ses-abc123",
  "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": [
    {
      "content": "content",
      "type": "thinking_delta"
    }
  ],
  "last_updated_at": "2026-04-22T12:34:41.342245",
  "session_id": "ses-abc123",
  "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/python/shared/mcp/