Skip to main content
GET
/
orgs
/
{org_id}
/
nodes
/
{node_id}
/
pull-requests
List Pull Requests
curl --request GET \
  --url https://api.example.com/orgs/{org_id}/nodes/{node_id}/pull-requests
{
  "prs": [
    {
      "id": "<string>",
      "node_id": "<string>",
      "number": 123,
      "title": "<string>",
      "source_branch": "<string>",
      "target_branch": "<string>",
      "source_commit": "<string>",
      "target_commit": "<string>",
      "status": "<string>",
      "is_draft": true,
      "author": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "author_email": "<string>",
      "merged_by": "<string>",
      "merged_by_email": "<string>",
      "closed_by": "<string>",
      "closed_by_email": "<string>",
      "merged_at": "2023-11-07T05:31:56Z",
      "closed_at": "2023-11-07T05:31:56Z",
      "can_merge": true,
      "merge_reason": "<string>",
      "commits_ahead": 123
    }
  ],
  "total_count": 123
}

Path Parameters

org_id
string
required
node_id
string
required

Query Parameters

status
string | null

Filter by status (open, merged, closed)

limit
integer
default:50

Max number of results

Required range: 1 <= x <= 100
offset
integer
default:0

Number of results to skip

Required range: x >= 0

Response

Successful Response

Response for listing pull requests.

prs
PullRequestResponse · object[]
required

List of pull requests

total_count
integer | null

Total count (if available)