Reason Machines Audit Logs API

An append-only record of changes made within the organization.

GitHub OpenAPI

Operations 1

GET /v3/organizations/{orgId}/audit-logs List audit log entries #

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-audit-logs-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-audit-logs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reason Audit Logs 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: Audit Logs
  description: An append-only record of changes made within the organization.
paths:
  /v3/organizations/{orgId}/audit-logs:
    parameters:
    - $ref: '#/components/parameters/orgId'
    get:
      operationId: listAuditLogs
      x-reason-mcp-description: Returns newest-first audit `items`, each with its `action`, actor, target, `metadata` and time, plus `has_next_page` and `end_cursor`. Filter by `action`, `actor`, `since` and `before`; pass `end_cursor` as `before` for the next page. Only owners and admins see other members' secret names.
      tags:
      - Audit Logs
      summary: List audit log entries
      description: 'Returns audit log entries newest first. Entry fields are camelCase (`actorUserId`, `targetId`, `createdAt`). Owners and admins read every entry in full. For other members, entries about another member''s personal secrets keep their action, actor and time but withhold the secret names (`targetId` and `targetLabel` are null, `metadata.secret_names` omits them, and `metadata.names_withheld` is true).


        Scope: `analytics:read`'
      responses:
        '200':
          description: Audit log entries.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      $ref: '#/components/schemas/AuditLogEntry'
                    description: Audit entries on this page, newest first.
                  has_next_page:
                    type: boolean
                    description: Whether older entries may follow this page.
                  end_cursor:
                    description: Creation time of the oldest entry on this page; pass it as `before` for the next page. Null on the last page.
                    type:
                    - string
                    - 'null'
                  entries:
                    type: array
                    items:
                      $ref: '#/components/schemas/AuditLogEntry'
                    deprecated: true
                    description: 'Deprecated: use `items` (same value).'
                  next_before:
                    deprecated: true
                    description: 'Deprecated: use `end_cursor` (same value).'
                    type:
                    - string
                    - 'null'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
      parameters:
      - in: query
        name: limit
        schema:
          type: integer
          default: 50
        description: How many audit entries to return in this page; a larger value is capped at 200.
      - in: query
        name: before
        schema:
          type: string
          format: date-time
        description: 'Exclusive upper time bound: only entries recorded before it are returned. Pass the previous page''s `end_cursor` to read the next, older page; omit it to start from the newest entry.'
      - in: query
        name: action
        schema:
          type: string
        description: Filter by an action recorded in an entry, such as `secret.set`.
      - in: query
        name: actor
        schema:
          type: string
        description: Filter by a member user ID returned by `listMembers` or an audit entry's actor user ID.
      - in: query
        name: since
        schema:
          type: string
          format: date-time
        description: Return only entries recorded at or after this moment, to read recent activity; omit it to reach back to the oldest entry.
      security:
      - reasonApiKey:
        - analytics: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.
    AuditLogEntry:
      type: object
      properties:
        id:
          type: string
          description: Audit entry id.
        organizationId:
          type: string
          description: Workspace the entry belongs to.
        action:
          type: string
          description: The action performed, e.g. `secret.set`.
        actorUserId:
          description: The user who performed the action. Null for an action Reason performed itself.
          type:
          - string
          - 'null'
        actorEmail:
          description: That user's email when the action was recorded.
          type:
          - string
          - 'null'
        targetType:
          description: The kind of resource affected, e.g. `secret` or `run`.
          type:
          - string
          - 'null'
        targetId:
          description: The affected resource's identifier. Null when withheld from this reader.
          type:
          - string
          - 'null'
        targetLabel:
          description: 'The affected resource''s human name when the action was recorded (a note''s or automation''s name, a secret''s name, a repository''s path; a trigger''s is its automation''s name), for a deletion too. Null when the resource has no name, when withheld from this reader, and always for Sessions: a Session''s title is conversation content, so `session.*` entries carry only `targetId` (read the title with the session endpoints).'
          type:
          - string
          - 'null'
        metadata:
          description: 'Action-specific details. `secret.set` carries `scope` and `change` (`created`, `rotated` or `metadata_updated`). `names_withheld: true` marks an entry whose secret names this reader may not see.'
          type:
          - object
          - 'null'
        createdAt:
          type: string
          format: date-time
          description: When the action was recorded.
  parameters:
    orgId:
      name: orgId
      in: path
      required: true
      description: Organization id or slug. Resolve it with `GET /v3/self`.
      schema:
        type: string
  responses:
    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
    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
  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).'