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

# List reviewed pull requests with their review runs

> One group per reviewed pull request, newest activity first: the later of its newest run and its merge. view=queue returns open pull requests only, needs_attention first. Every list pages by cursor: send the previous page's next_cursor as cursor; next_cursor is null on the last page, and a group created after the first page was read never shifts a later page. A malformed cursor, or one minted for a different view, filter set or q, is a 400. include_unreviewed=true adds one group per other pull request of a repository the organization has a non-archived project for, with an empty reviews array, no verdict, a null comment_count, needs_attention false, and latest_created_at the pull request's open time; it is false when omitted, and reviews is never empty without it. A list with include_unreviewed is in GitHub's order, newest opened first, holds open pull requests unless pr_state names others (a pull request whose state the mirror has not recorded is in neither), and view=queue with it is a 400. status=unreviewed matches a group with no runs and every other status leaves it out. Every group of a list with include_unreviewed carries its section: in_review while its newest run is reviewing, approved when that run completed with a standing verdict of APPROVE on the pull request's current head, other for anything else, a merged or closed pull request and one with no runs included. section=<key> keeps one section in the same order, and a cursor from any page of the same list (with or without section) pages inside it. counts=true adds sections, the count of every non-empty section of the whole list (view, viewer, filters and project; not section), in the order in_review, approved, other. section and counts need include_unreviewed, and counts reads a first page: it takes no cursor and no section (each a 400). drafts=exclude leaves draft pull requests out; it narrows the pages and the counts, enters the cursor's scope, and needs include_unreviewed (a 400 without it). q searches the list: it is trimmed and an empty q is no search; all digits, or # and digits, keeps the pull request with that number, and anything else keeps the pull requests whose title holds its whitespace-separated words in order, case-insensitively. q narrows the pages and the counts, enters the cursor's scope, and needs include_unreviewed; without it, over 200 characters, or a number beyond a pull request number's range, it is a 400. Without include_unreviewed no group carries a section. Sections and the review-run status are resolved server-side so the listing can be paginated by group. needs_attention marks an open group requiring user action from its newest run or posted verdict. status and pr_state are comma-joined filters; status matches the group's LATEST run status — the status the list row displays — not any run in the group. viewer=author keeps the pull requests the caller opened, by the GitHub login their connection stores or by one of their tasks publishing it, and viewer=involved adds the ones they review, by that login; every group carries the caller's viewer_standing. author, reviewer, repo_owner and repo_name match GitHub logins and repository coordinates case-insensitively; a reviewer has a user review request or a submitted review and is never the author. opened_after and updated_after (inclusive) and opened_before and updated_before (exclusive) are UTC instants bounding when the pull request was opened and GitHub's last update to it, and an empty window is a 400. A pull request mirrored before Aether kept GitHub's open time is dated by when Aether first saw it.



## OpenAPI

````yaml api-reference/openapi.json GET /orgs/{orgID}/pr-reviews
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /orgs/{orgID}/pr-reviews:
    get:
      tags:
        - pr-reviews
      summary: List reviewed pull requests with their review runs
      description: >-
        One group per reviewed pull request, newest activity first: the later of
        its newest run and its merge. view=queue returns open pull requests
        only, needs_attention first. Every list pages by cursor: send the
        previous page's next_cursor as cursor; next_cursor is null on the last
        page, and a group created after the first page was read never shifts a
        later page. A malformed cursor, or one minted for a different view,
        filter set or q, is a 400. include_unreviewed=true adds one group per
        other pull request of a repository the organization has a non-archived
        project for, with an empty reviews array, no verdict, a null
        comment_count, needs_attention false, and latest_created_at the pull
        request's open time; it is false when omitted, and reviews is never
        empty without it. A list with include_unreviewed is in GitHub's order,
        newest opened first, holds open pull requests unless pr_state names
        others (a pull request whose state the mirror has not recorded is in
        neither), and view=queue with it is a 400. status=unreviewed matches a
        group with no runs and every other status leaves it out. Every group of
        a list with include_unreviewed carries its section: in_review while its
        newest run is reviewing, approved when that run completed with a
        standing verdict of APPROVE on the pull request's current head, other
        for anything else, a merged or closed pull request and one with no runs
        included. section=<key> keeps one section in the same order, and a
        cursor from any page of the same list (with or without section) pages
        inside it. counts=true adds sections, the count of every non-empty
        section of the whole list (view, viewer, filters and project; not
        section), in the order in_review, approved, other. section and counts
        need include_unreviewed, and counts reads a first page: it takes no
        cursor and no section (each a 400). drafts=exclude leaves draft pull
        requests out; it narrows the pages and the counts, enters the cursor's
        scope, and needs include_unreviewed (a 400 without it). q searches the
        list: it is trimmed and an empty q is no search; all digits, or # and
        digits, keeps the pull request with that number, and anything else keeps
        the pull requests whose title holds its whitespace-separated words in
        order, case-insensitively. q narrows the pages and the counts, enters
        the cursor's scope, and needs include_unreviewed; without it, over 200
        characters, or a number beyond a pull request number's range, it is a
        400. Without include_unreviewed no group carries a section. Sections and
        the review-run status are resolved server-side so the listing can be
        paginated by group. needs_attention marks an open group requiring user
        action from its newest run or posted verdict. status and pr_state are
        comma-joined filters; status matches the group's LATEST run status — the
        status the list row displays — not any run in the group. viewer=author
        keeps the pull requests the caller opened, by the GitHub login their
        connection stores or by one of their tasks publishing it, and
        viewer=involved adds the ones they review, by that login; every group
        carries the caller's viewer_standing. author, reviewer, repo_owner and
        repo_name match GitHub logins and repository coordinates
        case-insensitively; a reviewer has a user review request or a submitted
        review and is never the author. opened_after and updated_after
        (inclusive) and opened_before and updated_before (exclusive) are UTC
        instants bounding when the pull request was opened and GitHub's last
        update to it, and an empty window is a 400. A pull request mirrored
        before Aether kept GitHub's open time is dated by when Aether first saw
        it.
      operationId: listPRReviews
      parameters:
        - in: path
          name: orgID
          required: true
          schema:
            format: uuid
            type: string
        - explode: false
          in: query
          name: limit
          schema:
            format: int64
            maximum: 100
            minimum: 1
            type: integer
        - explode: false
          in: query
          name: project_id
          schema:
            format: uuid
            type: string
        - explode: false
          in: query
          name: view
          schema:
            enum:
              - queue
            type: string
        - explode: false
          in: query
          name: status
          schema:
            pattern: >-
              ^(reviewing|completed|failed|cancelled|superseded|archived|unreviewed)(,(reviewing|completed|failed|cancelled|superseded|archived|unreviewed))*$
            type: string
        - explode: false
          in: query
          name: pr_state
          schema:
            pattern: ^(open|closed|merged)(,(open|closed|merged))*$
            type: string
        - explode: false
          in: query
          name: viewer
          schema:
            enum:
              - author
              - involved
            type: string
        - explode: false
          in: query
          name: author
          schema:
            pattern: ^[A-Za-z0-9][A-Za-z0-9_-]*(\[[bB][oO][tT]\])?$
            type: string
        - explode: false
          in: query
          name: reviewer
          schema:
            pattern: ^[A-Za-z0-9][A-Za-z0-9_-]*(\[[bB][oO][tT]\])?$
            type: string
        - explode: false
          in: query
          name: repo_owner
          schema:
            pattern: ^[A-Za-z0-9][A-Za-z0-9_-]*(\[[bB][oO][tT]\])?$
            type: string
        - explode: false
          in: query
          name: repo_name
          schema:
            pattern: ^[A-Za-z0-9._-]+$
            type: string
        - explode: false
          in: query
          name: opened_after
          schema:
            format: date-time
            pattern: >-
              ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,6})?Z$
            type: string
        - explode: false
          in: query
          name: opened_before
          schema:
            format: date-time
            pattern: >-
              ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,6})?Z$
            type: string
        - explode: false
          in: query
          name: updated_after
          schema:
            format: date-time
            pattern: >-
              ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,6})?Z$
            type: string
        - explode: false
          in: query
          name: updated_before
          schema:
            format: date-time
            pattern: >-
              ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,6})?Z$
            type: string
        - explode: false
          in: query
          name: include_unreviewed
          schema:
            type: boolean
        - explode: false
          in: query
          name: cursor
          schema:
            type: string
        - explode: false
          in: query
          name: section
          schema:
            enum:
              - in_review
              - approved
              - other
            type: string
        - explode: false
          in: query
          name: counts
          schema:
            type: boolean
        - explode: false
          in: query
          name: drafts
          schema:
            enum:
              - exclude
            type: string
        - explode: false
          in: query
          name: q
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  items:
                    items:
                      $ref: '#/components/schemas/PRReviewGroup'
                    type: array
                  next_cursor:
                    minLength: 1
                    type:
                      - string
                      - 'null'
                  sections:
                    items:
                      $ref: '#/components/schemas/PRReviewSectionCount'
                    type: array
                required:
                  - items
                  - next_cursor
                type: object
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrReviewsErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrReviewsErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrReviewsErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrReviewsErrorResponse'
          description: Internal Server Error
components:
  schemas:
    PRReviewGroup:
      additionalProperties: false
      properties:
        additions:
          format: int64
          minimum: 0
          type: integer
        author_login:
          minLength: 1
          type: string
        base_branch:
          type: string
        checks_failed:
          format: int64
          minimum: 0
          type: integer
        checks_passed:
          format: int64
          minimum: 0
          type: integer
        checks_total:
          format: int64
          minimum: 0
          type: integer
        ci_status:
          $ref: '#/components/schemas/TaskCIStatus'
        comment_count:
          format: int64
          minimum: 0
          type:
            - integer
            - 'null'
        deletions:
          format: int64
          minimum: 0
          type: integer
        draft:
          type: boolean
        github_updated_at:
          format: date-time
          type: string
        guide_outline:
          items:
            $ref: '#/components/schemas/PRReviewGuideOutlineSection'
          maxItems: 50
          minItems: 1
          type: array
        head_branch:
          type: string
        head_sha:
          type: string
        html_url:
          type: string
        latest_created_at:
          format: date-time
          type: string
        merged_at:
          format: date-time
          type: string
        needs_attention:
          type: boolean
        origin_task:
          $ref: '#/components/schemas/PRReviewOriginTask'
        pr_number:
          format: int64
          minimum: 1
          type: integer
        pr_state:
          $ref: '#/components/schemas/TaskGitHubPRState'
        pull_request_id:
          format: uuid
          type: string
        ready_for_merge:
          type: boolean
        repo_name:
          type: string
        repo_owner:
          type: string
        reviews:
          items:
            $ref: '#/components/schemas/PRReviewRun'
          type: array
        section:
          $ref: '#/components/schemas/PRReviewSection'
        severity_counts:
          $ref: '#/components/schemas/PRReviewSeverityCounts'
        stack_children:
          items:
            $ref: '#/components/schemas/PullRequestStackEdge'
          minItems: 1
          type: array
        stack_parent:
          $ref: '#/components/schemas/PullRequestStackEdge'
        summary_severity:
          $ref: '#/components/schemas/PRReviewSummarySeverity'
        title:
          type: string
        verdict:
          $ref: '#/components/schemas/PRReviewSummaryVerdict'
        viewer_standing:
          $ref: '#/components/schemas/PRReviewViewerStanding'
      required:
        - pull_request_id
        - pr_number
        - title
        - html_url
        - repo_owner
        - repo_name
        - checks_passed
        - checks_failed
        - checks_total
        - additions
        - deletions
        - latest_created_at
        - comment_count
        - needs_attention
        - reviews
        - draft
        - github_updated_at
        - ready_for_merge
        - viewer_standing
      type: object
    PRReviewSectionCount:
      additionalProperties: false
      properties:
        count:
          format: int64
          minimum: 1
          type: integer
        section:
          $ref: '#/components/schemas/PRReviewSection'
      required:
        - section
        - count
      type: object
    PrReviewsErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - account_deleting
            - aether_inference_unserved
            - agent_pr_blocked
            - agent_pr_pending
            - app_identity_missing
            - attribution_unavailable
            - bad_gateway
            - bad_request
            - caller_inactive
            - conflict
            - connection_harness_mismatch
            - connection_not_held
            - contents_write_required
            - continuation_failed
            - continuation_unavailable
            - control_forbidden
            - embeddings_unavailable
            - fix_not_requested
            - fix_requests_unrecorded
            - forbidden
            - fork_branch_delete_unsupported
            - fork_forbidden
            - gateway_timeout
            - github_claim_unverified
            - github_failed
            - github_identity_mismatch
            - github_identity_required
            - github_push_access_required
            - github_reconnect_required
            - github_ref_not_found
            - gone
            - idempotency_key_reused
            - inference_proxy_unavailable
            - insufficient_credits
            - insufficient_inference_balance
            - internal_error
            - invalid_request
            - mcp_server_not_connected
            - method_not_allowed
            - mode_forbidden
            - no_dispatch_target
            - not_acceptable
            - not_found
            - not_implemented
            - onboarding_already_completed
            - onboarding_requirements_missing
            - org_role_insufficient
            - org_suspended
            - payment_required
            - pr_review_actor_required
            - pr_review_publish_forbidden
            - precondition_failed
            - pull_request_closed
            - pull_request_mirror_failed
            - pull_request_not_mirrored
            - queued_stop_requires_discard
            - rate_limited
            - request_canceled
            - request_timeout
            - request_too_large
            - service_unavailable
            - stack_cycle
            - stack_too_large
            - stack_two_parents
            - stale_execution
            - stale_or_indeterminate
            - stale_pending_input
            - stream_delivery_gap
            - stream_event_conflict
            - task_awaiting_message
            - task_awaiting_tool_response
            - task_connection_disconnected
            - task_creator_deleted
            - task_ineligible
            - task_not_accepting_messages
            - task_not_pinnable
            - task_settings_changed
            - unauthenticated
            - unsigned_aether_head
            - unsigned_commit
            - unsupported_changes
            - unsupported_media_type
            - untyped_error
            - validation_failed
            - workspace_git_unavailable
            - workspace_rejected
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    TaskCIStatus:
      enum:
        - pending
        - passed
        - failed
      type: string
    PRReviewGuideOutlineSection:
      additionalProperties: false
      properties:
        paths:
          items:
            minLength: 1
            pattern: "[^\t-\r \N\_  - \L\P  　\uFEFF]"
            type: string
          maxItems: 20
          type: array
        title:
          maxLength: 200
          minLength: 1
          pattern: "[^\t-\r \N\_  - \L\P  　\uFEFF]"
          type: string
          x-aether-string-length-unit: unicode-code-point
      required:
        - title
        - paths
      type: object
    PRReviewOriginTask:
      additionalProperties: false
      properties:
        id:
          format: uuid
          type: string
        turn_count:
          format: int64
          minimum: 0
          type: integer
      required:
        - id
        - turn_count
      type: object
    TaskGitHubPRState:
      enum:
        - open
        - closed
        - merged
      type: string
    PRReviewRun:
      additionalProperties: false
      properties:
        agent_type:
          enum:
            - codex
            - claude-code
            - opencode
          type: string
        created_at:
          format: date-time
          type: string
        duration_seconds:
          format: int64
          minimum: 0
          type: integer
        error:
          type: string
        head_sha:
          type: string
        id:
          format: uuid
          type: string
        model:
          minLength: 1
          type: string
        status:
          $ref: '#/components/schemas/ReviewRunStatus'
        trigger:
          $ref: '#/components/schemas/TaskReviewTrigger'
      required:
        - id
        - status
        - created_at
        - agent_type
        - model
      type: object
    PRReviewSection:
      enum:
        - in_review
        - approved
        - other
      type: string
    PRReviewSeverityCounts:
      additionalProperties: false
      properties:
        confirmed:
          format: int64
          minimum: 0
          type: integer
        nit:
          format: int64
          minimum: 0
          type: integer
        p1:
          format: int64
          minimum: 0
          type: integer
        p2:
          format: int64
          minimum: 0
          type: integer
        question:
          format: int64
          minimum: 0
          type: integer
      required:
        - p1
        - p2
        - nit
        - question
        - confirmed
      type: object
    PullRequestStackEdge:
      additionalProperties: false
      description: >-
        One tracked open pull request on a branch-chain edge: as stack_parent,
        the pull request whose head repository and branch match this pull
        request's base; as an element of stack_children, a pull request whose
        base branch is this pull request's head. Present only when the edge
        exists in Aether's tracked pull-request projection; absence does not
        prove the pull request is unstacked.
      properties:
        html_url:
          format: uri
          pattern: ^[hH][tT][tT][pP][sS]?://
          type: string
        pr_number:
          format: int64
          minimum: 1
          type: integer
        pull_request_id:
          format: uuid
          type: string
        state:
          enum:
            - open
          type: string
        title:
          type: string
      required:
        - pull_request_id
        - pr_number
        - title
        - state
        - html_url
      type: object
    PRReviewSummarySeverity:
      enum:
        - p1
        - p2
        - nit
      type: string
    PRReviewSummaryVerdict:
      enum:
        - APPROVE
        - REQUEST_CHANGES
        - COMMENT
        - DISMISSED
        - SUPERSEDED
      type: string
    PRReviewViewerStanding:
      enum:
        - author
        - pending
        - approved
        - changes_requested
        - commented
        - dismissed
        - none
      type: string
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    ReviewRunStatus:
      enum:
        - reviewing
        - completed
        - failed
        - cancelled
        - superseded
        - archived
      type: string
    TaskReviewTrigger:
      enum:
        - automatic
        - comment_command
        - manual
      type: string
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.