---
title: "A page of issues, and the open and closed counts for the same filters"
description: "Keyset paging: pass `next_cursor` back as `cursor`. `q` matches words\nin titles and bodies (SQLite FTS5): each word must appear, the last as\na prefix, up to 10 words; comments are not searched. Results keep the\nchosen sort.\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 › issues

`GET /v1/monorepos/{owner}/{monorepo}/issues`

Keyset paging: pass `next_cursor` back as `cursor`. `q` matches words
in titles and bodies (SQLite FTS5): each word must appear, the last as
a prefix, up to 10 words; comments are not searched. Results keep the
chosen sort.

## Authentication

Requires one of the following:

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

## Path parameters

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

## Query parameters

- `listIssues.query.state` (string, optional)
  - one of `"open"`, `"closed"`, `"all"`; default `"open"`
- `listIssues.query.label` (string, optional) — Repeat for several: every one must match.
- `listIssues.query.assignee` (string, optional) — A login, `@me`, or `none`.
- `listIssues.query.author` (string, optional) — A login, or `@me`.
- `listIssues.query.project` (string, optional) — A repo's name, or `none`.
- `listIssues.query.linked` (string, optional) — `<repo>:<branch>`: the issues that branch is linked to (the branch page's Issues block).
- `listIssues.query.q` (string, optional)
- `listIssues.query.sort` (string, optional)
  - one of `"created"`, `"updated"`, `"comments"`; default `"created"`
- `listIssues.query.order` (string, optional)
  - one of `"desc"`, `"asc"`; default `"desc"`
- `listIssues.query.cursor` (string, optional)
- `listIssues.query.limit` (integer, optional)
  - min 1; max 100; default `30`

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://app.gitpando.com/v1/monorepos/string/string/issues';
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/issues"

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "issues": [
    {
      "number": 0,
      "title": "string",
      "state": "open",
      "state_reason": "completed",
      "project": "string",
      "project_path": "string",
      "labels": [
        {
          "name": "string",
          "color": "gray",
          "description": "string"
        }
      ],
      "assignees": [
        "string"
      ],
      "author": "string",
      "comments": 0,
      "tasks": {
        "done": 0,
        "total": 0
      },
      "linked_branches": 0,
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z",
      "closed_at": "2019-08-24T14:15:22Z",
      "closed_by": "string",
      "closed_by_merge": {
        "repo": "string",
        "repo_path": "string",
        "branch": "string",
        "merge_commit": "string"
      }
    }
  ],
  "counts": {
    "open": 0,
    "closed": 0
  },
  "next_cursor": "string"
}
```

- `listIssues.response.200.issues` (array<object>, required)
  - `listIssues.response.200.issues.number` (integer, required)
  - `listIssues.response.200.issues.title` (string, required)
  - `listIssues.response.200.issues.state` (string, required)
    - one of `"open"`, `"closed"`
  - `listIssues.response.200.issues.state_reason` (string | null, required)
    - one of `"completed"`, `"not_planned"`, `null`
  - `listIssues.response.200.issues.project` (string | null, required) — A repo's name; null for the monorepo as a whole.
  - `listIssues.response.200.issues.project_path` (string | null, required)
  - `listIssues.response.200.issues.labels` (array<object>, required)
    - `listIssues.response.200.issues.labels.name` (string, required) — 1 to 50 characters, unique ignoring case.
    - `listIssues.response.200.issues.labels.color` (string, required) — Each theme sets the eight from its own tokens (no red, so a label never reads as a failure).
      - one of `"gray"`, `"orange"`, `"yellow"`, `"green"`, `"teal"`, `"blue"`, `"purple"`, `"pink"`
    - `listIssues.response.200.issues.labels.description` (string | null, required)
  - `listIssues.response.200.issues.assignees` (array<string>, required)
  - `listIssues.response.200.issues.author` (string, required)
  - `listIssues.response.200.issues.comments` (integer, required)
  - `listIssues.response.200.issues.tasks` (object | null, required) — `- [ ]` and `- [x]` lines in the body; null without a task list.
    - `listIssues.response.200.issues.tasks.done` (integer, optional)
    - `listIssues.response.200.issues.tasks.total` (integer, optional)
  - `listIssues.response.200.issues.linked_branches` (integer, required)
  - `listIssues.response.200.issues.created_at` (string, required)
    - format `date-time`
  - `listIssues.response.200.issues.updated_at` (string, required)
    - format `date-time`
  - `listIssues.response.200.issues.closed_at` (string | null, required)
    - format `date-time`
  - `listIssues.response.200.issues.closed_by` (string | null, required)
  - `listIssues.response.200.issues.closed_by_merge` (one of, required)
    - one of: [IssueMerge](/api/schemas/IssueMerge/), `null`
- `listIssues.response.200.counts` (object, required) — For the same filters, in either state.
  - `listIssues.response.200.counts.open` (integer, required)
  - `listIssues.response.200.counts.closed` (integer, required)
- `listIssues.response.200.next_cursor` (string | null, required)

### 400

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"
        }
      ]
    }
  }
}
```

- `listIssues.response.400.error` (object, required)
  - `listIssues.response.400.error.code` (string, required)
  - `listIssues.response.400.error.message` (string, required)
  - `listIssues.response.400.error.paths` (array<string>, optional)
  - `listIssues.response.400.error.checks` (object, optional) — GitHub's combined status, plus the required contexts and which are missing.
    - `listIssues.response.400.error.checks.sha` (string | null, required)
    - `listIssues.response.400.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"`
    - `listIssues.response.400.error.checks.required` (array | null, required) — Null while unknown.
    - `listIssues.response.400.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.
    - `listIssues.response.400.error.checks.statuses` (array<object>, required) — The latest status per context.
      - `listIssues.response.400.error.checks.statuses.sha` (string, required)
      - `listIssues.response.400.error.checks.statuses.context` (string, required)
      - `listIssues.response.400.error.checks.statuses.state` (string, required)
        - one of `"pending"`, `"success"`, `"failure"`, `"error"`
      - `listIssues.response.400.error.checks.statuses.created_at` (string, required)
        - format `date-time`
      - `listIssues.response.400.error.checks.statuses.target_url` (string | null, optional)
      - `listIssues.response.400.error.checks.statuses.description` (string | null, optional)
      - `listIssues.response.400.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.
      - `listIssues.response.400.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.
    - `listIssues.response.400.error.checks.missing` (array<string>, optional)


Source: https://docs.gitpando.com/api/issues/listIssues/index.md
