Reason Machines Members API
People in an organization and their pending invites.
People in an organization and their pending invites.
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-members-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 Members 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: Members
description: People in an organization and their pending invites.
paths:
/v3/organizations/{orgId}/members/users:
parameters:
- $ref: '#/components/parameters/orgId'
get:
operationId: listMembers
x-reason-mcp-description: Lists the workspace's members, each with `user_id`, `email` and `role`, to find the `user_id` that `getMember`, `setMemberRole` and `removeMember` take. Owners and admins also get the pending `invites`; for other members that list is empty. Reading changes nothing.
tags:
- Members
summary: List members
description: 'Returns the people in the organization.
Scope: `org:read`'
responses:
'200':
description: Members.
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/Member'
description: Every member of the workspace.
total:
type: integer
description: Number of members in `items`.
has_next_page:
type: boolean
description: 'Always false: every member is returned in one page.'
end_cursor:
type: 'null'
description: 'Always null: there is no further page.'
invites:
type: array
items:
$ref: '#/components/schemas/Invite'
description: Pending invitations, oldest first, for owner and admin callers; an empty list for anyone else.
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
security:
- reasonApiKey:
- org:read
post:
operationId: inviteMember
x-reason-open-world: true
x-reason-mcp-description: Invites `emails` as `role` (admin when omitted); owner or admin only. Any plan, Pro included, may invite, with no seat limit; each joiner needs a seat unless the plan covers all members. Returns `invited` (recorded) and `sent` (emailed). Invitees appear under `invites` in `listMembers`.
tags:
- Members
summary: Invite a member
description: 'Sends invitations to join the organization with the given role. Requires owner or admin. Every plan, Pro included, may invite, and there is no seat limit. Each person who joins a shared workspace needs their own seat (Pro is $50 a month) unless the workspace''s plan covers every member (Team bought earlier, or Enterprise). This endpoint does not pay that seat: an owner or admin can pay it with a card saved in Billing (the app''s Members page does so for every invite), or the person starts their own Pro seat, with a free 3-day trial if they are eligible (once per person and card).
Scope: `org:write`'
responses:
'200':
description: Invitations created.
content:
application/json:
schema:
type: object
properties:
invited:
type: integer
description: How many invitations were recorded.
sent:
type: integer
description: How many invitation emails were delivered; lower than `invited` when email is unavailable or a delivery failed.
example:
invited: 1
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
emails:
type: array
items:
type: string
format: email
description: People to invite to this workspace, supplied by their email addresses.
role:
type: string
enum:
- admin
- member
default: admin
description: Workspace role every invitee gets on accepting the invitation; omit it to invite them as admins. Make someone an owner after they join, with `setMemberRole`.
required:
- emails
example:
emails:
- engineer@acme.com
role: admin
security:
- reasonApiKey:
- org:write
/v3/organizations/{orgId}/members/users/{userId}:
parameters:
- $ref: '#/components/parameters/orgId'
- name: userId
description: The member's user id, returned as `user_id` by `listMembers`.
in: path
required: true
schema:
type: string
get:
operationId: getMember
x-reason-mcp-description: 'Returns one workspace member by the `user_id` from `listMembers`: `user_id`, `email`, `role`, `avatar_url` and `created_at`. Use it to check someone''s role before `setMemberRole` or `removeMember`. A user who is not a member returns 404 `member_not_found`.'
tags:
- Members
summary: Get a member
description: 'Returns user_id, email, workspace role, avatar_url and created_at for a member. Workspace roles differ from product tiers managed through /roles. Non-members return 404 member_not_found.
Scope: `org:read`'
responses:
'200':
description: The member.
content:
application/json:
schema:
$ref: '#/components/schemas/Member'
example:
user_id: user_example
email: engineer@example.com
role: owner
avatar_url: null
created_at: '2026-09-01T00:00:00Z'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
security:
- reasonApiKey:
- org:read
delete:
operationId: removeMember
x-reason-open-world: true
x-reason-mcp-description: Removes a person, by the `user_id` from `listMembers`, from this workspace; their account and other workspaces are untouched. Requires owner or admin, and only owners can remove owners. Returns ok set to true; removing the last owner returns 409 `last_owner`.
tags:
- Members
summary: Remove a member
description: 'Removes workspace membership, not the user''s account. Requires owner/admin authority; only owners can remove owners. Removing the last owner returns 409 last_owner. Returns ok: true or 404 member_not_found.
Scope: `org:write`'
responses:
'200':
$ref: '#/components/responses/Ok'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
security:
- reasonApiKey:
- org:write
/v3/organizations/{orgId}/members/users/{userId}/role:
parameters:
- $ref: '#/components/parameters/orgId'
- name: userId
description: The member's user id, returned as `user_id` by `listMembers`.
in: path
required: true
schema:
type: string
put:
operationId: setMemberRole
x-reason-destructive: true
x-reason-mcp-description: Changes a member's workspace role, by the `user_id` from `listMembers`, to `owner`, `admin` or `member`; not a product tier or key scope. Requires owner or admin, and only owners grant or change the owner role. Returns `user_id` and the new `role`; demoting the last owner returns 409 `last_owner`.
tags:
- Members
summary: Set a member's role
description: 'Changes workspace membership to owner, admin or member. Requires owner/admin authority; only owners can grant or modify owner membership. Demoting the last owner returns 409 last_owner. This does not change product tiers or API-key scopes.
Scope: `org:write`'
responses:
'200':
description: Role updated.
content:
application/json:
schema:
type: object
properties:
user_id:
type: string
description: The member whose role changed, as passed in `userId`.
role:
type: string
enum:
- owner
- admin
- member
description: The member's workspace role now saved.
required:
- user_id
- role
example:
user_id: usr_4a1b
role: admin
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
role:
type: string
enum:
- owner
- admin
- member
description: Replacement workspace membership role, not a product tier or API-key scope. Only an owner can grant or change owner membership; the last owner cannot be demoted.
required:
- role
example:
role: admin
security:
- reasonApiKey:
- org:write
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
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
Ok:
description: Success.
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
const: true
description: 'Always true: the operation succeeded.'
required:
- ok
example:
ok: true
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:
Invite:
type: object
properties:
email:
type: string
format: email
description: Address the invitation was sent to.
role:
type: string
enum:
- admin
- member
description: Membership the person gets on accepting.
created_at:
type: string
format: date-time
description: When the invitation was sent.
accepted_at:
format: date-time
description: 'Always null here: only invitations not yet accepted or declined are listed.'
type:
- string
- 'null'
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.
Member:
type: object
properties:
user_id:
type: string
description: The member's user id; pass it as `userId`, or as `actor` to filter audit logs.
email:
format: email
description: The member's sign-in email.
type:
- string
- 'null'
role:
type: string
enum:
- owner
- admin
- member
description: Workspace membership role; not a product tier.
avatar_url:
description: Profile picture URL, when the member has one.
type:
- string
- 'null'
created_at:
type: string
format: date-time
description: When the person joined the workspace.
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).'