---
title: "Read the state of a pull request a project's run opened"
method: GET
path: "/experimental/projects/{projectId}/factory/pull-requests/{pullRequestNumber}"
tags: ["Projects", "Integrations"]
---

# Read the state of a pull request a project's run opened

`GET /experimental/projects/{projectId}/factory/pull-requests/{pullRequestNumber}`

## Request

- Base URL: `https://api.tessl.io`
- URL: `https://api.tessl.io/experimental/projects/{projectId}/factory/pull-requests/{pullRequestNumber}`
- Auth: none declared

Reads whether a pull request in the project's repository is open, merged or closed without merging. Only a pull request that a run in this project opened can be read; any other number returns 404. Returns 409 when the Tessl App is not installed on the repository for this workspace, or has not been granted read access to pull requests.

## Path parameters

- `projectId` string, uuid, required
- `pullRequestNumber` integer, required

## Headers

- `Authorization` string

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, required
    - `type` 'github-pull-request', required
    - `attributes` object, required
      - `number` integer, required
      - `url` string, uri, required
      - `state` union, required
        - 'open'
        - 'merged'
        - 'closed'
      - `draft` boolean, required: Whether the pull request is a draft.
      - `mergedAt` string, date-time, nullable, required
      - `closedAt` string, date-time, nullable, required
      - `mergedBy` object, nullable, required
        - `login` string, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `500`: Internal Server Error
- `502`: Bad Gateway

## Changes

- **2026-10-29** `06d2142ed144`: 1 info
  - api operation id `getProjectFactoryPullRequest` was added
- **2026-10-27** `2768b0628d3c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tessl/apis/tessl-api/changes/experimental/projects/:projectId/factory/pull-requests/:pullRequestNumber/get.md)

---

[API](https://skmtc.dev/tessl/apis/tessl-api.md) - [All operations](https://skmtc.dev/tessl/apis/tessl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tessl/apis/tessl-api/revisions/4fa2a17154e4?raw)
