Reason Machines Direct web API

The Direct web API from Reason Machines — 2 operation(s) for direct web.

GitHub OpenAPI

Operations 2

POST /v3/organizations/{orgId}/web/fetch Fetch public web content #
POST /v3/organizations/{orgId}/web/search Search the public web #

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-direct-web-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-direct-web-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reason Direct web 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: Direct web
paths:
  /v3/organizations/{orgId}/web/fetch:
    parameters:
    - $ref: '#/components/parameters/orgId'
    post:
      operationId: fetchWeb
      x-reason-feature: direct_agent_capabilities
      summary: Fetch public web content
      description: 'Fetch one public HTTP(S) URL with bounded content, redirect and private-network protection. Requires web:read. Returns the existing text, PDF or image tool output without creating a Session.


        Scope: `web:read`'
      x-reason-mcp-description: Fetch one public HTTP(S) URL with bounded content, redirect and private-network protection. Requires web:read. Returns the existing text, PDF or image tool output without creating a Session.
      tags:
      - Direct web
      x-reason-read-only: true
      x-reason-open-world: true
      responses:
        '200':
          description: Bounded public web result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectWebFetchResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          description: Provider read unavailable.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DirectWebFetch'
      security:
      - reasonApiKey:
        - web:read
  /v3/organizations/{orgId}/web/search:
    parameters:
    - $ref: '#/components/parameters/orgId'
    post:
      operationId: searchWeb
      x-reason-feature: direct_agent_capabilities
      summary: Search the public web
      description: 'Search the public web with a bounded query and 1-10 results. Requires web:read. No Session is created. PHI workspace restrictions and provider usage attribution apply.


        Scope: `web:read`'
      x-reason-mcp-description: Search the public web with a bounded query and 1-10 results. Requires web:read. No Session is created. PHI workspace restrictions and provider usage attribution apply.
      tags:
      - Direct web
      x-reason-read-only: true
      x-reason-open-world: true
      responses:
        '200':
          description: Bounded public web result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DirectWebSearchResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          description: Provider read unavailable.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DirectWebSearch'
      security:
      - reasonApiKey:
        - web:read
components:
  schemas:
    DirectWebFetch:
      type: object
      properties:
        url:
          type: string
          minLength: 1
          maxLength: 8000
      required:
      - url
      additionalProperties: false
    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.
    DirectWebSearchResult:
      type: object
      properties:
        results:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
              title:
                type: string
              snippet:
                type: string
            required:
            - url
            - title
            - snippet
        requestId:
          type: string
        costUsd:
          type: number
      required:
      - results
    DirectWebSearch:
      type: object
      properties:
        query:
          type: string
          minLength: 1
          maxLength: 1000
        limit:
          default: 5
          type: integer
          minimum: 1
          maximum: 10
      required:
      - query
      additionalProperties: false
    DirectWebFetchResult:
      type: object
      properties:
        text:
          type: string
        url:
          type: string
        status:
          type: number
        truncated:
          type: boolean
        contentKind:
          type: string
          enum:
          - public_page_text
          - repository_readme
          - public_post_embed_text
          - pdf_document_text
          - public_image
        mediaInspected:
          type: boolean
        image:
          type: object
          properties:
            data:
              type: string
            mimeType:
              type: string
          required:
          - data
          - mimeType
      required:
      - text
      - url
      - status
      - truncated
      - contentKind
      - mediaInspected
  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).'