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

# List revert batches

> The **Time Machine ledger**: every trading-day revert your organization has ever run, newest first. Single-account reverts appear as batches of one; bulk reverts as one batch covering all their accounts.

Use this to build an admin history view ("who reverted what, when, and why") and as the entry point for undo: pick a batch, inspect it with `GET /revert-batches/{batchId}`, and reverse it with `POST /revert-batches/{batchId}/undo`.

`undoneCount` vs `accountCount` tells you the batch state at a glance: `0` = fully in effect, equal = fully undone, in between = partially undone (some accounts had new activity when the undo ran).

**Example:**
```bash
curl "https://api.hyperprop.com/platform/v1/organization/revert-batches?limit=20" \
  -H "X-API-Key: hp_live_your_key_here"
```



## OpenAPI

````yaml /api-reference/openapi.json get /v1/organization/revert-batches
openapi: 3.0.0
info:
  title: Hyperprop Platform API
  version: 1.0.0
  description: >-
    REST API for the Hyperprop Trading Platform — provision evaluation and
    funded trading accounts, manage traders and plans, react to account
    lifecycle events via signed webhooks, and reconcile billing. Built for prop
    firms integrating from their own backend.


    Authentication, quick start, error handling, idempotency, pagination, custom
    metadata, webhooks, and the MCP connector are documented at
    https://docs.hyperprop.com.
  x-logo:
    url: https://app.hyperprop.com/logo-icon.svg
    altText: Hyperprop
    href: https://hyperprop.com
servers:
  - url: https://api.hyperprop.com/platform
    description: Production
security: []
tags:
  - name: Trading accounts
    description: Create, update, and inspect trading accounts.
  - name: Traders
    description: Look up and update the traders in your organization.
  - name: Trading plans
    description: Define the plans you sell.
  - name: Trading rules
    description: Define how accounts are evaluated.
  - name: Lockouts
    description: Pause and resume trading on an account.
  - name: Payouts
    description: Check payout eligibility and record payouts.
  - name: Purchases
    description: Purchases recorded for your organization.
  - name: Time Machine
    description: Restore accounts to an earlier trading day or instant.
  - name: Webhooks
    description: Register webhook endpoints and inspect deliveries.
  - name: Events
    description: Your organization's event history and real-time event stream.
  - name: Reconciliation
    description: Balances, end-of-day snapshots, and fills for reconciliation.
  - name: Analytics
    description: Organization performance and plan economics.
  - name: Billing
    description: 'Your Hyperprop bill: activity, billing cycles, and forecasts.'
  - name: Team and roles
    description: Manage dashboard access for your staff.
  - name: API keys
    description: Manage your organization's API key.
  - name: Logs and health
    description: API request logs, the audit log, and integration health.
  - name: Organization profile
    description: Your organization's profile and logo.
  - name: Support
    description: Open and follow up on support tickets.
  - name: Partner access
    description: >-
      Read a trader's journal as an approved partner app, with the trader's own
      key.
paths:
  /v1/organization/revert-batches:
    get:
      tags:
        - Time Machine
      summary: List revert batches
      description: >-
        The **Time Machine ledger**: every trading-day revert your organization
        has ever run, newest first. Single-account reverts appear as batches of
        one; bulk reverts as one batch covering all their accounts.


        Use this to build an admin history view ("who reverted what, when, and
        why") and as the entry point for undo: pick a batch, inspect it with
        `GET /revert-batches/{batchId}`, and reverse it with `POST
        /revert-batches/{batchId}/undo`.


        `undoneCount` vs `accountCount` tells you the batch state at a glance:
        `0` = fully in effect, equal = fully undone, in between = partially
        undone (some accounts had new activity when the undo ran).


        **Example:**

        ```bash

        curl
        "https://api.hyperprop.com/platform/v1/organization/revert-batches?limit=20"
        \
          -H "X-API-Key: hp_live_your_key_here"
        ```
      operationId: getV1OrganizationRevertbatches
      parameters:
        - description: Results per page
          name: limit
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
        - description: Pagination offset
          name: offset
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
      responses:
        '200':
          description: Revert batches retrieved
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model111'
        '401':
          description: Authentication required
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model9'
        '403':
          description: Access denied
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model47'
        '500':
          description: An unexpected error occurred
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model5'
      security:
        - X-API-Key: []
components:
  schemas:
    Model111:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/Model110'
    Model9:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 401
        error:
          type: string
          example: Unauthorized
        message:
          type: string
          example: Authentication required
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: UNAUTHORIZED
    Model47:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 403
        error:
          type: string
          example: Forbidden
        message:
          type: string
          example: Access denied
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: FORBIDDEN
    Model5:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 500
        error:
          type: string
          example: Internal Server Error
        message:
          type: string
          example: An unexpected error occurred
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: INTERNAL_ERROR
    Model110:
      type: object
      example:
        batches:
          - batchId: a1b2c3d4-e5f6-7890-abcd-ef1234567890
            tradingDay: '2026-07-07'
            reason: Data feed outage
            scope: bulk
            requestedBy: ops@yourfirm.com
            accountCount: 42
            undoneCount: 0
            undoneAt: null
            undoneBy: null
            undoReason: null
            createdAt: '2026-07-08T14:03:22.000Z'
        pagination:
          total: 1
          limit: 50
          offset: 0
          hasMore: false
      properties:
        batches:
          $ref: '#/components/schemas/batches'
        pagination:
          $ref: '#/components/schemas/Model109'
    batches:
      type: array
      items:
        $ref: '#/components/schemas/Model108'
    Model109:
      type: object
      properties:
        total:
          type: number
        limit:
          type: number
        offset:
          type: number
        hasMore:
          type: boolean
    Model108:
      type: object
      properties:
        batchId:
          type: string
        tradingDay:
          type: string
          description: >-
            The day the batch reverted TO (for a point-in-time batch: the
            trading day containing the instant)
        revertTo:
          type: string
          description: >-
            The instant (ISO, UTC) a point-in-time batch reverted to; null for
            end-of-day batches
        audience:
          $ref: '#/components/schemas/audience'
        reason:
          type: string
        scope:
          $ref: '#/components/schemas/scope'
        requestedBy:
          type: string
          description: Admin email, or "api-key"
        accountCount:
          type: number
        undoneCount:
          type: number
        undoneAt:
          type: string
          description: Set when the whole batch has been undone
        undoneBy:
          type: string
        undoReason:
          type: string
        createdAt:
          type: string
    audience:
      type: object
      description: >-
        The { from, to, condition } window that selected the accounts, when the
        batch was audience-targeted
    scope:
      type: string
      enum:
        - single
        - bulk
  securitySchemes:
    X-API-Key:
      type: apiKey
      name: X-API-Key
      in: header
      description: >-
        Organization API key. Format: "hp_live_{key}". Organization admins
        manage the key in the dashboard.

````

## Related topics

- [Inspect a revert batch](/platform-api/time-machine/inspect-a-revert-batch.md)
- [Undo a revert batch](/platform-api/time-machine/undo-a-revert-batch.md)
- [Bulk revert accounts to a trading day or an instant](/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant.md)
- [Revert an account to a trading day or an instant](/platform-api/time-machine/revert-an-account-to-a-trading-day-or-an-instant.md)
- [List roles (system presets + your custom roles)](/platform-api/team-and-roles/list-roles-system-presets-+-your-custom-roles.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.