---
title: "One issue, with its body, links, participants and reactions"
---

> 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/{number}`

## Authentication

Requires one of the following:

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

## Path parameters

- `getIssue.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}$`
- `getIssue.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}$`
- `getIssue.path.number` (integer, required)
  - min 1

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "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"
  },
  "body": "string",
  "body_version": 0,
  "machine": "string",
  "links": [
    {
      "repo": "string",
      "repo_path": "string",
      "branch": "string",
      "sources": [
        "link"
      ],
      "sha": "string",
      "linked_by": "string",
      "branch_state": "open",
      "merged_at": "2019-08-24T14:15:22Z",
      "closed_issue": true
    }
  ],
  "participants": [
    "string"
  ],
  "reactions": [
    {
      "content": "+1",
      "count": 0,
      "by": [
        "string"
      ]
    }
  ]
}
```

- `getIssue.response.200.number` (integer, required)
- `getIssue.response.200.title` (string, required)
- `getIssue.response.200.state` (string, required)
  - one of `"open"`, `"closed"`
- `getIssue.response.200.state_reason` (string | null, required)
  - one of `"completed"`, `"not_planned"`, `null`
- `getIssue.response.200.project` (string | null, required) — A repo's name; null for the monorepo as a whole.
- `getIssue.response.200.project_path` (string | null, required)
- `getIssue.response.200.labels` (array<object>, required)
  - `getIssue.response.200.labels.name` (string, required) — 1 to 50 characters, unique ignoring case.
  - `getIssue.response.200.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"`
  - `getIssue.response.200.labels.description` (string | null, required)
- `getIssue.response.200.assignees` (array<string>, required)
- `getIssue.response.200.author` (string, required)
- `getIssue.response.200.comments` (integer, required)
- `getIssue.response.200.tasks` (object | null, required) — `- [ ]` and `- [x]` lines in the body; null without a task list.
  - `getIssue.response.200.tasks.done` (integer, optional)
  - `getIssue.response.200.tasks.total` (integer, optional)
- `getIssue.response.200.linked_branches` (integer, required)
- `getIssue.response.200.created_at` (string, required)
  - format `date-time`
- `getIssue.response.200.updated_at` (string, required)
  - format `date-time`
- `getIssue.response.200.closed_at` (string | null, required)
  - format `date-time`
- `getIssue.response.200.closed_by` (string | null, required)
- `getIssue.response.200.closed_by_merge` (one of, required)
  - one of: [IssueMerge](/api/schemas/IssueMerge/), `null`
- `getIssue.response.200.body` (string, required)
- `getIssue.response.200.body_version` (integer, required) — Goes up by one on every body edit.
- `getIssue.response.200.machine` (string | null, required) — The machine that opened it.
- `getIssue.response.200.links` (array<object>, required)
  - `getIssue.response.200.links.repo` (string, required)
  - `getIssue.response.200.links.repo_path` (string, required)
  - `getIssue.response.200.links.branch` (string, required)
  - `getIssue.response.200.links.sources` (array<string>, required)
    - one of `"link"`, `"title"`, `"commit"`
  - `getIssue.response.200.links.sha` (string | null, required) — `commit`: the newest commit on the branch naming the issue.
  - `getIssue.response.200.links.linked_by` (string | null, required) — `link`: who linked it.
  - `getIssue.response.200.links.branch_state` (string, required)
    - one of `"open"`, `"ready"`, `"conflicts"`, `"failing"`, `"merged"`, `"deleted"`
  - `getIssue.response.200.links.merged_at` (string | null, required)
    - format `date-time`
  - `getIssue.response.200.links.closed_issue` (boolean, required) — This branch's merge closed the issue.
- `getIssue.response.200.participants` (array<string>, required)
- `getIssue.response.200.reactions` (array<object>, required) — Those given at least once, in GitHub's order.
  - `getIssue.response.200.reactions.content` (string, required)
    - one of `"+1"`, `"-1"`, `"laugh"`, `"hooray"`, `"confused"`, `"heart"`, `"rocket"`, `"eyes"`
  - `getIssue.response.200.reactions.count` (integer, required)
  - `getIssue.response.200.reactions.by` (array<string>, required) — Logins

### 404

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

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


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