Reason Machines Git Plugins API

The Git Plugins API from Reason Machines — 2 operation(s) for git plugins.

GitHub OpenAPI

Operations 2

GET /v3/organizations/{orgId}/git-plugins List git plugins #
GET /v3/organizations/{orgId}/git-plugins/{gitPluginId}/repositories List repositories for a git plugin #

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-git-plugins-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-git-plugins-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reason Git Plugins 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: Git Plugins
paths:
  /v3/organizations/{orgId}/git-plugins:
    parameters:
    - $ref: '#/components/parameters/orgId'
    get:
      operationId: listGitPlugins
      x-reason-open-world: true
      x-reason-mcp-description: Lists, in one page of `plugins`, the workspace's GitHub App installations and the caller's personal GitHub grant if any, with `id`, `grant` (team or personal), `host`, `account_login` and `account_type`. An `id` goes to `listGitPluginRepositories` to see what that account reaches.
      tags:
      - Git Plugins
      summary: List git plugins
      description: 'Returns the source-control accounts linked to the organization.


        Scope: `repos:read`'
      responses:
        '200':
          description: Git plugins.
          content:
            application/json:
              schema:
                type: object
                properties:
                  plugins:
                    type: array
                    items:
                      $ref: '#/components/schemas/GitPlugin'
                    description: The workspace's linked GitHub App installations, then the caller's personal GitHub connection when there is one.
                  end_cursor:
                    type: 'null'
                    description: 'Always null: the list is one page.'
                  has_next_page:
                    type: boolean
                    description: 'Always false: the list is one page.'
                  total:
                    type: integer
                    description: Number of entries in `plugins`.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
      - reasonApiKey:
        - repos:read
  /v3/organizations/{orgId}/git-plugins/{gitPluginId}/repositories:
    parameters:
    - $ref: '#/components/parameters/orgId'
    - name: gitPluginId
      description: The git plugin id, returned as `id` by `listGitPlugins`.
      in: path
      required: true
      schema:
        type: string
    get:
      operationId: listGitPluginRepositories
      x-reason-open-world: true
      x-reason-mcp-description: Lists every repository one account from `listGitPlugins` reaches, in one page of `items` with `full_name`, `web_url`, `private` and `pushed_at`, to check that account's access; `listRepositories` covers all accounts. An id not linked to this workspace returns 404.
      tags:
      - Git Plugins
      summary: List repositories for a git plugin
      description: 'Returns the repositories exposed by a linked source-control plugin.


        Scope: `repos:read`'
      responses:
        '200':
          description: Repositories for the plugin.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/GitPluginRepository'
                    description: Every repository the account exposes.
                  end_cursor:
                    type: 'null'
                    description: 'Always null: the list is one page.'
                  has_next_page:
                    type: boolean
                    description: 'Always false: the list is one page.'
                  total:
                    type: integer
                    description: Number of entries in `items`.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
      - reasonApiKey:
        - repos:read
components:
  responses:
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: session_not_found
    Unauthorized:
      description: Missing, invalid, or expired key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: missing_bearer
            message: Authorization 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
  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.
    GitPlugin:
      type: object
      properties:
        id:
          description: 'Account id to pass as `gitPluginId`: the numeric GitHub App installation id for a workspace account, or `personal:<user id>` for the caller''s personal GitHub connection.'
          type:
          - string
          - number
        git_plugin_id:
          type: string
          deprecated: true
          description: Not returned; use `id`.
        grant:
          type: string
          enum:
          - team
          - personal
          description: team for a GitHub App installation linked to the workspace; personal for the caller's own GitHub connection.
        provider:
          type: string
          enum:
          - github
          description: The source-control provider.
        host:
          type: string
          description: The source-control host (`github.com`).
        account_login:
          type: string
          description: The linked account's login.
        account_id:
          description: The provider's numeric id for the linked account.
          type:
          - string
          - number
        account_type:
          description: Whether the linked account is a user or an organization; null when unknown.
          oneOf:
          - type: string
            enum:
            - user
            - organization
            - null
          - type: 'null'
        owner_user_id:
          type: string
          description: 'Personal connection only: the user who owns it (the caller).'
        status:
          type: string
          description: 'Personal connection only: the connection''s state.'
        connected_at:
          type: string
          deprecated: true
          format: date-time
          description: Not returned.
    GitPluginRepository:
      type: object
      properties:
        full_name:
          type: string
          description: GitHub repository path in `owner/name` form.
        full_path:
          type: string
          description: GitHub repository path in `owner/name` form.
        provider:
          type: string
          enum:
          - github
          description: The source-control provider.
        host:
          type: string
          description: The source-control host (`github.com`).
        web_url:
          type: string
          format: uri
          description: The repository's page on GitHub.
        private:
          type: boolean
          description: Whether the repository is private.
        pushed_at:
          type:
          - string
          - 'null'
          description: When the repository was last pushed to (ISO 8601), as GitHub reports it.
        default_branch:
          description: The repository's default branch; present only for the personal connection's repositories.
          type:
          - string
          - 'null'
        grant:
          type: string
          description: Present as personal for the personal connection's repositories.
        owner_user_id:
          type: string
          description: 'Personal connection only: the user who owns the connection.'
        permissions:
          type: object
          properties: {}
          description: 'Personal connection only: the caller''s GitHub permissions on the repository, as GitHub reports them.'
        connected:
          type: boolean
          deprecated: true
          description: Not returned; `listRepositories` lists the repositories the workspace can use.
  parameters:
    orgId:
      name: orgId
      in: path
      required: true
      description: Organization id or slug. Resolve it with `GET /v3/self`.
      schema:
        type: string
  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).'