---
title: "A page of the conversation, parsed on read, about 2 MB of lines at a time"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.gitpando.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Pando API › sessions

`GET /v1/monorepos/{owner}/{monorepo}/sessions/{id}/entries`

## Authentication

Requires one of the following:

- `credential`, http, header `Authorization`
- `session`, apiKey, in cookie

## Path parameters

- `getSessionEntries.path.owner` (string, required) — The monorepo's owner, a namespace (a person's login or an organization). Matched without case.
  - pattern `^[a-z0-9](?:[a-z0-9]|-(?=[a-z0-9])){0,38}$`
- `getSessionEntries.path.monorepo` (string, required) — The monorepo's name within its owner (or an old name). Matched without case.
  - pattern `^[a-z0-9](?:[a-z0-9._]|-(?!-)){0,38}$`
- `getSessionEntries.path.id` (string, required)

## Query parameters

- `getSessionEntries.query.from` (integer, optional) — A `next_cursor` (0: the beginning).
  - min 0; default `0`

## Code samples

### cURL

```curl
curl --request GET \
  --url https://app.gitpando.com/v1/monorepos/string/string/sessions/string/entries \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://app.gitpando.com/v1/monorepos/string/string/sessions/string/entries';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.gitpando.com/v1/monorepos/string/string/sessions/string/entries"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "entries": [
    {
      "id": "string",
      "at": "2019-08-24T14:15:22Z",
      "kind": "prompt",
      "text": "string",
      "prompt": 0,
      "tool": "string",
      "input": "string",
      "result": "string",
      "ok": true,
      "by": "string"
    }
  ],
  "next_cursor": 0,
  "model_changes": [
    {
      "at": "2019-08-24T14:15:22Z",
      "model": "string"
    }
  ]
}
```

- `getSessionEntries.response.200.entries` (array<object>, required)
  - `getSessionEntries.response.200.entries.id` (string, required)
  - `getSessionEntries.response.200.entries.at` (string | null, required)
    - format `date-time`
  - `getSessionEntries.response.200.entries.kind` (string, required)
    - one of `"prompt"`, `"note"`, `"answer"`, `"tool"`, `"image"`, `"agent_message"`, `"removed"`
  - `getSessionEntries.response.200.entries.text` (string | null, required)
  - `getSessionEntries.response.200.entries.prompt` (integer | null, required)
  - `getSessionEntries.response.200.entries.tool` (string | null, required)
  - `getSessionEntries.response.200.entries.input` (string | null, required) — The first 2 KB.
  - `getSessionEntries.response.200.entries.result` (string | null, required) — The first 2 KB.
  - `getSessionEntries.response.200.entries.ok` (boolean | null, required)
  - `getSessionEntries.response.200.entries.by` (string | null, required) — A removed turn: who removed it.
- `getSessionEntries.response.200.next_cursor` (integer | null, required)
- `getSessionEntries.response.200.model_changes` (array<object>, required) — When the answering model changed, oldest first (on the first page only): an answer's model is the last change at or before it.
  - `getSessionEntries.response.200.model_changes.at` (string, required)
    - format `date-time`
  - `getSessionEntries.response.200.model_changes.model` (string, required)

### 410

An error

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "paths": [
      "string"
    ],
    "checks": {
      "sha": "string",
      "state": "success",
      "required": [
        "string"
      ],
      "checks_unknown": "string",
      "missing": [
        "string"
      ],
      "statuses": [
        {
          "sha": "string",
          "context": "string",
          "state": "pending",
          "target_url": "string",
          "description": "string",
          "creator": "string",
          "app": "string",
          "created_at": "2019-08-24T14:15:22Z"
        }
      ]
    }
  }
}
```

- `getSessionEntries.response.410.error` (object, required)
  - `getSessionEntries.response.410.error.code` (string, required)
  - `getSessionEntries.response.410.error.message` (string, required)
  - `getSessionEntries.response.410.error.paths` (array<string>, optional)
  - `getSessionEntries.response.410.error.checks` (object, optional) — GitHub's combined status, plus the required contexts and which are missing.
    - `getSessionEntries.response.410.error.checks.sha` (string | null, required)
    - `getSessionEntries.response.410.error.checks.state` (string, required) — `success` when the merge gate passes; `missing` when a required context has not reported; `unknown` while the required checks are (an unforced merge is refused).
      - one of `"success"`, `"pending"`, `"failure"`, `"error"`, `"missing"`, `"unknown"`
    - `getSessionEntries.response.410.error.checks.required` (array | null, required) — Null while unknown.
    - `getSessionEntries.response.410.error.checks.checks_unknown` (string | null, required) — Why the required checks are unknown, in plain words: "Pando couldn't read this monorepo's required checks; try again", or "pando.toml line 3: expected comma or end of structure; fix it on main, or merge with force". Null otherwise.
    - `getSessionEntries.response.410.error.checks.statuses` (array<object>, required) — The latest status per context.
      - `getSessionEntries.response.410.error.checks.statuses.sha` (string, required)
      - `getSessionEntries.response.410.error.checks.statuses.context` (string, required)
      - `getSessionEntries.response.410.error.checks.statuses.state` (string, required)
        - one of `"pending"`, `"success"`, `"failure"`, `"error"`
      - `getSessionEntries.response.410.error.checks.statuses.created_at` (string, required)
        - format `date-time`
      - `getSessionEntries.response.410.error.checks.statuses.target_url` (string | null, optional)
      - `getSessionEntries.response.410.error.checks.statuses.description` (string | null, optional)
      - `getSessionEntries.response.410.error.checks.statuses.creator` (string, optional) — The member who posted it (a login); `app:<slug>` for a status posted with a status token or by a CI integration; `hook:<hook id>` for a status token from a web hook with no app.
      - `getSessionEntries.response.410.error.checks.statuses.app` (string | null, optional) — The CI service that reported it (`buildkite`, `github-actions`, ...), stamped by Pando from a status token or a CI integration, never from the body or `target_url`. Null when a member posted it with their own credential. The web shows the service's mark for a slug it knows.
    - `getSessionEntries.response.410.error.checks.missing` (array<string>, optional)


Source: https://docs.gitpando.com/api/sessions/getSessionEntries/index.md
