---
title: "List AI agent thread pull requests"
method: GET
path: "/api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/threads/{threadUuid}/pull-requests"
---

# List AI agent thread pull requests

`GET /api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/threads/{threadUuid}/pull-requests`

List every pull request the coding agent has opened in this thread (its
workstreams), each enriched with live PR state where available. A thread
can drive several PRs across one or more repos.

## Path parameters

- `projectUuid` string, required
- `agentUuid` string, required
- `threadUuid` string, required

## Response `200`

Success

- ApiAiAgentThreadWorkstreamsResponse
  - `results` AiAgentThreadWorkstream[], required
    - `state` 'open' | 'merged' | 'closed' | 'null', nullable, required
    - `summary` string, nullable, required
    - `title` string, nullable, required
    - `prNumber` number, double, required
    - `repository` string, required
    - `prUrl` string, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.dev/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/revisions/40c933755c9a/schema)
