---
title: "Ask a question about the code; the page is built from Pando's records"
description: "Records the page, runs the first pass with no model (blame on the\nlines asked about through Pando's own objects, the sessions, agents,\nissues and shared files their commits name; for a question with no\nscope, a search of the shared files and the sessions' prompts), then\nlaunches an agent session of kind understand (no sandbox) and answers\nthe page as it stands. The session's lookups register each record they\nfind as a ref (r1, r2) with its card filled by the server; its place\ntool writes paragraphs that may cite only those refs. Every member can\nread a page; only its asker sends follow-ups. `scope` is\n`{kind: lines, repo, path, ref, start, end}` (at most 400 lines; `ref`\na branch or a full sha) or `{kind: commit, repo, sha}`; `from` says\nwhere it was asked (files_changed with its branch, commit, assistant).\n"
---

> 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 › understand

`POST /v1/monorepos/{owner}/{monorepo}/understand`

Records the page, runs the first pass with no model (blame on the
lines asked about through Pando's own objects, the sessions, agents,
issues and shared files their commits name; for a question with no
scope, a search of the shared files and the sessions' prompts), then
launches an agent session of kind understand (no sandbox) and answers
the page as it stands. The session's lookups register each record they
find as a ref (r1, r2) with its card filled by the server; its place
tool writes paragraphs that may cite only those refs. Every member can
read a page; only its asker sends follow-ups. `scope` is
`{kind: lines, repo, path, ref, start, end}` (at most 400 lines; `ref`
a branch or a full sha) or `{kind: commit, repo, sha}`; `from` says
where it was asked (files_changed with its branch, commit, assistant).

## Authentication

Requires one of the following:

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

## Path parameters

- `askUnderstand.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}$`
- `askUnderstand.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}$`

## Request body

_Required._

- `askUnderstand.question` (string, required)
  - maxLength 2000
- `askUnderstand.scope` (object, optional)
- `askUnderstand.from` (object, optional)
- `askUnderstand.model` (string, optional)

## Example request

```json
{
  "question": "string",
  "scope": {},
  "from": {},
  "model": "string"
}
```

## Code samples

### cURL

```curl
curl --request POST \
  --url https://app.gitpando.com/v1/monorepos/string/string/understand \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "question": "string",
  "scope": {},
  "from": {},
  "model": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://app.gitpando.com/v1/monorepos/string/string/understand';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({question: 'string', scope: {}, from: {}, model: 'string'})
};

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/understand"

payload = {
    "question": "string",
    "scope": {},
    "from": {},
    "model": "string"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 201

Asked

#### Example

```json
{}
```


Source: https://docs.gitpando.com/api/understand/askUnderstand/index.md
