Reason Machines Change Request Reviews API

Automated senior-engineer reviews posted on pull requests and merge requests.

GitHub OpenAPI

Operations 2

GET /v3/organizations/{orgId}/pr-reviews List change request reviews #
POST /v3/organizations/{orgId}/pr-reviews Request a change request review #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/reasonmachines-com:reasonmachines-com-change-request-reviews-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

reasonmachines-com-change-request-reviews-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reason Change Request Reviews API
  version: 3.0.0
  description: 'The Reason HTTP API. Drive cloud software-engineering agents: open sessions against your repositories, stream their work, and manage the secrets, skills, and automations they run with.


    Authenticate with a Reason API key sent as a bearer token. New keys use `reason_`; legacy `ara_` keys remain accepted. Every resource is scoped to an organization; resolve your `org_id` once with `GET /v3/self`.'
servers:
- url: https://api.reasonmachines.com
security:
- reasonApiKey: []
tags:
- name: Change Request Reviews
  description: Automated senior-engineer reviews posted on pull requests and merge requests.
paths:
  /v3/organizations/{orgId}/pr-reviews:
    parameters:
    - $ref: '#/components/parameters/orgId'
    get:
      operationId: listPrReviews
      x-reason-mcp-description: Lists the latest automated review of each pull request among the workspace's 50 newest review runs, newest first, with `pr_review_id`, `repo`, `pr_number`, `status`, `comment_url`, `head_sha` and `created_at`, to find past reviews; `triggerPrReview` cannot start new ones.
      tags:
      - Change Request Reviews
      summary: List change request reviews
      description: 'Returns the latest automated review per pull request among the workspace''s 50 most recent review runs, newest first. Items include review ID, repository, PR number, provider, status, comment URL, head SHA and creation time. Pagination inputs are ignored; end_cursor is null and has_next_page is false.


        Scope: `reviews:read`'
      responses:
        '200':
          description: A page of change request reviews.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/PrReview'
                    description: The latest review of each pull request, newest first.
                  end_cursor:
                    description: 'Always null: the list is one page.'
                    type:
                    - string
                    - 'null'
                  has_next_page:
                    type: boolean
                    description: 'Always false: the list is one page.'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
      parameters:
      - in: query
        name: first
        schema:
          type: integer
        description: 'Ignored, kept for older clients: the list is always one page of the latest reviews.'
      - in: query
        name: after
        schema:
          type: string
        description: 'Ignored, kept for older clients: there is never a next page.'
      security:
      - reasonApiKey:
        - reviews:read
    post:
      operationId: triggerPrReview
      x-reason-read-only: true
      x-reason-mcp-description: 'Would request an automated GitHub pull request review, a feature now off: well-formed requests return 409 `pr_review_disabled` and create nothing. Wrong field types return 400 `invalid_request`; GitLab URLs 410 `gitlab_retired`. A Session from `createSession` can review a pull request.'
      tags:
      - Change Request Reviews
      summary: Request a change request review
      description: 'Automated pull-request reviews are currently unavailable. Every well-formed GitHub request returns `409 pr_review_disabled`, whichever pull request it names. A body whose fields have the wrong type (`400 invalid_request`) or that sets `create_as_user_id` (`400 forbidden_actor`) is rejected first, and a GitLab merge request URL returns `410 gitlab_retired`.


        Scope: `reviews:write`'
      responses:
        '201':
          description: Legacy success response retained for client compatibility. The code-disabled service does not emit this response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrReviewCreated'
              example:
                pr_review_id: rev_71c2a8
                status: queued
          x-reason-not-sent: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          description: Automated pull-request reviews are disabled.
        '429':
          $ref: '#/components/responses/RateLimited'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePrReview'
            example:
              repository: acme/web
              pr_number: 482
              provider: github
              instructions: Pay special attention to the new auth middleware.
      security:
      - reasonApiKey:
        - reviews:write
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          oneOf:
          - type: string
          - type: object
            required:
            - type
            - message
            properties:
              type:
                type: string
              message:
                type: string
              request_id:
                type:
                - string
                - 'null'
        message:
          type: string
        required_scope:
          type: string
          description: The capability required when the request was denied for a missing scope.
    CreatePrReview:
      type: object
      properties:
        repository:
          type: string
          description: GitHub repository path in owner/name form, such as acme/web; accepted for compatibility while automated reviews are disabled.
        pr_number:
          type: integer
          description: The pull request number to review.
        pr_url:
          type: string
          description: GitHub pull request URL. Alternative to `repository` + `pr_number`.
        provider:
          type: string
          enum:
          - github
          description: Host of the pull request, for clients that name it; it does not change the result while reviews are off.
        instructions:
          type: string
          description: Areas or concerns the review should focus on, such as authentication changes; accepted but not acted on while automated reviews are disabled.
    PrReview:
      type: object
      properties:
        pr_review_id:
          type: string
          description: Id of the review run.
        repo:
          description: Repository path in owner/name form, or null when the run did not record one.
          type:
          - string
          - 'null'
        repository:
          type: string
          deprecated: true
          description: Not returned; use `repo`.
        pr_number:
          type: integer
          description: Number of the reviewed pull request, or null when the run did not record one.
        provider:
          type: string
          enum:
          - github
          description: Source-control provider for the reviewed pull request; null when the run did not record it.
        kind:
          type: string
          const: pull_request
          description: GitHub pull request; null when the run did not record it.
        pr_url:
          deprecated: true
          description: Not returned.
          type:
          - string
          - 'null'
        status:
          type: string
          description: 'Public run status, as for Sessions: running (queued or in progress), exit (finished), error (failed) or suspended (cancelled or out of quota).'
        comment_url:
          description: Link to the review comment posted on the pull request, or null when none was found.
          type:
          - string
          - 'null'
        head_sha:
          description: Head commit SHA of the pull request when the review was triggered, or null when unrecorded.
          type:
          - string
          - 'null'
        summary:
          deprecated: true
          description: Not returned.
          type:
          - string
          - 'null'
        comment_count:
          deprecated: true
          description: Not returned.
          type:
          - integer
          - 'null'
        created_at:
          type: string
          format: date-time
          description: When the review run was created.
        completed_at:
          deprecated: true
          format: date-time
          description: Not returned.
          type:
          - string
          - 'null'
    PrReviewCreated:
      type: object
      properties:
        pr_review_id:
          type: string
          description: Id of the review run.
        status:
          type: string
          description: Status of the new review run.
      description: Not sent while automated reviews are disabled; every well-formed request returns 409 instead.
  parameters:
    orgId:
      name: orgId
      in: path
      required: true
      description: Organization id or slug. Resolve it with `GET /v3/self`.
      schema:
        type: string
  responses:
    Unauthorized:
      description: Missing, invalid, or expired key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: missing_bearer
            message: Authorization required
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: prompt_required
    Forbidden:
      description: The key lacks the required scope or role.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: missing_scope
            required_scope: sessions:read
    RateLimited:
      description: Too many requests. Retry after the number of seconds in the `Retry-After` response header.
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
            minimum: 1
          required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: rate_limited
              message: This API key exceeded its request-rate limit
  securitySchemes:
    loopWebhookKey:
      type: http
      scheme: bearer
      description: A Loop's webhook key, returned once by the createReasonLoop or updateReasonLoop call that adds the webhook. It only delivers events to that Loop's webhook; every other operation rejects it.
    loopWebhookSignature:
      type: apiKey
      in: header
      name: X-Signature-256
      description: 'An HMAC-SHA256 of the exact request body keyed with the Loop''s webhook key or its stored signing secret: hex in `X-Signature-256` (optionally `sha256=`-prefixed), or the sender''s own header (`X-Hub-Signature-256`, `Stripe-Signature`, `Webhook-Signature`, `Svix-Signature`, `Linear-Signature`, `Sentry-Hook-Signature`, `X-Shopify-Hmac-Sha256`).'
    reasonMachineToken:
      type: http
      scheme: bearer
      bearerFormat: rmt_<hex>
      description: A Machine token from createMachineToken. It can only create enrollment tickets for its own Machine; every other operation rejects it.
    reasonUserOAuth:
      type: http
      scheme: bearer
      description: A workspace-bound human user OAuth grant with org:write scope. The user must be an organization owner/admin. API keys and browser sessions are not accepted.
    reasonApiKey:
      type: http
      scheme: bearer
      bearerFormat: 'reason_<hex> (legacy: ara_<hex>)'
      description: 'Your Reason API key from Settings › API keys. New keys use `reason_`; legacy `ara_` keys remain accepted. Keys are capability-scoped: run, mcp:read, mcp:write, secrets:read, secrets:write, sessions:read, sessions:debug, devices:read, devices:write, devices:use, computers:read, computers:write, ssh:write, knowledge:read, memory:read, memory:write, skills:read, skills:write, pages:read, pages:write, repos:read, repos:write, reviews:read, reviews:write, deployment:read, analytics:read, org:read, org:write, attachments:read, attachments:write, guardrails:read, guardrails:write, network:read, network:write, automations:read, automations:write, agent_auth:read. devices:write, devices:use, computers:read, computers:write, ssh:write, network:read and network:write are opt-in, excluded from default keys. computers:read lists visible cloud and connected computers without waking them or granting execution access. devices:read discovers local Device targets; devices:use separately consents to local execution, so a discover-and-run local workflow needs both. devices:write manages enrollment and device grants; computers:write creates or deletes cloud computers; ssh:write manages retained SSH access. network:read reads the saved workspace network policy; network:write replaces custom allowed hosts and requires a current organization owner/admin. Legacy project PATCH requests containing network_allowed_hosts also require network:write plus their existing run scope and project management permission; saved project hosts do not affect current session egress. Only owners/admins can mint or manage keys with network:write; keys cannot grant themselves more authority. See /docs/network-policies for replacement semantics and runtime applicability. mcp:write manages MCP server configuration only; it does not authorize remote MCP-tool execution. sessions:read reads sessions, including the assistant, reasoning and tool activity in their events. sessions:debug is privileged: only for organization owners/admins, it expands session events to the full diagnostic projection (diagnostic event kinds, status text and raw event metadata).'