Reason Machines Connections API

The Connections API from Reason Machines — 2 operation(s) for connections.

GitHub OpenAPI

Operations 2

GET /v3/organizations/{orgId}/connections List service connections and their health #
POST /v3/organizations/{orgId}/connections/{adapter}/{id}/{action} Manage one connection #

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-connections-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-connections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reason Connections 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: Connections
paths:
  /v3/organizations/{orgId}/connections:
    parameters:
    - $ref: '#/components/parameters/orgId'
    get:
      operationId: listConnections
      tags:
      - Connections
      summary: List service connections and their health
      x-reason-mcp-description: Lists visible native accounts and MCP installations grouped by service, with cached health and supported actions. Pass adapter and record identifier as id to manageConnection; use check for fresh health. Excludes credentials and other users' personal accounts.
      responses:
        '200':
          description: Grouped connection services with individual accounts, methods, health evidence and supported actions.
          content:
            application/json:
              schema:
                type: object
                properties:
                  services:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        icon:
                          type:
                          - string
                          - 'null'
                        description:
                          type: string
                        status:
                          type: string
                          enum:
                          - not_connected
                          - connected
                          - needs_attention
                        reason:
                          type: string
                        connections:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              recordId:
                                type: string
                              adapter:
                                type: string
                                enum:
                                - mcp
                                - native
                              serviceId:
                                type: string
                              name:
                                type: string
                              accountId:
                                description: The provider's id for the signed-in account (native app installation account; an MCP OAuth grant's OpenID subject, workspace or user id when the provider names it). null when unknown, for API-key and static MCP servers, and for pending sign-ins.
                                type:
                                - string
                                - 'null'
                              accountName:
                                type: string
                                description: A readable label for the signed-in account, such as its email or workspace, so several accounts of one service are distinguishable. Falls back to the server's own name when the provider names no account; rename the MCP server to change that label.
                              ownerUserId:
                                type:
                                - string
                                - 'null'
                              scope:
                                type: string
                                enum:
                                - personal
                                - organization
                              method:
                                type: string
                              capabilities:
                                type: array
                                items:
                                  type: string
                              auth:
                                type: object
                                properties:
                                  type:
                                    type: string
                                  authorized:
                                    type:
                                    - boolean
                                    - 'null'
                                required:
                                - type
                                - authorized
                              status:
                                type: string
                                enum:
                                - not_connected
                                - connected
                                - needs_attention
                              reason:
                                type: string
                              checkedAt:
                                type:
                                - string
                                - 'null'
                              lastSuccessfulCheckAt:
                                type:
                                - string
                                - 'null'
                              canManage:
                                type: boolean
                              pending:
                                type: boolean
                              actions:
                                type: object
                                properties:
                                  check:
                                    type: object
                                    properties:
                                      supported:
                                        type: boolean
                                      reason:
                                        type:
                                        - string
                                        - 'null'
                                    required:
                                    - supported
                                    - reason
                                  reconnect:
                                    type: object
                                    properties:
                                      supported:
                                        type: boolean
                                      reason:
                                        type:
                                        - string
                                        - 'null'
                                    required:
                                    - supported
                                    - reason
                                  disconnect:
                                    type: object
                                    properties:
                                      supported:
                                        type: boolean
                                      reason:
                                        type:
                                        - string
                                        - 'null'
                                    required:
                                    - supported
                                    - reason
                                  remove:
                                    type: object
                                    properties:
                                      supported:
                                        type: boolean
                                      reason:
                                        type:
                                        - string
                                        - 'null'
                                    required:
                                    - supported
                                    - reason
                                  cancel:
                                    type: object
                                    properties:
                                      supported:
                                        type: boolean
                                      reason:
                                        type:
                                        - string
                                        - 'null'
                                    required:
                                    - supported
                                    - reason
                                required:
                                - check
                                - reconnect
                                - disconnect
                                - remove
                                - cancel
                            required:
                            - id
                            - recordId
                            - adapter
                            - serviceId
                            - name
                            - accountId
                            - accountName
                            - ownerUserId
                            - scope
                            - method
                            - capabilities
                            - auth
                            - status
                            - reason
                            - checkedAt
                            - lastSuccessfulCheckAt
                            - canManage
                            - pending
                            - actions
                        offerings:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                              adapter:
                                type: string
                                enum:
                                - mcp
                                - native
                              providerId:
                                type: string
                              name:
                                type: string
                              connectable:
                                type: boolean
                              reason:
                                type:
                                - string
                                - 'null'
                            required:
                            - id
                            - adapter
                            - providerId
                            - name
                            - connectable
                            - reason
                      required:
                      - id
                      - name
                      - icon
                      - description
                      - status
                      - reason
                      - connections
                      - offerings
                required:
                - services
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
      description: 'Lists visible native accounts and MCP installations grouped by service, with cached health and supported actions. Pass adapter and record identifier as id to manageConnection; use check for fresh health. Excludes credentials and other users'' personal accounts.


        Scope: `mcp:read`'
      security:
      - reasonApiKey:
        - mcp:read
  /v3/organizations/{orgId}/connections/{adapter}/{id}/{action}:
    parameters:
    - $ref: '#/components/parameters/orgId'
    - name: adapter
      description: Connection adapter from listConnections; use the selected account's adapter and recordId together.
      in: path
      required: true
      schema:
        type: string
        enum:
        - mcp
        - native
    - name: id
      description: 'The record to act on: for a connection action, the connection''s record id as `listConnections` lists it (an MCP server''s id or a native installation''s id, matching `adapter`); for an MCP server, `id` from `listMcpServers`; for a tool invocation, its `id`.'
      in: path
      required: true
      schema:
        type: string
    - name: action
      description: 'What to do with the connection: check tests its health and saves the result; reconnect returns a consent URL to sign in again; disconnect removes it and revokes the provider''s authorization where the provider supports that; remove deletes it from Reason only; cancel abandons a pending MCP setup. listConnections shows which actions an account supports.'
      in: path
      required: true
      schema:
        type: string
        enum:
        - check
        - reconnect
        - disconnect
        - remove
        - cancel
    post:
      operationId: manageConnection
      x-reason-destructive: true
      x-reason-open-world: true
      tags:
      - Connections
      summary: Manage one connection
      x-reason-mcp-description: 'Runs one `action` on a connection, by `adapter` and record id from listConnections. `check` saves fresh health; `reconnect` returns a consent `url`. Destructive: `disconnect` drops the sign-in (and revokes it where the provider allows), `remove` deletes the record, `cancel` drops a pending setup.'
      description: 'Run one action on a connection from listConnections: check, reconnect, cancel, remove or disconnect. An unsupported action returns 409.


        Runs one action on a connection from listConnections: `check` probes health, `reconnect` returns a consent URL, `cancel` removes pending MCP setup, `remove` and MCP `disconnect` act locally, and native `disconnect` revokes where supported. Requires management permission; an unsupported action returns 409.


        `check` works for a catalog plugin and for a custom remote MCP server alike: Reason connects to the server''s `url` over streamable HTTP with its stored credentials, lists its tools and saves the result. A custom server is checked once its URL is approved, which an owner or admin does by registering it (createMcpServer or updateMcpServer: transport `http`, a public https URL, and no headers or the one Authorization header its `auth_type` takes). Every request Reason makes to it, redirects included, must resolve to a public internet address; a private, loopback or link-local address is never called. A probe that reaches the server returns `{ "ok": true, "status", "tool_names", ... }`, with `error_code` and `message` when `status` is not `healthy`.


        A check that cannot probe returns 200 with `{ "ok": false, "error": , "message": }`; `message` names the next step. `curated_http_only`: a remote (`http` or `sse`) custom server whose URL was never approved, so every check and tool call fails; an owner or admin approves it by sending its `url` with updateMcpServer. `oauth_required`: an OAuth server with no usable sign-in; start one with startPluginSignIn or `reconnect`. `credentials_unavailable`: the installation cannot be resolved for a call (a catalog plugin whose saved configuration no longer matches its catalog entry, or a Reason connection that needs the caller''s own account). `endpoint_unavailable`: the URL is not https or its host does not resolve to a public address. `curated_configuration_mismatch`: the saved URL, headers or auth type no longer match the approval or catalog entry. `mcp_server_disabled`: enable it with updateMcpServer `{ "enabled": true }`. A `stdio` server is not checked from Reason''s servers (409 `connection_check_unsupported_transport`); it runs inside a session''s computer.


        OAuth for a custom MCP server: register it with createMcpServer and `auth_type` `oauth` (inspectMcpServerEndpoint reports what a URL takes before you add it), then `reconnect` here or startPluginSignIn returns the consent URL. Reason discovers the server''s authorization server and registers its own client when the server allows dynamic client registration; when it does not, the answer is 422 `oauth_configuration_required` with the `redirect_uri` to register your own OAuth client for, which you then pass as `oauth_client` to startPluginSignIn.


        Scope: `mcp:write`'
      responses:
        '200':
          description: 'Connection action result, or an OAuth consent URL. A check that could not probe is `{ ok: false, error, message }`; `curated_http_only` marks a remote custom MCP server whose URL was never approved (an owner or admin approves it by sending its `url` with updateMcpServer).'
          content:
            application/json:
              schema:
                anyOf:
                - type: object
                  properties:
                    url:
                      type: string
                      description: Consent URL to open in a browser to finish `reconnect`.
                  required:
                  - url
                  description: '`reconnect`: the OAuth consent URL.'
                - type: object
                  properties:
                    ok:
                      type: boolean
                      const: true
                      description: 'Always true: the action finished.'
                    removed:
                      type: boolean
                      description: 'Whether the connection record was deleted: true for `remove` and `cancel` when a record was deleted, false for MCP `disconnect`, which keeps the server.'
                    provider_revoked:
                      type: boolean
                      description: Whether the authorization was also revoked at the provider. False for `remove` and `cancel`.
                    message:
                      description: 'For MCP `disconnect`: whether provider-side access was revoked or only the saved authorization removed.'
                      type: string
                  required:
                  - ok
                  - removed
                  - provider_revoked
                  description: '`disconnect`, `remove` or `cancel`: what was removed.'
                - type: object
                  properties:
                    ok:
                      type: boolean
                      const: true
                      description: The probe ran; read `status` for the verdict.
                    status:
                      type: string
                      enum:
                      - healthy
                      - auth_failed
                      - unreachable
                      - protocol_error
                      description: Health verdict of the MCP server probe.
                    tool_count:
                      description: 'How many tools the server listed: 0 for a verified empty list, null when its tool list could not be verified.'
                      type:
                      - number
                      - 'null'
                    tool_names:
                      description: 'Names of the tools the server listed: empty for a verified empty list, null when its tool list could not be verified.'
                      type:
                      - array
                      - 'null'
                      items:
                        type: string
                    error_code:
                      description: Machine-readable cause when `status` is not healthy.
                      type:
                      - string
                      - 'null'
                    message:
                      description: Readable cause and what to do next when `status` is not healthy.
                      type: string
                    latency_ms:
                      type: number
                      description: Probe round-trip time in milliseconds.
                  required:
                  - ok
                  - status
                  - tool_count
                  - tool_names
                  - latency_ms
                  description: MCP `check` that reached the server.
                - type: object
                  properties:
                    ok:
                      type: boolean
                      const: false
                      description: The MCP check could not probe the server.
                    error:
                      type: string
                      description: Why, such as `curated_http_only`, `oauth_required`, `credentials_unavailable` or `endpoint_unavailable`.
                    message:
                      description: Readable cause and what to do next.
                      type: string
                  required:
                  - ok
                  - error
                  description: MCP `check` that failed before probing.
                - type: object
                  properties:
                    id:
                      type: string
                      description: The native installation's record id.
                    provider:
                      type: string
                      description: Native connector provider, such as `slack` or `github`.
                    connection_state:
                      type: string
                      description: Fresh health from this check, such as `connected`, `auth_required` or `unsupported`.
                    connection_checked_at:
                      type: string
                      description: When this check ran.
                    connection_last_success_at:
                      description: When a check last found it connected, or null.
                      type:
                      - string
                      - 'null'
                    connection_error_code:
                      description: Machine-readable cause when not connected.
                      type:
                      - string
                      - 'null'
                    can_manage:
                      type: boolean
                      description: Whether the caller may manage this installation.
                    check_supported:
                      type: boolean
                      description: Whether this provider supports health checks.
                    revoke_supported:
                      type: boolean
                      description: 'Whether this provider implements revocation. It does not guarantee this connection can `disconnect`: a Slack token shared with another connection answers 409 provider_token_shared_use_remove, so use `remove` then.'
                  required:
                  - id
                  - provider
                  - connection_state
                  - connection_checked_at
                  - connection_last_success_at
                  - can_manage
                  - check_supported
                  - revoke_supported
                  description: 'Native `check`: the installation with its fresh health. Credentials are never included.'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: Caller cannot manage this connection.
        '404':
          description: Connection is not visible to this caller.
        '409':
          description: 'Action is unsupported for this connection: `{ error, message? }`. `connection_check_unsupported_transport` (a `stdio` or `sse` MCP server is not checked from Reason''s servers), `connection_action_unsupported` (`reconnect` or `disconnect` on an MCP server that does not sign in with OAuth, or an action a native connector lacks) or `connection_not_pending` (`cancel` on a finished sign-in). `message` says what to do instead.'
        '422':
          description: '`reconnect` on a custom OAuth MCP server whose authorization server will not register Reason''s client: `oauth_configuration_required`, with `message` and the `redirect_uri` to register your own OAuth client for. Pass that client as `oauth_client` to startPluginSignIn.'
        '429':
          $ref: '#/components/responses/RateLimited'
      security:
      - reasonApiKey:
        - mcp: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.
  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
    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).'