> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yertle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Pull Requests

> List pull requests for a node.

Results are ordered newest-first and can be filtered by state via
`status=open|merged|closed`. Supports `limit`/`offset` pagination
(limit is capped at 100).



## OpenAPI

````yaml get /orgs/{org_id}/nodes/{node_id}/pull-requests
openapi: 3.1.0
info:
  title: Flow API
  description: Content-addressing backend with Git-like versioning
  version: 1.0.0
servers:
  - url: https://api.yertle.com
    description: Production
security: []
paths:
  /orgs/{org_id}/nodes/{node_id}/pull-requests:
    get:
      tags:
        - pull-requests
      summary: List Pull Requests
      description: |-
        List pull requests for a node.

        Results are ordered newest-first and can be filtered by state via
        `status=open|merged|closed`. Supports `limit`/`offset` pagination
        (limit is capped at 100).
      operationId: list_pull_requests_orgs__org_id__nodes__node_id__pull_requests_get
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            title: Org Id
        - name: node_id
          in: path
          required: true
          schema:
            type: string
            title: Node Id
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by status (open, merged, closed)
            title: Status
          description: Filter by status (open, merged, closed)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            description: Max number of results
            default: 50
            title: Limit
          description: Max number of results
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            description: Number of results to skip
            default: 0
            title: Offset
          description: Number of results to skip
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPRResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ListPRResponse:
      properties:
        prs:
          items:
            $ref: '#/components/schemas/PullRequestResponse'
          type: array
          title: Prs
          description: List of pull requests
        total_count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Count
          description: Total count (if available)
      type: object
      required:
        - prs
      title: ListPRResponse
      description: Response for listing pull requests.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PullRequestResponse:
      properties:
        id:
          type: string
          title: Id
          description: PR unique identifier
        node_id:
          type: string
          title: Node Id
          description: Node this PR belongs to
        number:
          type: integer
          title: Number
          description: PR number
        title:
          type: string
          title: Title
          description: PR title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: PR description
        source_branch:
          type: string
          title: Source Branch
          description: Source branch name
        target_branch:
          type: string
          title: Target Branch
          description: Target branch name
        source_commit:
          type: string
          title: Source Commit
          description: Source commit ID
        target_commit:
          type: string
          title: Target Commit
          description: Target commit ID
        status:
          type: string
          title: Status
          description: PR status (open, merged, closed)
        is_draft:
          type: boolean
          title: Is Draft
          description: Whether PR is draft
        author:
          type: string
          title: Author
          description: PR author
        author_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Author Email
          description: Author email address
        merged_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Merged By
          description: Who merged the PR
        merged_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Merged By Email
          description: Merger email address
        closed_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Closed By
          description: Who closed the PR
        closed_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Closed By Email
          description: Closer email address
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When PR was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When PR was last updated
        merged_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Merged At
          description: When PR was merged
        closed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Closed At
          description: When PR was closed
        can_merge:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Can Merge
          description: Whether PR can be merged now
        merge_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Merge Reason
          description: Reason if cannot merge
        commits_ahead:
          anyOf:
            - type: integer
            - type: 'null'
          title: Commits Ahead
          description: Commits ahead of target branch
      type: object
      required:
        - id
        - node_id
        - number
        - title
        - source_branch
        - target_branch
        - source_commit
        - target_commit
        - status
        - is_draft
        - author
        - created_at
        - updated_at
      title: PullRequestResponse
      description: Response model for pull request data.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````