> ## 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.

# Inspect a revert batch

> Everything one revert batch did, account by account: the balance and status each account had before and after, how many snapshots and orders were voided, whether positions were force-closed, and whether that account has since been undone.

For each account, `balanceBefore`/`statusBefore` is the **pre-revert** state — exactly what an undo would restore.

**Example:**
```bash
curl "https://api.hyperprop.com/platform/v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
  -H "X-API-Key: hp_live_your_key_here"
```



## OpenAPI

````yaml /api-reference/openapi.json get /v1/organization/revert-batches/{batchId}
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/{batchId}:
    get:
      tags:
        - Time Machine
      summary: Inspect a revert batch
      description: >-
        Everything one revert batch did, account by account: the balance and
        status each account had before and after, how many snapshots and orders
        were voided, whether positions were force-closed, and whether that
        account has since been undone.


        For each account, `balanceBefore`/`statusBefore` is the **pre-revert**
        state — exactly what an undo would restore.


        **Example:**

        ```bash

        curl
        "https://api.hyperprop.com/platform/v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
        \
          -H "X-API-Key: hp_live_your_key_here"
        ```
      operationId: getV1OrganizationRevertbatchesBatchid
      parameters:
        - description: Batch id returned by a revert call (or from the ledger list)
          x-format:
            guid: true
          name: batchId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Revert batch detail
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model280'
        '401':
          description: Authentication required
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model9'
        '403':
          description: Access denied
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model47'
        '404':
          description: Batch not found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model281'
        '500':
          description: An unexpected error occurred
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model5'
      security:
        - X-API-Key: []
components:
  schemas:
    Model280:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          $ref: '#/components/schemas/Model279'
    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
    Model281:
      type: object
      properties:
        success:
          type: boolean
          example: false
        code:
          type: string
          example: BATCH_NOT_FOUND
        message:
          type: string
          example: Revert batch not found
    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
    Model279:
      type: object
      example:
        batchId: a1b2c3d4-e5f6-7890-abcd-ef1234567890
        tradingDay: '2026-07-07'
        reason: Data feed outage
        scope: single
        requestedBy: ops@yourfirm.com
        accountCount: 1
        undoneCount: 0
        undoneAt: null
        undoneBy: null
        undoReason: null
        createdAt: '2026-07-08T14:03:22.000Z'
        accounts:
          - accountId: 7c9e6679-7425-40de-944b-e07fc1f90ae7
            accountNumber: ACC-7845KXPQ
            revertedTo: '2026-07-07'
            balanceBefore: 48750
            balanceAfter: 51250
            statusBefore: failed
            statusAfter: in_progress
            snapshotsVoided: 1
            ordersVoided: 14
            positionsClosed: 1
            ordersCancelled: 2
            undoneAt: null
      properties:
        batchId:
          type: string
        tradingDay:
          type: string
        revertTo:
          type: string
          description: >-
            The instant (ISO, UTC) for a point-in-time batch; null for
            end-of-day
        audience:
          $ref: '#/components/schemas/Model276'
        reason:
          type: string
        scope:
          $ref: '#/components/schemas/scope'
        requestedBy:
          type: string
        accountCount:
          type: number
        undoneCount:
          type: number
        undoneAt:
          type: string
        undoneBy:
          type: string
        undoReason:
          type: string
        createdAt:
          type: string
        accounts:
          $ref: '#/components/schemas/Model278'
    Model276:
      type: object
      description: The audience window that selected the accounts, if any
    scope:
      type: string
      enum:
        - single
        - bulk
    Model278:
      type: array
      items:
        $ref: '#/components/schemas/Model277'
    Model277:
      type: object
      properties:
        accountId:
          type: string
        accountNumber:
          type: string
        revertedTo:
          type: string
          description: >-
            Trading day restored, the ISO instant for a point-in-time restore,
            or "initial_state"
        balanceBefore:
          type: number
          description: Balance the moment before the revert (what undo restores)
        balanceAfter:
          type: number
          description: Balance the revert restored
        statusBefore:
          type: string
        statusAfter:
          type: string
        snapshotsVoided:
          type: number
        ordersVoided:
          type: number
        positionsClosed:
          type: number
        ordersCancelled:
          type: number
        undoneAt:
          type: string
          description: Set when this account has been restored by an undo
  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

- [List revert batches](/platform-api/time-machine/list-revert-batches.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)
- [Inspect one event and all its webhook deliveries](/platform-api/events/inspect-one-event-and-all-its-webhook-deliveries.md)


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