> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revoengine.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search terminal connection and command activity with a stable cursor

> Search terminal connection and command activity with a stable cursor. The request requires an authenticated caller and enforces terminal ownership, access grants, and activity visibility.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/vault/terminals/activity
openapi: 3.0.0
info:
  title: RevoEngine Platform API
  description: Official RevoEngine Platform API documentation.
  version: 1.6.2
  contact:
    name: Support
    email: support@revoengine.com
  termsOfService: https://docs.revoengine.com/tos
servers:
  - url: https://api.revoengine.com
    description: Production
security: []
tags:
  - name: Accounts
    description: Users, service accounts, API keys, status, and platform access.
    externalDocs:
      description: Identity and access guide
      url: https://docs.revoengine.com/operate/identity-and-access
  - name: Activity
    description: Snapshot-backed activity and version history.
    externalDocs:
      description: Observability guide
      url: https://docs.revoengine.com/operate/observability
  - name: Agent Memory
    description: Administrative access to durable Agent memory.
    externalDocs:
      description: Agent memory and workspaces guide
      url: https://docs.revoengine.com/ai/memory-and-workspaces
  - name: Agent Plugins
    description: Agent plugin definitions, synchronization, testing, and lifecycle.
    externalDocs:
      description: Agent plugins guide
      url: https://docs.revoengine.com/ai/plugins
  - name: Agent Terminals
    description: Terminal pairing, owner grants, access, and command activity.
    externalDocs:
      description: Connect a terminal guide
      url: https://docs.revoengine.com/ai/terminals
  - name: Agents
    description: >-
      Agent definitions, runs, sessions, inboxes, memory, tools, workspaces, and
      lifecycle.
    externalDocs:
      description: Autonomous Agents guide
      url: https://docs.revoengine.com/ai/agents
  - name: Assistant
    description: >-
      Assistant threads, messages, responses, goals, reports, sharing,
      attachments, and control.
    externalDocs:
      description: Assistant guide
      url: https://docs.revoengine.com/ai/assistant
  - name: Automation
    description: >-
      Jobs, templates, schedules, events, webhooks, execution history, and
      lifecycle.
    externalDocs:
      description: Automation guide
      url: https://docs.revoengine.com/operate/automation
  - name: Chat
    description: Collaborative chat threads, messages, reactions, uploads, and attachments.
    externalDocs:
      description: Team Chat guide
      url: https://docs.revoengine.com/operate/chat
  - name: Component deployments
    description: >-
      Custom Node.js runtime deployment attempts, readiness, activation, and
      rollback.
    externalDocs:
      description: Custom Node.js guide
      url: https://docs.revoengine.com/build/custom-nodejs
  - name: Components
    description: Components, elements, versions, validation, activation, and lifecycle.
    externalDocs:
      description: Components guide
      url: https://docs.revoengine.com/build/components
  - name: Config
    description: Instance configuration, usage, logs, and cache administration.
    externalDocs:
      description: Instance settings guide
      url: https://docs.revoengine.com/platform/instance-settings
  - name: Database Cache
    description: Instance Database cache values and statistics.
    externalDocs:
      description: Database Cache guide
      url: https://docs.revoengine.com/operate/database-cache
  - name: Database Views
    description: Database Views, previews, refreshes, exports, and controlled data actions.
    externalDocs:
      description: Database Views guide
      url: https://docs.revoengine.com/operate/database-views
  - name: Databases
    description: Database definitions, data, audits, exports, cloning, and lifecycle.
    externalDocs:
      description: Databases guide
      url: https://docs.revoengine.com/operate/databases
  - name: Endpoints
    description: >-
      Endpoint definitions, activation, validation, generated OpenAPI, and
      statistics.
    externalDocs:
      description: Endpoints guide
      url: https://docs.revoengine.com/operate/endpoints
  - name: Files
    description: Compatibility file listing, preview, download, and deletion operations.
    externalDocs:
      description: Files compatibility guide
      url: https://docs.revoengine.com/operate/files
  - name: Groups
    description: Groups, membership, avatars, and lifecycle.
    externalDocs:
      description: Groups guide
      url: https://docs.revoengine.com/operate/groups
  - name: Instance Vault
    description: Operations in the Instance Vault Platform API domain.
    externalDocs:
      description: Secrets and Vault guide
      url: https://docs.revoengine.com/operate/secrets
  - name: Me
    description: Current user profile, keys, avatar, and session information.
    externalDocs:
      description: Authentication guide
      url: https://docs.revoengine.com/developers/authentication
  - name: Preferences
    description: User and instance preference values.
    externalDocs:
      description: Platform UI guide
      url: https://docs.revoengine.com/platform/ui-tour
  - name: Role Groups
    description: Role groups, members, assigned roles, and lifecycle.
    externalDocs:
      description: Permissions guide
      url: https://docs.revoengine.com/operate/permissions
  - name: Roles
    description: Available platform roles and role details.
    externalDocs:
      description: Permissions guide
      url: https://docs.revoengine.com/operate/permissions
  - name: Search
    description: Cross-domain search over objects visible to the caller.
    externalDocs:
      description: Search and discovery guide
      url: https://docs.revoengine.com/platform/search
  - name: Secrets
    description: >-
      Secret definitions, revisions, activation, reveal, disable, and
      destruction.
    externalDocs:
      description: Secrets guide
      url: https://docs.revoengine.com/operate/secrets
  - name: Share
    description: >-
      Short-lived authenticated links to supported application routes and grid
      state.
    externalDocs:
      description: Platform API share-link guide
      url: >-
        https://docs.revoengine.com/developers/platform-api#share-application-context
  - name: Storage
    description: >-
      Storage workspaces, folders, objects, upload sessions, signed access, and
      lifecycle.
    externalDocs:
      description: Storage guide
      url: https://docs.revoengine.com/operate/storage
externalDocs:
  description: Documentation
  url: https://docs.revoengine.com
paths:
  /api/v1/vault/terminals/activity:
    get:
      tags:
        - Agent Terminals
      summary: Search terminal connection and command activity with a stable cursor
      description: >-
        Search terminal connection and command activity with a stable cursor.
        The request requires an authenticated caller and enforces terminal
        ownership, access grants, and activity visibility.
      operationId: TerminalGrantController_activity[1]
      parameters:
        - name: agentTerminalId
          required: false
          in: query
          description: Limit activity to one terminal.
          schema:
            type: string
        - name: cursor
          required: false
          in: query
          description: Return entries older than this activity ID.
          schema:
            type: string
        - name: search
          required: false
          in: query
          description: Case-insensitive text search, up to 100 characters.
          schema:
            type: string
        - name: take
          required: false
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 200
          description: Page size from 1 to 200; default 50.
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TerminalActivityListDto'
      security:
        - bearer: []
components:
  schemas:
    TerminalActivityListDto:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/TerminalActivitySummaryDto'
        nextCursor:
          type: string
          nullable: true
          description: Pass this value as cursor to read the next page.
      required:
        - data
    TerminalActivitySummaryDto:
      type: object
      properties:
        activityId:
          type: string
          description: Monotonic cursor, returned as a decimal string.
        agentTerminalId:
          type: string
          format: uuid
        ownerUserId:
          type: string
          format: uuid
        actorUserId:
          type: string
          format: uuid
        actorName:
          type: string
          nullable: true
        actorMail:
          type: string
          nullable: true
        assistantThreadId:
          type: string
          nullable: true
        connectionId:
          type: string
          format: uuid
          nullable: true
        executionId:
          type: string
          format: uuid
          nullable: true
        targetExecutionId:
          type: string
          format: uuid
          nullable: true
        kind:
          type: string
          enum:
            - runner_connected
            - runner_disconnected
            - chat_connected
            - chat_disconnected
            - command
            - command_cancel
            - grant_paired
            - grant_approved
            - grant_updated
            - grant_removed
        status:
          type: string
        grantRevision:
          type: number
        grantMode:
          type: string
          enum:
            - review
            - full
        restricted:
          type: boolean
        permissionPolicy:
          type: string
          nullable: true
        clientIp:
          type: string
          nullable: true
        command:
          type: string
          nullable: true
        workdir:
          type: string
          nullable: true
        outputCursor:
          type: number
        executed:
          type: boolean
        exitCode:
          type: number
          nullable: true
        timedOut:
          type: boolean
        cancelled:
          type: boolean
        truncated:
          type: boolean
        logTruncated:
          type: boolean
        createdAt:
          type: string
          format: date-time
        finishedAt:
          format: date-time
          type: string
          nullable: true
        changes:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              before: {}
              after: {}
          description: >-
            Configuration diff for grant activity. Commands do not include
            changes.
      required:
        - activityId
        - agentTerminalId
        - ownerUserId
        - actorUserId
        - kind
        - status
        - grantRevision
        - grantMode
        - restricted
        - outputCursor
        - executed
        - timedOut
        - cancelled
        - truncated
        - logTruncated
        - createdAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      description: Bearer JWT token or API Key (sk-*).
      type: http

````