Reason Machines Agent Auth API
The Agent Auth API from Reason Machines — 2 operation(s) for agent auth.
The Agent Auth API from Reason Machines — 2 operation(s) for agent auth.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/reasonmachines-com:reasonmachines-com-agent-auth-api"
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.
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: 3.2.0
info:
title: Reason Agent Auth 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: Agent Auth
paths:
/v3/organizations/{orgId}/agent-auth/models:
parameters:
- $ref: '#/components/parameters/orgId'
get:
operationId: listAgentModels
x-reason-read-only: false
x-reason-open-world: true
x-reason-mcp-description: Lists the models a session here can run on, Reason's first, then connected provider accounts', each with `id`, `label`, `provider`, `reasoning_efforts` and whether it is `available` now. An `id` goes to `createSession` as `model`, one of its `reasoning_efforts` as `reasoning_effort`.
tags:
- Agent Auth
summary: List Reason models
description: 'Returns Reason''s reviewed models and models served by the workspace''s connected provider accounts, with current availability.
Scope: `agent_auth:read`'
responses:
'200':
description: Reason availability and reviewed models.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentModelList'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
security:
- reasonApiKey:
- agent_auth:read
/v3/organizations/{orgId}/agent-auth/status:
parameters:
- $ref: '#/components/parameters/orgId'
get:
operationId: getAgentAuthStatus
x-reason-mcp-description: Reports whether Reason's managed inference can run sessions now (`reason`, `reason_subscription_available`, `reason_openai_available`); other fields are fixed compatibility values. Runnable models come from `listAgentModels`; a saved account is checked by `checkProviderAccount`.
tags:
- Agent Auth
summary: Get Reason inference availability
description: 'Reports whether Reason''s managed inference service is available. No provider credentials are exposed.
Scope: `agent_auth:read`'
responses:
'200':
description: Reason inference availability.
content:
application/json:
schema:
$ref: '#/components/schemas/AgentAuthStatus'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
security:
- reasonApiKey:
- agent_auth:read
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.
AgentModel:
type: object
properties:
id:
type: string
description: Concrete reviewed model id accepted by session creation.
label:
type: string
description: Display name of the model.
detail:
type: string
description: Short note shown beside the label; for a connected provider account's model, the account's label and kind (subscription or API key).
provider:
type: string
description: 'Provider serving the model: Reason''s own provider id, or the `provider_id` of a connected provider account.'
reasoning:
type: boolean
description: Whether the model supports a reasoning effort setting.
reasoning_efforts:
type: array
items:
type: string
enum:
- 'off'
- minimal
- low
- medium
- high
- xhigh
- max
description: Reasoning efforts a session may request with this model.
available:
type: boolean
description: Whether a session can use the model right now in this workspace.
hidden:
type: boolean
description: True for a model kept only so existing sessions can continue; it is not offered for new selection.
access_tier:
type: string
description: Plan tier the model needs, such as free or pro.
preview:
type: boolean
description: 'True for a Reason model offered as a preview: it may change or be withdrawn, and its provider may keep prompts for a period.'
required:
- id
- label
- provider
- reasoning
- reasoning_efforts
AgentAuthStatus:
type: object
properties:
reason:
type: boolean
description: Whether Reason's managed inference service is available.
reason_subscription_available:
type: boolean
description: Whether Reason's managed subscription inference is available; currently the same value as `reason`.
reason_openai_available:
type: boolean
description: Whether Reason-managed OpenAI-family models are available; currently the same value as `reason`.
reason_gateway_available:
type: boolean
description: Compatibility field; the same value as `reason`.
codex:
type: boolean
description: Compatibility field for a retired provider; always false.
copilot:
type: boolean
description: Compatibility field for a retired provider; always false.
azure:
type: boolean
description: Compatibility field for a retired provider; always false.
openrouter:
type: boolean
description: Compatibility field for a retired provider; always false.
azure_entra_id_available:
type: boolean
description: Compatibility field; always false.
byok:
type: object
additionalProperties:
type: boolean
description: Compatibility map of provider id to saved-key state; every value is false. Not a list of saved provider accounts.
byok_reconnect_required:
type: object
additionalProperties:
type: boolean
description: Compatibility map of provider id to reconnect state; every value is false.
official_secrets:
type: object
additionalProperties:
type: boolean
description: Compatibility map of legacy credential names to presence; every value is false, and no credential is read.
provider_health:
type: object
additionalProperties:
type: object
properties:
state:
type: string
description: 'Always unknown: no provider health check runs.'
source:
type: string
description: Always none.
message:
description: Always null.
type:
- string
- 'null'
run_id:
description: Always null.
type:
- string
- 'null'
run_status:
description: Always null.
type:
- string
- 'null'
checked_at:
description: Always null.
type:
- string
- 'null'
required:
- state
- source
- message
- run_id
- run_status
- checked_at
description: Compatibility health entries for retired providers, keyed by provider; every entry is unknown.
connections:
type: array
items: {}
description: Compatibility field; always an empty list.
ara:
type: boolean
deprecated: true
description: 'Deprecated: use `reason` (same value).'
ara_subscription_available:
type: boolean
deprecated: true
description: 'Deprecated: use `reason_subscription_available` (same value).'
ara_openai_available:
type: boolean
deprecated: true
description: 'Deprecated: use `reason_openai_available` (same value).'
required:
- reason
- reason_subscription_available
- reason_openai_available
- reason_gateway_available
- codex
- copilot
- azure
- openrouter
- azure_entra_id_available
- byok
- byok_reconnect_required
- official_secrets
- provider_health
- connections
- ara
- ara_subscription_available
- ara_openai_available
additionalProperties: false
AgentModelList:
type: object
properties:
providers:
type: object
properties:
codex:
type: boolean
description: Compatibility field for a retired provider; always false.
copilot:
type: boolean
description: Compatibility field for a retired provider; always false.
openrouter:
type: boolean
description: Compatibility field for a retired provider; always false.
reasonOpenai:
type: boolean
description: The same value as `reason`.
reasonGateway:
type: boolean
description: The same value as `reason`.
byok:
type: object
additionalProperties:
type: boolean
description: Compatibility map of provider id to saved-key state; every value is false. Connected provider accounts appear as models instead.
reason:
type: boolean
description: Whether Reason's managed inference service is available.
araOpenai:
type: boolean
deprecated: true
description: 'Deprecated: use `reasonOpenai` (same value).'
araGateway:
type: boolean
deprecated: true
description: 'Deprecated: use `reasonGateway` (same value).'
ara:
type: boolean
deprecated: true
description: 'Deprecated: use `reason` (same value).'
required:
- codex
- copilot
- openrouter
- reasonOpenai
- reasonGateway
- byok
- reason
- araOpenai
- araGateway
description: Availability flags; `reason` is whether Reason's managed inference is available.
models:
type: array
items:
$ref: '#/components/schemas/AgentModel'
description: Reason's models followed by the models of the workspace's connected provider accounts. A model id is what session creation accepts as its model.
required:
- providers
- models
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).'