Reason Machines Sessions API

A Session is one run of work inside a Reason: every Reason message and Loop wake runs in one, and createSession starts one directly for a single unattended task with a pass/fail outcome. Its transcript, events, result and pull request are read here.

GitHub OpenAPI

Operations 44

GET /v3/organizations/{orgId}/input-requests List pending input requests #
GET /v3/organizations/{orgId}/sessions List sessions #
POST /v3/organizations/{orgId}/sessions Create a session #
GET /v3/organizations/{orgId}/sessions/insights List sessions with insights #
POST /v3/organizations/{orgId}/sessions/prestart Start a new session's machine ahead of its create #
GET /v3/organizations/{orgId}/sessions/{sessionId} Retrieve a session #
DELETE /v3/organizations/{orgId}/sessions/{sessionId} Delete a session #
POST /v3/organizations/{orgId}/sessions/{sessionId}/archive Archive a session #
GET /v3/organizations/{orgId}/sessions/{sessionId}/attachments List attachments #
GET /v3/organizations/{orgId}/sessions/{sessionId}/attachments/{attachmentId} Download an attachment #
POST /v3/organizations/{orgId}/sessions/{sessionId}/cancel Cancel a session #
POST /v3/organizations/{orgId}/sessions/{sessionId}/compact Compact a session's context #
GET /v3/organizations/{orgId}/sessions/{sessionId}/conversation List the conversation #
GET /v3/organizations/{orgId}/sessions/{sessionId}/events List live session events #
GET /v3/organizations/{orgId}/sessions/{sessionId}/follow-ups Read session follow-through #
POST /v3/organizations/{orgId}/sessions/{sessionId}/follow-ups Schedule a session check-in #
DELETE /v3/organizations/{orgId}/sessions/{sessionId}/follow-ups/{followupId} Cancel a session check-in #
POST /v3/organizations/{orgId}/sessions/{sessionId}/fork Fork a session #
GET /v3/organizations/{orgId}/sessions/{sessionId}/input-requests List a session's pending input requests #
GET /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId} Get an input request #
POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/answer Answer a question #
POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/approve Approve a network or permission request #
POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/cancel Decline a secret request #
POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/deny Decline a network or permission request #
POST /v3/organizations/{orgId}/sessions/{sessionId}/input-requests/{requestId}/secret Provide a secret request's value #
GET /v3/organizations/{orgId}/sessions/{sessionId}/insights Get session insights #
POST /v3/organizations/{orgId}/sessions/{sessionId}/insights/generate Generate session insights #
GET /v3/organizations/{orgId}/sessions/{sessionId}/messages List messages #
POST /v3/organizations/{orgId}/sessions/{sessionId}/messages Send a message #
DELETE /v3/organizations/{orgId}/sessions/{sessionId}/messages/{messageId}/queued Withdraw a queued message #
POST /v3/organizations/{orgId}/sessions/{sessionId}/messages/{messageId}/steer Send a queued message now #
POST /v3/organizations/{orgId}/sessions/{sessionId}/project Move a session to a project #
POST /v3/organizations/{orgId}/sessions/{sessionId}/rename Rename a session #
POST /v3/organizations/{orgId}/sessions/{sessionId}/retry Retry a session's last turn #
POST /v3/organizations/{orgId}/sessions/{sessionId}/rewind Edit a message and rewind #
GET /v3/organizations/{orgId}/sessions/{sessionId}/tags List session tags #
POST /v3/organizations/{orgId}/sessions/{sessionId}/tags Append session tags #
PUT /v3/organizations/{orgId}/sessions/{sessionId}/tags Replace session tags #
PATCH /v3/organizations/{orgId}/sessions/{sessionId}/tags Replace session tags #
GET /v3/organizations/{orgId}/sessions/{sessionId}/trajectory Export session trajectory #
POST /v3/organizations/{orgId}/sessions/{sessionId}/unarchive Restore a session #

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-sessions-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-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reason Sessions 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:


# --- truncated at 32 KB (361 KB total) ---
# Full source: https://artifacts.apis.io/reasonmachines-com/openapi/reasonmachines-com-sessions-api-openapi.yml