> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pensar.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pensar.dev/_mcp/server.

# List issues

GET https://api.pensar.dev/issues

Unpaginated. For close reasons and the full record, use [Get an issue](/console/api/api-reference/issues/get-issue). To be told about new findings instead of polling, register a [webhook endpoint](/console/features/webhooks).

Requires the `issues:read` API key scope.

Reference: https://docs.pensar.dev/api/api-reference/issues/list-issues

## Authentication

- `Authorization` header (bearer token, required) — A workspace API key, sent as `Authorization: Bearer`.
- `x-api-key` header (required) — A workspace API key, sent as `x-api-key`.

## Request

### Query parameters

- `scanId` (string, optional) — Only issues from this pentest.
- `status` (enum, optional)
  - Allowed values: `open`, `closed`, `false-positive`, `in-review`
- `severity` (enum, optional)
  - Allowed values: `critical`, `high`, `medium`, `low`
- `branch` (string, optional)

## Response

### 200

Matching issues.

- `list of IssueSummary`

## Errors

### 401 Unauthorized Error

The API key is missing or invalid.

- `error` (string, required) — What went wrong, naming the offending value when useful.

### 403 Forbidden Error

The credential lacks the required scope or is not allowed this action.

- `error` (string, required) — What went wrong, naming the offending value when useful.

## Types

### IssueSummary

- `id` (string, required)
- `issueLabel` (string, required, nullable) — Human-facing reference shown in the Console.
- `title` (string, required)
- `severity` (enum, required)
  - Allowed values: `critical`, `high`, `medium`, `low`
- `status` (enum, required)
  - Allowed values: `open`, `closed`, `false-positive`, `in-review`
- `location` (string, required)
- `url` (string, required) — Console link to the issue.
- `closedAt` (datetime, required, nullable)
- `closedDisposition` (enum, required, nullable) — Structured close verdict. `other` appears only on findings closed before it was retired and cannot be written.
  - Allowed values: `resolved`, `duplicate`, `wont-fix`, `out-of-scope`, `risk-accepted`, `other`
- `duplicateOf` (string, required, nullable)

## Examples

**Response**

```json
[
  {
    "id": "string",
    "issueLabel": "VULN-000123",
    "title": "string",
    "severity": "critical",
    "status": "open",
    "location": "src/auth/login.ts",
    "url": "string",
    "closedAt": "2024-01-15T09:30:00Z",
    "closedDisposition": "resolved",
    "duplicateOf": "string"
  }
]
```

**SDK Code**

```python
import requests

url = "https://api.pensar.dev/issues"

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

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

print(response.json())
```

```javascript
const url = 'https://api.pensar.dev/issues';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.pensar.dev/issues"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.pensar.dev/issues")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.pensar.dev/issues")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.pensar.dev/issues', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.pensar.dev/issues");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.pensar.dev/issues")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```