The undo button. Puts every account in a revert batch back exactly where it was the moment before the revert ran: pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader’s journal, order history, and daily stats come back like the revert never happened. Open terminals update live.
A revert destroys nothing (rows are stamped, not deleted), which is what makes this possible.
New orders are refused while an account is restored, as during a revert: the account carries a temporary lockout (cause: "admin", reason “Your firm is restoring this account…”) from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (ENGINE_RELOAD_UNCONFIRMED), the temporary lockout ends by itself after 15 minutes. A preview writes none.
Webhooks: each restored account fires account.updated (+ status events when the status moved) with trigger: "trading_day_revert_undo", and account.trading_day_revert_undone — the reverse of account.trading_day_reverted: same batchId, the snapshots put back and the fills that count again (up to 500 inline; re-read the affectedTradingDays for the rest).
Per-account rules (each account is checked independently — eligible ones proceed, blocked ones come back in failures):
Code
Meaning
NEW_ACTIVITY
The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can’t be restored over a new one — this account stays as-is.
NOT_LATEST_REVERT
A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first.
PAYOUT_OR_ADJUSTMENT_IN_RANGE
A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead.
ACCOUNT_CHANGED
The account’s balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry.
UNDO_UPDATE_ERROR
Failed to write the restored state — retry (idempotent).
Batch-level error codes:
Code
Status
Meaning
BATCH_NOT_FOUND
404
Unknown batch id (or it belongs to a different organization)
ALREADY_UNDONE
409
Every account in this batch has already been undone
BATCH_RUNNING
409
The batch is a background revert that is still running (status: "running") — wait until it has finished, then undo
BATCH_UNDOING
409
An undo of this batch is already running in the background (status: "undoing") — follow it on the batch
UNDO_START_ERROR
500
Background undo: the undo could not be started, so nothing was changed — retry
Size, and background runs. An undo takes roughly half a second per account. Up to 1000 accounts without background, the call restores every account and answers 200 with the per-account report (unchanged). With more than 1000 accounts left to undo, or "background": true at any size, it answers 202 with { batchId, status: "undoing", total, … } and keeps going; poll GET /revert-batches/{batchId} (status, undoProcessedCount, undoTotal, undoFailures). A preview checks every account up to 1000; above that it checks the first 100 (or previewLimit) and sets previewTruncated: true, with total counting every account left to undo.
An interrupted batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still running (including while it resumes after our maintenance) answers BATCH_RUNNING; cancel it first if you want to undo it now.
Timing: the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported.
Recommended flow:"preview": true first — you get the exact per-account restore report plus who would be blocked and why — then execute.
Example — preview, then undo:
# 1. Dry run — nothing changescurl -X POST ".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo" \ -H "X-API-Key: hp_live_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "preview": true }'# 2. Executecurl -X POST ".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo" \ -H "X-API-Key: hp_live_your_key_here" \ -H "Content-Type: application/json" \ -d '{ "reason": "Reverted the wrong day — restoring" }'
Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations & time machine.
POST
/
v1
/
organization
/
revert-batches
/
{batchId}
/
undo
Undo a revert batch
curl --request POST \ --url https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId}/undo \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "reason": "Reverted the wrong day — restoring", "preview": true, "previewLimit": 100, "background": true}'
{
"success": false,
"statusCode": 503,
"error": "Service Unavailable",
"message": "The Idempotency-Key could not be recorded, so the request was not run. Retry with the same key.",
"code": "IDEMPOTENCY_UNAVAILABLE"
}
Authorizations
X-API-Key
string
header
required
Organization API key (hp_live_...), sent in the X-API-Key header. Create, rotate and restrict keys in the dashboard or with the API keys endpoints; an organization can have two active keys, so you can rotate without downtime. A full-access key can call every endpoint in this reference. A read-only key can call GET endpoints (and create a trading stream token); any other request returns 403 READ_ONLY_KEY. A key with an IP allowlist returns 403 IP_NOT_ALLOWED from any other address. Each endpoint lists which keys can call it under Access.
Headers
Idempotency-Key
string
Optional. A value that identifies this operation on your side, at most 255 characters. A retry with the same key, method, path and body within 24 hours returns the original response (with Idempotency-Replayed: true) instead of repeating the change. The same key with a different body returns 409 IDEMPOTENCY_KEY_REUSED; a retry while the first request is still running returns 409 IDEMPOTENCY_KEY_IN_PROGRESS. A response that contains a credential (such as a new API key or signing secret) is not saved: the change is still not repeated, and a retry returns 409 IDEMPOTENCY_KEY_COMPLETED with the original status in originalStatus. Server errors (5xx) are not saved, so a retry runs again. If the key cannot be recorded, the request is not run and returns 503 IDEMPOTENCY_UNAVAILABLE; retry with the same key.
Maximum string length: 255
Path Parameters
batchId
string
required
Batch id returned by the revert call
Body
application/json
reason
string
Why the undo happened — stored in the audit trail and webhook events. Defaults to a generated message.
Required string length: 3 - 1000
Example:
"Reverted the wrong day — restoring"
preview
boolean
default:false
Dry run: per-account report of what the undo WOULD restore (and which accounts are blocked), nothing changed.
Example:
true
previewLimit
integer
Preview only: check at most this many accounts individually (the oldest first); total still counts every account left to undo. Default: all of them up to 1000, the first 100 above that.
Required range: 1 <= x <= 1000
Example:
100
background
boolean
Run the undo in the background: answer 202 right away and follow progress with GET /revert-batches/{batchId}. Undos of more than 1000 accounts always run in the background. Ignored in previews.
Example:
true
Response
Undo processed (check per-account failures)
success
boolean
Example:
true
message
string
Example:
"Restored 1 account to their pre-revert state"
data
object
Show child attributes
Example:
{ "batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "tradingDay": "2026-07-07", "preview": false, "restored": 1, "failed": 1, "accounts": [ { "accountId": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "accountNumber": "ACC-7845KXPQ", "balanceBefore": 51250, "balanceAfter": 48750, "statusBefore": "in_progress", "statusAfter": "failed", "snapshotsRestored": 1, "ordersRestored": 14 } ], "failures": [ { "accountId": "8d0f7780-8536-51ef-b55c-f18gd2g01bf8", "code": "NEW_ACTIVITY", "message": "The trader has new order activity after the revert — the old timeline can no longer be restored" } ] }
⌘I
Undo a revert batch
curl --request POST \ --url https://api.hyperprop.com/platform/v1/organization/revert-batches/{batchId}/undo \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "reason": "Reverted the wrong day — restoring", "preview": true, "previewLimit": 100, "background": true}'
{
"success": false,
"statusCode": 503,
"error": "Service Unavailable",
"message": "The Idempotency-Key could not be recorded, so the request was not run. Retry with the same key.",
"code": "IDEMPOTENCY_UNAVAILABLE"
}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Hyperprop Platform API","colors":{"primary":"#253CFF","light":"#253CFF","dark":"#253CFF"},"logo":{"light":"https://mintcdn.com/hyperprop-401fc39d/snMIX7SYzcFqAv9j/logo/light.svg?fit=max\u0026auto=format\u0026n=snMIX7SYzcFqAv9j\u0026q=85\u0026s=e3a0a071fb4ba3ae53ef978c23cc38a3","dark":"https://mintcdn.com/hyperprop-401fc39d/snMIX7SYzcFqAv9j/logo/dark.svg?fit=max\u0026auto=format\u0026n=snMIX7SYzcFqAv9j\u0026q=85\u0026s=1e52fc25e71c2a6a9e047b4fbd60dae4","href":"https://hyperprop.com"},"favicon":"https://mintcdn.com/hyperprop-401fc39d/snMIX7SYzcFqAv9j/favicon.svg?fit=max\u0026auto=format\u0026n=snMIX7SYzcFqAv9j\u0026q=85\u0026s=760656e341413d4cd9dae53925c04cf6","navbar":{"primary":{"type":"button","label":"Open Dashboard","href":"https://portal.hyperprop.com"}},"footer":{"socials":{"x":"https://x.com/hyperpropcom","github":"https://github.com/Hyperprop-LLC-FZ"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hyperprop-401fc39d","hasAudioNarration":false,"actualSubdomain":"hyperprop-401fc39d","customDomains":["docs.hyperprop.com"],"gitSource":{"type":"github","owner":"hyperprop-llc-fz","repo":"hyperprop-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af9d28c5400fbb020686d90","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":246},{"language":"default","tag":"Platform API","count":202},{"language":"default","tag":"Trade API","count":44},{"language":"default","tag":"Risk","count":39},{"language":"default","tag":"Documentation","count":37},{"language":"default","tag":"Trading accounts","count":29},{"language":"default","tag":"Mass credit","count":23},{"language":"default","tag":"Billing and invoices","count":16},{"language":"default","tag":"Guides","count":14},{"language":"default","tag":"Webhooks","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar nav-logo img,nav-logo img{height:2rem!important;width:auto}@media (max-width: 640px){pre{max-width:100%;overflow-x:auto}pre code{white-space:pre;word-break:normal}}@media (max-width: 640px){.prose table,#content-area table{display:block;max-width:100%;overflow-x:auto}}html.dark pre.shiki.shiki-themes,html[data-theme=\"dark\"] pre.shiki.shiki-themes{background-color:var(--shiki-dark-bg)!important;color:var(--shiki-dark)!important}html.dark pre.shiki.shiki-themes span,html[data-theme=\"dark\"] pre.shiki.shiki-themes span{color:var(--shiki-dark)!important;font-style:var(--shiki-dark-font-style)!important;font-weight:var(--shiki-dark-font-weight)!important;text-decoration:var(--shiki-dark-text-decoration)!important}"}],"page":{"pagePath":"platform-api/time-machine/undo-a-revert-batch","slug":"/platform-api/time-machine/undo-a-revert-batch","pageMetadata":{"title":"Undo a revert batch","description":"**The undo button.** Puts every account in a revert batch back **exactly where it was the moment before the revert ran**: pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader's journal, order history, and daily stats come back like the revert never happened. Open terminals update live.\n\nA revert destroys nothing (rows are stamped, not deleted), which is what makes this possible.\n\n**New orders are refused while an account is restored**, as during a revert: the account carries a temporary lockout (`cause: \"admin\"`, reason \"Your firm is restoring this account…\") from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (`ENGINE_RELOAD_UNCONFIRMED`), the temporary lockout ends by itself after 15 minutes. A preview writes none.\n\n**Webhooks:** each restored account fires `account.updated` (+ status events when the status moved) with `trigger: \"trading_day_revert_undo\"`, and `account.trading_day_revert_undone` — the reverse of `account.trading_day_reverted`: same `batchId`, the snapshots put back and the fills that count again (up to 500 inline; re-read the `affectedTradingDays` for the rest).\n\n**Per-account rules** (each account is checked independently — eligible ones proceed, blocked ones come back in `failures`):\n| Code | Meaning |\n|------|---------|\n| `NEW_ACTIVITY` | The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can't be restored over a new one — this account stays as-is. |\n| `NOT_LATEST_REVERT` | A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first. |\n| `PAYOUT_OR_ADJUSTMENT_IN_RANGE` | A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead. |\n| `ACCOUNT_CHANGED` | The account's balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry. |\n| `UNDO_UPDATE_ERROR` | Failed to write the restored state — retry (idempotent). |\n\n**Batch-level error codes:**\n| Code | Status | Meaning |\n|------|:---:|---------|\n| `BATCH_NOT_FOUND` | 404 | Unknown batch id (or it belongs to a different organization) |\n| `ALREADY_UNDONE` | 409 | Every account in this batch has already been undone |\n| `BATCH_RUNNING` | 409 | The batch is a background revert that is still running (`status: \"running\"`) — wait until it has finished, then undo |\n| `BATCH_UNDOING` | 409 | An undo of this batch is already running in the background (`status: \"undoing\"`) — follow it on the batch |\n| `UNDO_START_ERROR` | 500 | Background undo: the undo could not be started, so nothing was changed — retry |\n\n**Size, and background runs.** An undo takes roughly half a second per account. Up to 1000 accounts without `background`, the call restores every account and answers `200` with the per-account report (unchanged). With more than 1000 accounts left to undo, or `\"background\": true` at any size, it answers **`202`** with `{ batchId, status: \"undoing\", total, … }` and keeps going; poll `GET /revert-batches/{batchId}` (`status`, `undoProcessedCount`, `undoTotal`, `undoFailures`). A preview checks every account up to 1000; above that it checks the first 100 (or `previewLimit`) and sets `previewTruncated: true`, with `total` counting every account left to undo.\n\nAn **interrupted** batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still `running` (including while it resumes after our maintenance) answers `BATCH_RUNNING`; cancel it first if you want to undo it now.\n\n**Timing:** the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported.\n\n**Recommended flow:** `\"preview\": true` first — you get the exact per-account restore report plus who would be blocked and why — then execute.\n\n**Example — preview, then undo:**\n```bash\n# 1. Dry run — nothing changes\ncurl -X POST \".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"preview\": true }'\n\n# 2. Execute\ncurl -X POST \".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"reason\": \"Reverted the wrong day — restoring\" }'\n```\n\n**Access:** full-access API keys only (a read-only key gets `403 READ_ONLY_KEY`). Dashboard members need manage access to Operations \u0026 time machine.","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/revert-batches/{batchId}/undo","href":"/platform-api/time-machine/undo-a-revert-batch","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n pre: \"pre\",\n span: \"span\",\n strong: \"strong\",\n table: \"table\",\n tbody: \"tbody\",\n td: \"td\",\n th: \"th\",\n thead: \"thead\",\n tr: \"tr\",\n ..._provideComponents(),\n ...props.components\n }, {CodeBlock} = _components;\n if (!CodeBlock) _missingMdxReference(\"CodeBlock\", true);\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"The undo button.\"\n }), \" Puts every account in a revert batch back \", _jsx(_components.strong, {\n children: \"exactly where it was the moment before the revert ran\"\n }), \": pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader’s journal, order history, and daily stats come back like the revert never happened. Open terminals update live.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"A revert destroys nothing (rows are stamped, not deleted), which is what makes this possible.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"New orders are refused while an account is restored\"\n }), \", as during a revert: the account carries a temporary lockout (\", _jsx(_components.code, {\n children: \"cause: \\\"admin\\\"\"\n }), \", reason “Your firm is restoring this account…”) from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (\", _jsx(_components.code, {\n children: \"ENGINE_RELOAD_UNCONFIRMED\"\n }), \"), the temporary lockout ends by itself after 15 minutes. A preview writes none.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Webhooks:\"\n }), \" each restored account fires \", _jsx(_components.code, {\n children: \"account.updated\"\n }), \" (+ status events when the status moved) with \", _jsx(_components.code, {\n children: \"trigger: \\\"trading_day_revert_undo\\\"\"\n }), \", and \", _jsx(_components.code, {\n children: \"account.trading_day_revert_undone\"\n }), \" — the reverse of \", _jsx(_components.code, {\n children: \"account.trading_day_reverted\"\n }), \": same \", _jsx(_components.code, {\n children: \"batchId\"\n }), \", the snapshots put back and the fills that count again (up to 500 inline; re-read the \", _jsx(_components.code, {\n children: \"affectedTradingDays\"\n }), \" for the rest).\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Per-account rules\"\n }), \" (each account is checked independently — eligible ones proceed, blocked ones come back in \", _jsx(_components.code, {\n children: \"failures\"\n }), \"):\"]\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"Code\"\n }), _jsx(_components.th, {\n children: \"Meaning\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"NEW_ACTIVITY\"\n })\n }), _jsx(_components.td, {\n children: \"The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can’t be restored over a new one — this account stays as-is.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"NOT_LATEST_REVERT\"\n })\n }), _jsx(_components.td, {\n children: \"A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"PAYOUT_OR_ADJUSTMENT_IN_RANGE\"\n })\n }), _jsx(_components.td, {\n children: \"A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"ACCOUNT_CHANGED\"\n })\n }), _jsx(_components.td, {\n children: \"The account’s balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry.\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"UNDO_UPDATE_ERROR\"\n })\n }), _jsx(_components.td, {\n children: \"Failed to write the restored state — retry (idempotent).\"\n })]\n })]\n })]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Batch-level error codes:\"\n })\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"Code\"\n }), _jsx(_components.th, {\n style: {\n textAlign: \"center\"\n },\n children: \"Status\"\n }), _jsx(_components.th, {\n children: \"Meaning\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"BATCH_NOT_FOUND\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"404\"\n }), _jsx(_components.td, {\n children: \"Unknown batch id (or it belongs to a different organization)\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"ALREADY_UNDONE\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"409\"\n }), _jsx(_components.td, {\n children: \"Every account in this batch has already been undone\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"BATCH_RUNNING\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"409\"\n }), _jsxs(_components.td, {\n children: [\"The batch is a background revert that is still running (\", _jsx(_components.code, {\n children: \"status: \\\"running\\\"\"\n }), \") — wait until it has finished, then undo\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"BATCH_UNDOING\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"409\"\n }), _jsxs(_components.td, {\n children: [\"An undo of this batch is already running in the background (\", _jsx(_components.code, {\n children: \"status: \\\"undoing\\\"\"\n }), \") — follow it on the batch\"]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"UNDO_START_ERROR\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"500\"\n }), _jsx(_components.td, {\n children: \"Background undo: the undo could not be started, so nothing was changed — retry\"\n })]\n })]\n })]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Size, and background runs.\"\n }), \" An undo takes roughly half a second per account. Up to 1000 accounts without \", _jsx(_components.code, {\n children: \"background\"\n }), \", the call restores every account and answers \", _jsx(_components.code, {\n children: \"200\"\n }), \" with the per-account report (unchanged). With more than 1000 accounts left to undo, or \", _jsx(_components.code, {\n children: \"\\\"background\\\": true\"\n }), \" at any size, it answers \", _jsx(_components.strong, {\n children: _jsx(_components.code, {\n children: \"202\"\n })\n }), \" with \", _jsx(_components.code, {\n children: \"{ batchId, status: \\\"undoing\\\", total, … }\"\n }), \" and keeps going; poll \", _jsx(_components.code, {\n children: \"GET /revert-batches/{batchId}\"\n }), \" (\", _jsx(_components.code, {\n children: \"status\"\n }), \", \", _jsx(_components.code, {\n children: \"undoProcessedCount\"\n }), \", \", _jsx(_components.code, {\n children: \"undoTotal\"\n }), \", \", _jsx(_components.code, {\n children: \"undoFailures\"\n }), \"). A preview checks every account up to 1000; above that it checks the first 100 (or \", _jsx(_components.code, {\n children: \"previewLimit\"\n }), \") and sets \", _jsx(_components.code, {\n children: \"previewTruncated: true\"\n }), \", with \", _jsx(_components.code, {\n children: \"total\"\n }), \" counting every account left to undo.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"An \", _jsx(_components.strong, {\n children: \"interrupted\"\n }), \" batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still \", _jsx(_components.code, {\n children: \"running\"\n }), \" (including while it resumes after our maintenance) answers \", _jsx(_components.code, {\n children: \"BATCH_RUNNING\"\n }), \"; cancel it first if you want to undo it now.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Timing:\"\n }), \" the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Recommended flow:\"\n }), \" \", _jsx(_components.code, {\n children: \"\\\"preview\\\": true\"\n }), \" first — you get the exact per-account restore report plus who would be blocked and why — then execute.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Example — preview, then undo:\"\n })\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"11\",\n language: \"shellscript\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"shellscript\",\n children: _jsxs(_components.code, {\n language: \"shellscript\",\n numberOfLines: \"11\",\n children: [_jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \"# 1. Dry run — nothing changes\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#953800\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"curl\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -X\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" POST\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"X-API-Key: hp_live_your_key_here\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Content-Type: application/json\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -d\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" '{ \\\"preview\\\": true }'\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\"\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \"# 2. Execute\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#953800\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"curl\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -X\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" POST\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"X-API-Key: hp_live_your_key_here\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Content-Type: application/json\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -d\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" '{ \\\"reason\\\": \\\"Reverted the wrong day — restoring\\\" }'\"\n })]\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Access:\"\n }), \" full-access API keys only (a read-only key gets \", _jsx(_components.code, {\n children: \"403 READ_ONLY_KEY\"\n }), \"). Dashboard members need manage access to Operations \u0026 time machine.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\n}\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Undo a revert batch","description":"**The undo button.** Puts every account in a revert batch back **exactly where it was the moment before the revert ran**: pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader's journal, order history, and daily stats come back like the revert never happened. Open terminals update live.\n\nA revert destroys nothing (rows are stamped, not deleted), which is what makes this possible.\n\n**New orders are refused while an account is restored**, as during a revert: the account carries a temporary lockout (`cause: \"admin\"`, reason \"Your firm is restoring this account…\") from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (`ENGINE_RELOAD_UNCONFIRMED`), the temporary lockout ends by itself after 15 minutes. A preview writes none.\n\n**Webhooks:** each restored account fires `account.updated` (+ status events when the status moved) with `trigger: \"trading_day_revert_undo\"`, and `account.trading_day_revert_undone` — the reverse of `account.trading_day_reverted`: same `batchId`, the snapshots put back and the fills that count again (up to 500 inline; re-read the `affectedTradingDays` for the rest).\n\n**Per-account rules** (each account is checked independently — eligible ones proceed, blocked ones come back in `failures`):\n| Code | Meaning |\n|------|---------|\n| `NEW_ACTIVITY` | The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can't be restored over a new one — this account stays as-is. |\n| `NOT_LATEST_REVERT` | A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first. |\n| `PAYOUT_OR_ADJUSTMENT_IN_RANGE` | A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead. |\n| `ACCOUNT_CHANGED` | The account's balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry. |\n| `UNDO_UPDATE_ERROR` | Failed to write the restored state — retry (idempotent). |\n\n**Batch-level error codes:**\n| Code | Status | Meaning |\n|------|:---:|---------|\n| `BATCH_NOT_FOUND` | 404 | Unknown batch id (or it belongs to a different organization) |\n| `ALREADY_UNDONE` | 409 | Every account in this batch has already been undone |\n| `BATCH_RUNNING` | 409 | The batch is a background revert that is still running (`status: \"running\"`) — wait until it has finished, then undo |\n| `BATCH_UNDOING` | 409 | An undo of this batch is already running in the background (`status: \"undoing\"`) — follow it on the batch |\n| `UNDO_START_ERROR` | 500 | Background undo: the undo could not be started, so nothing was changed — retry |\n\n**Size, and background runs.** An undo takes roughly half a second per account. Up to 1000 accounts without `background`, the call restores every account and answers `200` with the per-account report (unchanged). With more than 1000 accounts left to undo, or `\"background\": true` at any size, it answers **`202`** with `{ batchId, status: \"undoing\", total, … }` and keeps going; poll `GET /revert-batches/{batchId}` (`status`, `undoProcessedCount`, `undoTotal`, `undoFailures`). A preview checks every account up to 1000; above that it checks the first 100 (or `previewLimit`) and sets `previewTruncated: true`, with `total` counting every account left to undo.\n\nAn **interrupted** batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still `running` (including while it resumes after our maintenance) answers `BATCH_RUNNING`; cancel it first if you want to undo it now.\n\n**Timing:** the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported.\n\n**Recommended flow:** `\"preview\": true` first — you get the exact per-account restore report plus who would be blocked and why — then execute.\n\n**Example — preview, then undo:**\n```bash\n# 1. Dry run — nothing changes\ncurl -X POST \".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"preview\": true }'\n\n# 2. Execute\ncurl -X POST \".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"reason\": \"Reverted the wrong day — restoring\" }'\n```\n\n**Access:** full-access API keys only (a read-only key gets `403 READ_ONLY_KEY`). Dashboard members need manage access to Operations \u0026 time machine.","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/revert-batches/{batchId}/undo","href":"/platform-api/time-machine/undo-a-revert-batch","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Undo a revert batch","operationId":"postV1OrganizationRevertbatchesBatchidUndo","description":"**The undo button.** Puts every account in a revert batch back **exactly where it was the moment before the revert ran**: pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader's journal, order history, and daily stats come back like the revert never happened. Open terminals update live.\n\nA revert destroys nothing (rows are stamped, not deleted), which is what makes this possible.\n\n**New orders are refused while an account is restored**, as during a revert: the account carries a temporary lockout (`cause: \"admin\"`, reason \"Your firm is restoring this account…\") from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (`ENGINE_RELOAD_UNCONFIRMED`), the temporary lockout ends by itself after 15 minutes. A preview writes none.\n\n**Webhooks:** each restored account fires `account.updated` (+ status events when the status moved) with `trigger: \"trading_day_revert_undo\"`, and `account.trading_day_revert_undone` — the reverse of `account.trading_day_reverted`: same `batchId`, the snapshots put back and the fills that count again (up to 500 inline; re-read the `affectedTradingDays` for the rest).\n\n**Per-account rules** (each account is checked independently — eligible ones proceed, blocked ones come back in `failures`):\n| Code | Meaning |\n|------|---------|\n| `NEW_ACTIVITY` | The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can't be restored over a new one — this account stays as-is. |\n| `NOT_LATEST_REVERT` | A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first. |\n| `PAYOUT_OR_ADJUSTMENT_IN_RANGE` | A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead. |\n| `ACCOUNT_CHANGED` | The account's balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry. |\n| `UNDO_UPDATE_ERROR` | Failed to write the restored state — retry (idempotent). |\n\n**Batch-level error codes:**\n| Code | Status | Meaning |\n|------|:---:|---------|\n| `BATCH_NOT_FOUND` | 404 | Unknown batch id (or it belongs to a different organization) |\n| `ALREADY_UNDONE` | 409 | Every account in this batch has already been undone |\n| `BATCH_RUNNING` | 409 | The batch is a background revert that is still running (`status: \"running\"`) — wait until it has finished, then undo |\n| `BATCH_UNDOING` | 409 | An undo of this batch is already running in the background (`status: \"undoing\"`) — follow it on the batch |\n| `UNDO_START_ERROR` | 500 | Background undo: the undo could not be started, so nothing was changed — retry |\n\n**Size, and background runs.** An undo takes roughly half a second per account. Up to 1000 accounts without `background`, the call restores every account and answers `200` with the per-account report (unchanged). With more than 1000 accounts left to undo, or `\"background\": true` at any size, it answers **`202`** with `{ batchId, status: \"undoing\", total, … }` and keeps going; poll `GET /revert-batches/{batchId}` (`status`, `undoProcessedCount`, `undoTotal`, `undoFailures`). A preview checks every account up to 1000; above that it checks the first 100 (or `previewLimit`) and sets `previewTruncated: true`, with `total` counting every account left to undo.\n\nAn **interrupted** batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still `running` (including while it resumes after our maintenance) answers `BATCH_RUNNING`; cancel it first if you want to undo it now.\n\n**Timing:** the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported.\n\n**Recommended flow:** `\"preview\": true` first — you get the exact per-account restore report plus who would be blocked and why — then execute.\n\n**Example — preview, then undo:**\n```bash\n# 1. Dry run — nothing changes\ncurl -X POST \".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"preview\": true }'\n\n# 2. Execute\ncurl -X POST \".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"reason\": \"Reverted the wrong day — restoring\" }'\n```\n\n**Access:** full-access API keys only (a read-only key gets `403 READ_ONLY_KEY`). Dashboard members need manage access to Operations \u0026 time machine.","parameters":["c301c686-52dd-4e54-92c6-509121d330a2","c38de417-47a3-400b-8a3d-dadc18fa489f"],"requestBody":"c34c728d-88ae-43d4-add8-4df36c5ccfe2","tags":["Time Machine"],"security":["49bf9d9c-deda-47b7-9496-13c693e75c44"],"responses":{"200":"f958bc33-5398-42e8-ba2a-e4c993b09a66","202":"3c8d855d-a87e-43b8-bc11-8b6fc4a54e2b","400":"6a77788d-4653-4e07-8f55-a80a8533407b","401":"41ab6540-72f5-4ca3-b4d4-87ffaedd36e5","403":"264d618c-6743-4eee-94b4-405b453a4e2e","404":"2ba779da-a2f4-446a-8b38-11ec9464a9cd","409":"f92818ac-938a-4385-ab9a-163265f6fab5","500":"046ac9e2-b477-4926-b4d0-41d8018a9160","503":"999533f0-a858-4a2c-aac5-4c1308553ca0"},"method":"post","type":"path","servers":["b949171f-b56e-4c69-b8a6-d819dee3b071"],"path":"/v1/organization/revert-batches/{batchId}/undo","baseUrlOptions":["https://api.hyperprop.com/platform"],"title":"Undo a revert batch","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"c301c686-52dd-4e54-92c6-509121d330a2":{"description":"Batch id returned by the revert call","x-format":{"guid":true},"name":"batchId","in":"path","required":true,"example":"3f2b8c1e-9d4a-4e7b-8a61-0c5d2e9f7a10","schema":{"type":"string","isRequired":true,"description":"Batch id returned by the revert call","uniqueKey":"","typeLabel":"string"}},"c38de417-47a3-400b-8a3d-dadc18fa489f":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. A value that identifies this operation on your side, at most 255 characters. A retry with the same key, method, path and body within 24 hours returns the original response (with `Idempotency-Replayed: true`) instead of repeating the change. The same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`; a retry while the first request is still running returns `409 IDEMPOTENCY_KEY_IN_PROGRESS`. A response that contains a credential (such as a new API key or signing secret) is not saved: the change is still not repeated, and a retry returns `409 IDEMPOTENCY_KEY_COMPLETED` with the original status in `originalStatus`. Server errors (5xx) are not saved, so a retry runs again. If the key cannot be recorded, the request is not run and returns `503 IDEMPOTENCY_UNAVAILABLE`; retry with the same key.","example":"crm-sync-8814-attempt-1","schema":{"type":"string","maxLength":255,"isRequired":false,"description":"Optional. A value that identifies this operation on your side, at most 255 characters. A retry with the same key, method, path and body within 24 hours returns the original response (with `Idempotency-Replayed: true`) instead of repeating the change. The same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`; a retry while the first request is still running returns `409 IDEMPOTENCY_KEY_IN_PROGRESS`. A response that contains a credential (such as a new API key or signing secret) is not saved: the change is still not repeated, and a retry returns `409 IDEMPOTENCY_KEY_COMPLETED` with the original status in `originalStatus`. Server errors (5xx) are not saved, so a retry runs again. If the key cannot be recorded, the request is not run and returns `503 IDEMPOTENCY_UNAVAILABLE`; retry with the same key.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why the undo happened — stored in the audit trail and webhook events. Defaults to a generated message.","example":"Reverted the wrong day — restoring","minLength":3,"maxLength":1000,"uniqueKey":"reason","typeLabel":"string"},"preview":{"type":"boolean","description":"Dry run: per-account report of what the undo WOULD restore (and which accounts are blocked), nothing changed.","example":true,"default":false,"uniqueKey":"preview","typeLabel":"boolean"},"previewLimit":{"type":"integer","description":"Preview only: check at most this many accounts individually (the oldest first); `total` still counts every account left to undo. Default: all of them up to 1000, the first 100 above that.","example":100,"minimum":1,"maximum":1000,"uniqueKey":"previewLimit","typeLabel":"integer"},"background":{"type":"boolean","description":"Run the undo in the background: answer 202 right away and follow progress with GET /revert-batches/{batchId}. Undos of more than 1000 accounts always run in the background. Ignored in previews.","example":true,"uniqueKey":"background","typeLabel":"boolean"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"reason":"Reverted the wrong day — restoring","preview":true,"previewLimit":100,"background":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f958bc33-5398-42e8-ba2a-e4c993b09a66":{"description":"Undo processed (check per-account failures)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","example":"Restored 1 account to their pre-revert state","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","example":{"batchId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","tradingDay":"2026-07-07","preview":false,"restored":1,"failed":1,"accounts":[{"accountId":"7c9e6679-7425-40de-944b-e07fc1f90ae7","accountNumber":"ACC-7845KXPQ","balanceBefore":51250,"balanceAfter":48750,"statusBefore":"in_progress","statusAfter":"failed","snapshotsRestored":1,"ordersRestored":14}],"failures":[{"accountId":"8d0f7780-8536-51ef-b55c-f18gd2g01bf8","code":"NEW_ACTIVITY","message":"The trader has new order activity after the revert — the old timeline can no longer be restored"}]},"properties":{"batchId":{"type":"string","uniqueKey":"data.batchId","typeLabel":"string"},"tradingDay":{"type":"string","description":"The day the original batch reverted to","uniqueKey":"data.tradingDay","typeLabel":"string"},"preview":{"type":"boolean","uniqueKey":"data.preview","typeLabel":"boolean"},"total":{"type":"number","description":"Previews only: accounts left to undo (the preview may check fewer — see previewTruncated)","uniqueKey":"data.total","typeLabel":"number"},"previewTruncated":{"type":"boolean","description":"Previews only: true when `accounts`/`failures` cover only the first accounts","uniqueKey":"data.previewTruncated","typeLabel":"boolean"},"restored":{"type":"number","uniqueKey":"data.restored","typeLabel":"number"},"failed":{"type":"number","uniqueKey":"data.failed","typeLabel":"number"},"accounts":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].accountId","typeLabel":"string"},"accountNumber":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].accountNumber","typeLabel":"string"},"balanceBefore":{"type":"number","description":"Balance while reverted","uniqueKey":"data.accounts.items.[INDEX].balanceBefore","typeLabel":"number"},"balanceAfter":{"type":"number","description":"Restored pre-revert balance","uniqueKey":"data.accounts.items.[INDEX].balanceAfter","typeLabel":"number"},"statusBefore":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].statusBefore","typeLabel":"string"},"statusAfter":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].statusAfter","typeLabel":"string"},"snapshotsRestored":{"type":"number","description":"Voided daily snapshots brought back","uniqueKey":"data.accounts.items.[INDEX].snapshotsRestored","typeLabel":"number"},"ordersRestored":{"type":"number","description":"Voided order events brought back into journal/history","uniqueKey":"data.accounts.items.[INDEX].ordersRestored","typeLabel":"number"}},"uniqueKey":"data.accounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.accounts","typeLabel":"object[]"},"failures":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string","uniqueKey":"data.failures.items.[INDEX].accountId","typeLabel":"string"},"code":{"type":"string","uniqueKey":"data.failures.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"data.failures.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"data.failures.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.failures","typeLabel":"object[]"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Restored 1 account to their pre-revert state","data":{"batchId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","tradingDay":"2026-07-07","preview":false,"restored":1,"failed":1,"accounts":[{"accountId":"7c9e6679-7425-40de-944b-e07fc1f90ae7","accountNumber":"ACC-7845KXPQ","balanceBefore":51250,"balanceAfter":48750,"statusBefore":"in_progress","statusAfter":"failed","snapshotsRestored":1,"ordersRestored":14}],"failures":[{"accountId":"8d0f7780-8536-51ef-b55c-f18gd2g01bf8","code":"NEW_ACTIVITY","message":"The trader has new order activity after the revert — the old timeline can no longer be restored"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"3c8d855d-a87e-43b8-bc11-8b6fc4a54e2b":{"description":"Background undo started (more than 1000 accounts left to undo, or `background: true`) — follow it with GET /revert-batches/{batchId}","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","example":"Undoing 1229 accounts in the background — follow progress with GET /revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","example":{"batchId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","status":"undoing","tradingDay":"2026-07-07","total":1229,"preview":false},"properties":{"batchId":{"type":"string","uniqueKey":"data.batchId","typeLabel":"string"},"status":{"type":"string","enum":["undoing"],"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"tradingDay":{"type":"string","description":"The day the original batch reverted to","uniqueKey":"data.tradingDay","typeLabel":"string"},"total":{"type":"number","description":"Accounts the undo will process","uniqueKey":"data.total","typeLabel":"number"},"preview":{"type":"boolean","enum":[false],"uniqueKey":"data.preview","typeLabel":"enum\u003cboolean>"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Undoing 1229 accounts in the background — follow progress with GET /revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890","data":{"batchId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","status":"undoing","tradingDay":"2026-07-07","total":1229,"preview":false}}}},"exampleType":"generated"}},"exampleType":"generated"},"6a77788d-4653-4e07-8f55-a80a8533407b":{"description":"Invalid request data, including a reason over its length limit","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"number","example":400,"uniqueKey":"statusCode","typeLabel":"number"},"error":{"type":"string","example":"Bad Request","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Invalid request data, including a reason over its length limit","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code — switch on this, not on message text","example":"VALIDATION_ERROR","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":400,"error":"Bad Request","message":"Invalid request data, including a reason over its length limit","code":"VALIDATION_ERROR"}}},"exampleType":"generated"}},"exampleType":"generated"},"41ab6540-72f5-4ca3-b4d4-87ffaedd36e5":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"number","example":401,"uniqueKey":"statusCode","typeLabel":"number"},"error":{"type":"string","example":"Unauthorized","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Authentication required","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code — switch on this, not on message text","example":"UNAUTHORIZED","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":401,"error":"Unauthorized","message":"Authentication required","code":"UNAUTHORIZED"}}},"exampleType":"generated"}},"exampleType":"generated"},"264d618c-6743-4eee-94b4-405b453a4e2e":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"number","example":403,"uniqueKey":"statusCode","typeLabel":"number"},"error":{"type":"string","example":"Forbidden","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Access denied","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code — switch on this, not on message text","example":"FORBIDDEN","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":403,"error":"Forbidden","message":"Access denied","code":"FORBIDDEN"}}},"exampleType":"generated"}},"exampleType":"generated"},"2ba779da-a2f4-446a-8b38-11ec9464a9cd":{"description":"Batch not found","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"BATCH_NOT_FOUND","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Revert batch not found","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"code":"BATCH_NOT_FOUND","message":"Revert batch not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"f92818ac-938a-4385-ab9a-163265f6fab5":{"description":"Already undone, or the batch is still running or already being undone. Also `IDEMPOTENCY_KEY_REUSED` (the `Idempotency-Key` was used with a different body), `IDEMPOTENCY_KEY_IN_PROGRESS` (a request with the same key is still running) or `IDEMPOTENCY_KEY_COMPLETED` (the request with this key already completed and its response is not available again).","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"ALREADY_UNDONE","enum":["ALREADY_UNDONE","BATCH_RUNNING","BATCH_UNDOING"],"uniqueKey":"code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","example":"This revert batch has already been undone","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"code":"ALREADY_UNDONE","message":"This revert batch has already been undone"}}},"exampleType":"generated"}},"exampleType":"generated"},"046ac9e2-b477-4926-b4d0-41d8018a9160":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"number","example":500,"uniqueKey":"statusCode","typeLabel":"number"},"error":{"type":"string","example":"Internal Server Error","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"An unexpected error occurred","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code — switch on this, not on message text","example":"INTERNAL_ERROR","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":500,"error":"Internal Server Error","message":"An unexpected error occurred","code":"INTERNAL_ERROR"}}},"exampleType":"generated"}},"exampleType":"generated"},"999533f0-a858-4a2c-aac5-4c1308553ca0":{"description":"The `Idempotency-Key` could not be recorded, so the request was not run (`IDEMPOTENCY_UNAVAILABLE`). Retry with the same key after the `Retry-After` seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"integer","example":503,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"type":"string","example":"Service Unavailable","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"The Idempotency-Key could not be recorded, so the request was not run. Retry with the same key.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["IDEMPOTENCY_UNAVAILABLE"],"example":"IDEMPOTENCY_UNAVAILABLE","description":"Machine-readable error code — switch on this, not on message text","uniqueKey":"code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":503,"error":"Service Unavailable","message":"The Idempotency-Key could not be recorded, so the request was not run. Retry with the same key.","code":"IDEMPOTENCY_UNAVAILABLE"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"49bf9d9c-deda-47b7-9496-13c693e75c44":{"X-API-Key":{"type":"apiKey","name":"X-API-Key","in":"header","description":"Organization API key (`hp_live_...`), sent in the `X-API-Key` header. Create, rotate and restrict keys in the dashboard or with the API keys endpoints; an organization can have two active keys, so you can rotate without downtime. A **full-access** key can call every endpoint in this reference. A **read-only** key can call `GET` endpoints (and create a trading stream token); any other request returns `403 READ_ONLY_KEY`. A key with an IP allowlist returns `403 IP_NOT_ALLOWED` from any other address. Each endpoint lists which keys can call it under **Access**.","scopes":[],"schemeName":"X-API-Key"}}},"servers":{"b949171f-b56e-4c69-b8a6-d819dee3b071":{"url":"https://api.hyperprop.com/platform","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"X-API-Key","in":"header","description":"Organization API key (`hp_live_...`), sent in the `X-API-Key` header. Create, rotate and restrict keys in the dashboard or with the API keys endpoints; an organization can have two active keys, so you can rotate without downtime. A **full-access** key can call every endpoint in this reference. A **read-only** key can call `GET` endpoints (and create a trading stream token); any other request returns `403 READ_ONLY_KEY`. A key with an IP allowlist returns `403 IP_NOT_ALLOWED` from any other address. Each endpoint lists which keys can call it under **Access**.","scopes":[],"schemeName":"X-API-Key"},"schema":{"title":"X-API-Key","type":"string","description":"Organization API key (`hp_live_...`), sent in the `X-API-Key` header. Create, rotate and restrict keys in the dashboard or with the API keys endpoints; an organization can have two active keys, so you can rotate without downtime. A **full-access** key can call every endpoint in this reference. A **read-only** key can call `GET` endpoints (and create a trading stream token); any other request returns `403 READ_ONLY_KEY`. A key with an IP allowlist returns `403 IP_NOT_ALLOWED` from any other address. Each endpoint lists which keys can call it under **Access**.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"X-API-Key","name":"X-API-Key"}],"title":"X-API-Key"}]},"originalFileLocation":"https://api.hyperprop.com/platform/openapi.json"},"subdomain":"hyperprop-401fc39d","siteName":"Hyperprop Platform API","title":"Undo a revert batch - Hyperprop Platform API","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-15T15:41:10.331Z","originalFileLocation":"platform-api/time-machine/undo-a-revert-batch.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The undo button. Puts every account in a revert batch back exactly where it was the moment before the revert ran: pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader\u0026#x27;s journal, order history, and daily stats come back like the revert never happened. Open terminals update live. A revert destroys nothing (rows are stamped, not deleted), which is what makes this possible. New orders are refused while an account is restored, as during a revert: the account carries a temporary lockout (cause: \u0026quot;admin\u0026quot;, reason \u0026quot;Your firm is restoring this account…\u0026quot;) from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (ENGINE_RELOAD_UNCONFIRMED), the temporary lockout ends by itself after 15 minutes. A preview writes none. Webhooks: each restored account fires account.updated (+ status events when the status moved) with trigger: \u0026quot;trading_day_revert_undo\u0026quot;, and account.trading_day_revert_undone — the reverse of account.trading_day_reverted: same batchId, the snapshots put back and the fills that count again (up to 500 inline; re-read the affectedTradingDays for the rest). Per-account rules (each account is checked independently — eligible ones proceed, blocked ones come back in failures): | Code | Meaning | |------|---------| | NEW_ACTIVITY | The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can\u0026#x27;t be restored over a new one — this account stays as-is. | | NOT_LATEST_REVERT | A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first. | | PAYOUT_OR_ADJUSTMENT_IN_RANGE | A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead. | | ACCOUNT_CHANGED | The account\u0026#x27;s balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry. | | UNDO_UPDATE_ERROR | Failed to write the restored state — retry (idempotent). | Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | BATCH_NOT_FOUND | 404 | Unknown batch id (or it belongs to a different organization) | | ALREADY_UNDONE | 409 | Every account in this batch has already been undone | | BATCH_RUNNING | 409 | The batch is a background revert that is still running (status: \u0026quot;running\u0026quot;) — wait until it has finished, then undo | | BATCH_UNDOING | 409 | An undo of this batch is already running in the background (status: \u0026quot;undoing\u0026quot;) — follow it on the batch | | UNDO_START_ERROR | 500 | Background undo: the undo could not be started, so nothing was changed — retry | Size, and background runs. An undo takes roughly half a second per account. Up to 1000 accounts without background, the call restores every account and answers 200 with the per-account report (unchanged). With more than 1000 accounts left to undo, or \u0026quot;background\u0026quot;: true at any size, it answers 202 with { batchId, status: \u0026quot;undoing\u0026quot;, total, … } and keeps going; poll GET /revert-batches/{batchId} (status, undoProcessedCount, undoTotal, undoFailures). A preview checks every account up to 1000; above that it checks the first 100 (or previewLimit) and sets previewTruncated: true, with total counting every account left to undo. An interrupted batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still running (including while it resumes after our maintenance) answers BATCH_RUNNING; cancel it first if you want to undo it now. Timing: the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported. Recommended flow: \u0026quot;preview\u0026quot;: true first — you get the exact per-account restore report plus who would be blocked and why — then execute. Example — preview, then undo: bash # 1. Dry run — nothing changes curl -X POST \u0026quot;.../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;preview\u0026quot;: true }\u0026#x27; # 2. Execute curl -X POST \u0026quot;.../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;reason\u0026quot;: \u0026quot;Reverted the wrong day — restoring\u0026quot; }\u0026#x27; Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026amp; time machine.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hyperprop Platform API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Undo a revert batch - Hyperprop Platform API\">\u003cmeta data-mint-head property=\"og:description\" content=\"The undo button. Puts every account in a revert batch back exactly where it was the moment before the revert ran: pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader\u0026#x27;s journal, order history, and daily stats come back like the revert never happened. Open terminals update live. A revert destroys nothing (rows are stamped, not deleted), which is what makes this possible. New orders are refused while an account is restored, as during a revert: the account carries a temporary lockout (cause: \u0026quot;admin\u0026quot;, reason \u0026quot;Your firm is restoring this account…\u0026quot;) from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (ENGINE_RELOAD_UNCONFIRMED), the temporary lockout ends by itself after 15 minutes. A preview writes none. Webhooks: each restored account fires account.updated (+ status events when the status moved) with trigger: \u0026quot;trading_day_revert_undo\u0026quot;, and account.trading_day_revert_undone — the reverse of account.trading_day_reverted: same batchId, the snapshots put back and the fills that count again (up to 500 inline; re-read the affectedTradingDays for the rest). Per-account rules (each account is checked independently — eligible ones proceed, blocked ones come back in failures): | Code | Meaning | |------|---------| | NEW_ACTIVITY | The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can\u0026#x27;t be restored over a new one — this account stays as-is. | | NOT_LATEST_REVERT | A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first. | | PAYOUT_OR_ADJUSTMENT_IN_RANGE | A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead. | | ACCOUNT_CHANGED | The account\u0026#x27;s balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry. | | UNDO_UPDATE_ERROR | Failed to write the restored state — retry (idempotent). | Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | BATCH_NOT_FOUND | 404 | Unknown batch id (or it belongs to a different organization) | | ALREADY_UNDONE | 409 | Every account in this batch has already been undone | | BATCH_RUNNING | 409 | The batch is a background revert that is still running (status: \u0026quot;running\u0026quot;) — wait until it has finished, then undo | | BATCH_UNDOING | 409 | An undo of this batch is already running in the background (status: \u0026quot;undoing\u0026quot;) — follow it on the batch | | UNDO_START_ERROR | 500 | Background undo: the undo could not be started, so nothing was changed — retry | Size, and background runs. An undo takes roughly half a second per account. Up to 1000 accounts without background, the call restores every account and answers 200 with the per-account report (unchanged). With more than 1000 accounts left to undo, or \u0026quot;background\u0026quot;: true at any size, it answers 202 with { batchId, status: \u0026quot;undoing\u0026quot;, total, … } and keeps going; poll GET /revert-batches/{batchId} (status, undoProcessedCount, undoTotal, undoFailures). A preview checks every account up to 1000; above that it checks the first 100 (or previewLimit) and sets previewTruncated: true, with total counting every account left to undo. An interrupted batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still running (including while it resumes after our maintenance) answers BATCH_RUNNING; cancel it first if you want to undo it now. Timing: the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported. Recommended flow: \u0026quot;preview\u0026quot;: true first — you get the exact per-account restore report plus who would be blocked and why — then execute. Example — preview, then undo: bash # 1. Dry run — nothing changes curl -X POST \u0026quot;.../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;preview\u0026quot;: true }\u0026#x27; # 2. Execute curl -X POST \u0026quot;.../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;reason\u0026quot;: \u0026quot;Reverted the wrong day — restoring\u0026quot; }\u0026#x27; Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026amp; time machine.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hyperprop Platform API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hyperprop-401fc39d.mintlify.site/_mintlify/api/og/v2?division=Time+Machine\u0026amp;title=Undo+a+revert+batch\u0026amp;description=**The+undo+button.**+Puts+every+account+in+a+revert+batch+back+**exactly+where+it+was+the+moment+before+the+revert+ran**%3A+pre-revert+balance%2C+status%2C+high-water\u0026amp;theme=09948cbc21d4dec195ff5794\u0026amp;signature=d2cd7a5aad7652802478b1507796ebd6976a9b2c4cb226cf507f16c419e73959\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Undo a revert batch - Hyperprop Platform API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The undo button. Puts every account in a revert batch back exactly where it was the moment before the revert ran: pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader\u0026#x27;s journal, order history, and daily stats come back like the revert never happened. Open terminals update live. A revert destroys nothing (rows are stamped, not deleted), which is what makes this possible. New orders are refused while an account is restored, as during a revert: the account carries a temporary lockout (cause: \u0026quot;admin\u0026quot;, reason \u0026quot;Your firm is restoring this account…\u0026quot;) from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (ENGINE_RELOAD_UNCONFIRMED), the temporary lockout ends by itself after 15 minutes. A preview writes none. Webhooks: each restored account fires account.updated (+ status events when the status moved) with trigger: \u0026quot;trading_day_revert_undo\u0026quot;, and account.trading_day_revert_undone — the reverse of account.trading_day_reverted: same batchId, the snapshots put back and the fills that count again (up to 500 inline; re-read the affectedTradingDays for the rest). Per-account rules (each account is checked independently — eligible ones proceed, blocked ones come back in failures): | Code | Meaning | |------|---------| | NEW_ACTIVITY | The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can\u0026#x27;t be restored over a new one — this account stays as-is. | | NOT_LATEST_REVERT | A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first. | | PAYOUT_OR_ADJUSTMENT_IN_RANGE | A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead. | | ACCOUNT_CHANGED | The account\u0026#x27;s balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry. | | UNDO_UPDATE_ERROR | Failed to write the restored state — retry (idempotent). | Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | BATCH_NOT_FOUND | 404 | Unknown batch id (or it belongs to a different organization) | | ALREADY_UNDONE | 409 | Every account in this batch has already been undone | | BATCH_RUNNING | 409 | The batch is a background revert that is still running (status: \u0026quot;running\u0026quot;) — wait until it has finished, then undo | | BATCH_UNDOING | 409 | An undo of this batch is already running in the background (status: \u0026quot;undoing\u0026quot;) — follow it on the batch | | UNDO_START_ERROR | 500 | Background undo: the undo could not be started, so nothing was changed — retry | Size, and background runs. An undo takes roughly half a second per account. Up to 1000 accounts without background, the call restores every account and answers 200 with the per-account report (unchanged). With more than 1000 accounts left to undo, or \u0026quot;background\u0026quot;: true at any size, it answers 202 with { batchId, status: \u0026quot;undoing\u0026quot;, total, … } and keeps going; poll GET /revert-batches/{batchId} (status, undoProcessedCount, undoTotal, undoFailures). A preview checks every account up to 1000; above that it checks the first 100 (or previewLimit) and sets previewTruncated: true, with total counting every account left to undo. An interrupted batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still running (including while it resumes after our maintenance) answers BATCH_RUNNING; cancel it first if you want to undo it now. Timing: the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported. Recommended flow: \u0026quot;preview\u0026quot;: true first — you get the exact per-account restore report plus who would be blocked and why — then execute. Example — preview, then undo: bash # 1. Dry run — nothing changes curl -X POST \u0026quot;.../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;preview\u0026quot;: true }\u0026#x27; # 2. Execute curl -X POST \u0026quot;.../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;reason\u0026quot;: \u0026quot;Reverted the wrong day — restoring\u0026quot; }\u0026#x27; Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026amp; time machine.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hyperprop-401fc39d.mintlify.site/_mintlify/api/og/v2?division=Time+Machine\u0026amp;title=Undo+a+revert+batch\u0026amp;description=**The+undo+button.**+Puts+every+account+in+a+revert+batch+back+**exactly+where+it+was+the+moment+before+the+revert+ran**%3A+pre-revert+balance%2C+status%2C+high-water\u0026amp;theme=09948cbc21d4dec195ff5794\u0026amp;signature=d2cd7a5aad7652802478b1507796ebd6976a9b2c4cb226cf507f16c419e73959\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hyperprop Platform API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#253CFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/platform-api/time-machine/undo-a-revert-batch.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hyperprop.com/#organization\",\"name\":\"Hyperprop Platform API\",\"url\":\"https://docs.hyperprop.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hyperprop-401fc39d/snMIX7SYzcFqAv9j/logo/light.svg?fit=max\u0026auto=format\u0026n=snMIX7SYzcFqAv9j\u0026q=85\u0026s=e3a0a071fb4ba3ae53ef978c23cc38a3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hyperprop.com#website\",\"name\":\"Hyperprop Platform API\",\"url\":\"https://docs.hyperprop.com\",\"publisher\":{\"@id\":\"https://docs.hyperprop.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch#webpage\",\"url\":\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch\",\"name\":\"Undo a revert batch\",\"description\":\"The undo button. Puts every account in a revert batch back exactly where it was the moment before the revert ran: pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader's journal, order history, and daily stats come back like the revert never happened. Open terminals update live. A revert destroys nothing (rows are stamped, not deleted), which is what makes this possible. New orders are refused while an account is restored, as during a revert: the account carries a temporary lockout (cause: \\\"admin\\\", reason \\\"Your firm is restoring this account…\\\") from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (ENGINE_RELOAD_UNCONFIRMED), the temporary lockout ends by itself after 15 minutes. A preview writes none. Webhooks: each restored account fires account.updated (+ status events when the status moved) with trigger: \\\"trading_day_revert_undo\\\", and account.trading_day_revert_undone — the reverse of account.trading_day_reverted: same batchId, the snapshots put back and the fills that count again (up to 500 inline; re-read the affectedTradingDays for the rest). Per-account rules (each account is checked independently — eligible ones proceed, blocked ones come back in failures): | Code | Meaning | |------|---------| | NEW_ACTIVITY | The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can't be restored over a new one — this account stays as-is. | | NOT_LATEST_REVERT | A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first. | | PAYOUT_OR_ADJUSTMENT_IN_RANGE | A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead. | | ACCOUNT_CHANGED | The account's balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry. | | UNDO_UPDATE_ERROR | Failed to write the restored state — retry (idempotent). | Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | BATCH_NOT_FOUND | 404 | Unknown batch id (or it belongs to a different organization) | | ALREADY_UNDONE | 409 | Every account in this batch has already been undone | | BATCH_RUNNING | 409 | The batch is a background revert that is still running (status: \\\"running\\\") — wait until it has finished, then undo | | BATCH_UNDOING | 409 | An undo of this batch is already running in the background (status: \\\"undoing\\\") — follow it on the batch | | UNDO_START_ERROR | 500 | Background undo: the undo could not be started, so nothing was changed — retry | Size, and background runs. An undo takes roughly half a second per account. Up to 1000 accounts without background, the call restores every account and answers 200 with the per-account report (unchanged). With more than 1000 accounts left to undo, or \\\"background\\\": true at any size, it answers 202 with { batchId, status: \\\"undoing\\\", total, … } and keeps going; poll GET /revert-batches/{batchId} (status, undoProcessedCount, undoTotal, undoFailures). A preview checks every account up to 1000; above that it checks the first 100 (or previewLimit) and sets previewTruncated: true, with total counting every account left to undo. An interrupted batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still running (including while it resumes after our maintenance) answers BATCH_RUNNING; cancel it first if you want to undo it now. Timing: the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported. Recommended flow: \\\"preview\\\": true first — you get the exact per-account restore report plus who would be blocked and why — then execute. Example — preview, then undo: bash # 1. Dry run — nothing changes curl -X POST \\\".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\\\" \\\\ -H \\\"X-API-Key: hp_live_your_key_here\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{ \\\"preview\\\": true }' # 2. Execute curl -X POST \\\".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\\\" \\\\ -H \\\"X-API-Key: hp_live_your_key_here\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{ \\\"reason\\\": \\\"Reverted the wrong day — restoring\\\" }' Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026 time machine.\",\"dateModified\":\"2026-11-15T15:41:10.331Z\",\"isPartOf\":{\"@id\":\"https://docs.hyperprop.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform API\",\"item\":\"https://docs.hyperprop.com/platform-api/trading-accounts/list-close-all-runs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Time Machine\",\"item\":\"https://docs.hyperprop.com/platform-api/time-machine/list-revert-batches\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Undo a revert batch\",\"item\":\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch#apireference\",\"headline\":\"Undo a revert batch\",\"name\":\"Undo a revert batch\",\"description\":\"The undo button. Puts every account in a revert batch back exactly where it was the moment before the revert ran: pre-revert balance, status, high-water mark and daily baseline are restored from the ledger, and every snapshot and order the batch voided is un-voided — the trader's journal, order history, and daily stats come back like the revert never happened. Open terminals update live. A revert destroys nothing (rows are stamped, not deleted), which is what makes this possible. New orders are refused while an account is restored, as during a revert: the account carries a temporary lockout (cause: \\\"admin\\\", reason \\\"Your firm is restoring this account…\\\") from just before it is written until the trade engine confirms it reloaded it. Closing positions and cancelling orders still work, and a lockout the account already had stays in force. If the engine never confirms the reload (ENGINE_RELOAD_UNCONFIRMED), the temporary lockout ends by itself after 15 minutes. A preview writes none. Webhooks: each restored account fires account.updated (+ status events when the status moved) with trigger: \\\"trading_day_revert_undo\\\", and account.trading_day_revert_undone — the reverse of account.trading_day_reverted: same batchId, the snapshots put back and the fills that count again (up to 500 inline; re-read the affectedTradingDays for the rest). Per-account rules (each account is checked independently — eligible ones proceed, blocked ones come back in failures): | Code | Meaning | |------|---------| | NEW_ACTIVITY | The trader placed orders after the revert, or a market close recorded a day with real activity since. The old timeline can't be restored over a new one — this account stays as-is. | | NOT_LATEST_REVERT | A newer revert covers this account. Reverts undo newest-first, like a stack — undo the newer batch first. | | PAYOUT_OR_ADJUSTMENT_IN_RANGE | A payout, payout reversal, balance adjustment or firm balance change was made after the revert. Undoing would restore the balance from before the revert and silently undo it — this account stays as-is; correct the balance with a balance adjustment instead. | | ACCOUNT_CHANGED | The account's balance or status changed while it was being undone (for example a payout or balance adjustment landed at the same moment); nothing was changed for this account — retry. | | UNDO_UPDATE_ERROR | Failed to write the restored state — retry (idempotent). | Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | BATCH_NOT_FOUND | 404 | Unknown batch id (or it belongs to a different organization) | | ALREADY_UNDONE | 409 | Every account in this batch has already been undone | | BATCH_RUNNING | 409 | The batch is a background revert that is still running (status: \\\"running\\\") — wait until it has finished, then undo | | BATCH_UNDOING | 409 | An undo of this batch is already running in the background (status: \\\"undoing\\\") — follow it on the batch | | UNDO_START_ERROR | 500 | Background undo: the undo could not be started, so nothing was changed — retry | Size, and background runs. An undo takes roughly half a second per account. Up to 1000 accounts without background, the call restores every account and answers 200 with the per-account report (unchanged). With more than 1000 accounts left to undo, or \\\"background\\\": true at any size, it answers 202 with { batchId, status: \\\"undoing\\\", total, … } and keeps going; poll GET /revert-batches/{batchId} (status, undoProcessedCount, undoTotal, undoFailures). A preview checks every account up to 1000; above that it checks the first 100 (or previewLimit) and sets previewTruncated: true, with total counting every account left to undo. An interrupted batch (a background revert that was cancelled before reaching every account) can be undone: the undo restores the accounts it did revert. A batch whose background revert is still running (including while it resumes after our maintenance) answers BATCH_RUNNING; cancel it first if you want to undo it now. Timing: the undo window stays open as long as the account has no new activity — minutes or days later both work. In practice: if you realize the mistake before traders resume trading, everything restores; accounts that already traded again are individually skipped and reported. Recommended flow: \\\"preview\\\": true first — you get the exact per-account restore report plus who would be blocked and why — then execute. Example — preview, then undo: bash # 1. Dry run — nothing changes curl -X POST \\\".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\\\" \\\\ -H \\\"X-API-Key: hp_live_your_key_here\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{ \\\"preview\\\": true }' # 2. Execute curl -X POST \\\".../v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/undo\\\" \\\\ -H \\\"X-API-Key: hp_live_your_key_here\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{ \\\"reason\\\": \\\"Reverted the wrong day — restoring\\\" }' Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026 time machine.\",\"url\":\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/undo-a-revert-batch#webpage\"},\"dateModified\":\"2026-11-15T15:41:10.331Z\",\"publisher\":{\"@id\":\"https://docs.hyperprop.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hyperprop.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hyperprop Platform API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Hyperprop Platform API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/platform-api/time-machine/undo-a-revert-batch.md","siteName":"Hyperprop Platform API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Platform API","pages":[{"group":"Trading accounts","pages":[{"title":"List close-all runs","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/flatten-runs","href":"/platform-api/trading-accounts/list-close-all-runs"},{"title":"Get trading accounts for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts","href":"/platform-api/trading-accounts/get-trading-accounts-for-your-organization"},{"title":"Create a trading account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts","href":"/platform-api/trading-accounts/create-a-trading-account"},{"title":"Get bulk operation details","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/bulk-operations/{batchId}","href":"/platform-api/trading-accounts/get-bulk-operation-details"},{"title":"Get a close-all run","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/flatten-runs/{runId}","href":"/platform-api/trading-accounts/get-a-close-all-run"},{"title":"Get active traders","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/active-traders","href":"/platform-api/trading-accounts/get-active-traders"},{"title":"Get daily account and trader activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/activity","href":"/platform-api/trading-accounts/get-daily-account-and-trader-activity"},{"title":"Bulk-create unlinked accounts with import keys","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/bulk","href":"/platform-api/trading-accounts/bulk-create-unlinked-accounts-with-import-keys"},{"title":"Bulk update trading accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/bulk-update","href":"/platform-api/trading-accounts/bulk-update-trading-accounts"},{"title":"Close all positions across accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/flatten","href":"/platform-api/trading-accounts/close-all-positions-across-accounts"},{"title":"Get open positions and equity for many accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/positions","href":"/platform-api/trading-accounts/get-open-positions-and-equity-for-many-accounts"},{"title":"Get a specific trading account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}","href":"/platform-api/trading-accounts/get-a-specific-trading-account"},{"title":"Update a trading account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/trading-accounts/{accountId}","href":"/platform-api/trading-accounts/update-a-trading-account"},{"title":"Get an account's event log and session history","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/activity","href":"/platform-api/trading-accounts/get-an-accounts-event-log-and-session-history"},{"title":"List an account's balance adjustments","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/balance-adjustments","href":"/platform-api/trading-accounts/list-an-accounts-balance-adjustments"},{"title":"Credit or debit a trading account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/balance-adjustments","href":"/platform-api/trading-accounts/credit-or-debit-a-trading-account"},{"title":"Get account change history","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/changes","href":"/platform-api/trading-accounts/get-account-change-history"},{"title":"Get an account's daily P\u0026L","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/daily-pnl","href":"/platform-api/trading-accounts/get-an-accounts-daily-p\u0026l"},{"title":"Turn an account off (pause)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/deactivate","href":"/platform-api/trading-accounts/turn-an-account-off-pause"},{"title":"Get an account's equity and unrealized P\u0026L","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/equity","href":"/platform-api/trading-accounts/get-an-accounts-equity-and-unrealized-p\u0026l"},{"title":"Close all positions on an account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/flatten","href":"/platform-api/trading-accounts/close-all-positions-on-an-account"},{"title":"Get an account's order event timeline","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/order-events","href":"/platform-api/trading-accounts/get-an-accounts-order-event-timeline"},{"title":"Get an account's order history","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/orders","href":"/platform-api/trading-accounts/get-an-accounts-order-history"},{"title":"Get an account's open positions","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/positions","href":"/platform-api/trading-accounts/get-an-accounts-open-positions"},{"title":"Turn an account back on","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/reactivate","href":"/platform-api/trading-accounts/turn-an-account-back-on"},{"title":"Unlink a trader (issues a fresh import key)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/unlink","href":"/platform-api/trading-accounts/unlink-a-trader-issues-a-fresh-import-key"},{"title":"Get a balance adjustment by reference","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/balance-adjustments/{reference}","href":"/platform-api/trading-accounts/get-a-balance-adjustment-by-reference"},{"title":"Cancel working orders on an account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/orders/cancel","href":"/platform-api/trading-accounts/cancel-working-orders-on-an-account"},{"title":"Close one position on an account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/positions/{contract}/close","href":"/platform-api/trading-accounts/close-one-position-on-an-account"}]},{"group":"Traders","pages":[{"title":"List trader identity bindings (customer ⇄ Hyperprop login)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trader-bindings","href":"/platform-api/traders/list-trader-identity-bindings-customer-⇄-hyperprop-login"},{"title":"Get traders for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/traders","href":"/platform-api/traders/get-traders-for-your-organization"},{"title":"Get a specific trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/traders/{traderId}","href":"/platform-api/traders/get-a-specific-trader"},{"title":"Update a trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/traders/{traderId}","href":"/platform-api/traders/update-a-trader"},{"title":"Rebind a customer to a new Hyperprop login (support flow)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trader-bindings/{bindingId}/rebind","href":"/platform-api/traders/rebind-a-customer-to-a-new-hyperprop-login-support-flow"}]},{"group":"Trading plans","pages":[{"title":"Get trading plans for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-plans","href":"/platform-api/trading-plans/get-trading-plans-for-your-organization"},{"title":"Create a new trading plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-plans","href":"/platform-api/trading-plans/create-a-new-trading-plan"},{"title":"Get a specific trading plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-plans/{planId}","href":"/platform-api/trading-plans/get-a-specific-trading-plan"},{"title":"Delete a trading plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/trading-plans/{planId}","href":"/platform-api/trading-plans/delete-a-trading-plan"},{"title":"Update a trading plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/trading-plans/{planId}","href":"/platform-api/trading-plans/update-a-trading-plan"}]},{"group":"Trading rules","pages":[{"title":"Get trading rules for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-rules","href":"/platform-api/trading-rules/get-trading-rules-for-your-organization"},{"title":"Create a new trading rule","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-rules","href":"/platform-api/trading-rules/create-a-new-trading-rule"},{"title":"Get a specific trading rule","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-rules/{ruleId}","href":"/platform-api/trading-rules/get-a-specific-trading-rule"},{"title":"Delete a trading rule","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/trading-rules/{ruleId}","href":"/platform-api/trading-rules/delete-a-trading-rule"},{"title":"Update a trading rule","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/trading-rules/{ruleId}","href":"/platform-api/trading-rules/update-a-trading-rule"}]},{"group":"Instruments","pages":[{"title":"List instruments","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/instruments","href":"/platform-api/instruments/list-instruments"}]},{"group":"Lockouts","pages":[{"title":"List all active lockouts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/lockouts","href":"/platform-api/lockouts/list-all-active-lockouts"},{"title":"Create admin lockout","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/lockouts","href":"/platform-api/lockouts/create-admin-lockout"},{"title":"Get daily lockout activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/lockouts/activity","href":"/platform-api/lockouts/get-daily-lockout-activity"},{"title":"Get lockout status for account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/lockouts/{accountId}","href":"/platform-api/lockouts/get-lockout-status-for-account"},{"title":"Remove lockout from account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/lockouts/{accountId}","href":"/platform-api/lockouts/remove-lockout-from-account"},{"title":"Update active lockout","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/lockouts/{accountId}","href":"/platform-api/lockouts/update-active-lockout"}]},{"group":"Payouts","pages":[{"title":"Payout queue — bulk payout eligibility","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/payout-eligibility","href":"/platform-api/payouts/payout-queue-—-bulk-payout-eligibility"},{"title":"Get daily payout activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/payouts/activity","href":"/platform-api/payouts/get-daily-payout-activity"},{"title":"Check payout eligibility","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/accounts/{accountId}/payout-eligibility","href":"/platform-api/payouts/check-payout-eligibility"},{"title":"List payouts for an account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/accounts/{accountId}/payouts","href":"/platform-api/payouts/list-payouts-for-an-account"},{"title":"Execute a payout (balance withdrawal)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/{accountId}/payouts","href":"/platform-api/payouts/execute-a-payout-balance-withdrawal"},{"title":"Reverse a payout (restore the withdrawn balance)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/{accountId}/payouts/{payoutId}/reverse","href":"/platform-api/payouts/reverse-a-payout-restore-the-withdrawn-balance"}]},{"group":"Purchases","pages":[{"title":"Get purchases for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/purchases","href":"/platform-api/purchases/get-purchases-for-your-organization"},{"title":"Get a specific purchase","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/purchases/{purchaseId}","href":"/platform-api/purchases/get-a-specific-purchase"}]},{"group":"Time Machine","pages":[{"title":"List revert batches","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/revert-batches","href":"/platform-api/time-machine/list-revert-batches"},{"title":"Get revert settings","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/time-machine-settings","href":"/platform-api/time-machine/get-revert-settings"},{"title":"Update revert settings","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/time-machine-settings","href":"/platform-api/time-machine/update-revert-settings"},{"title":"Bulk revert accounts to a trading day or an instant","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/revert-trading-day","href":"/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant"},{"title":"Inspect a revert batch","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/revert-batches/{batchId}","href":"/platform-api/time-machine/inspect-a-revert-batch"},{"title":"Revert an account to a trading day or an instant","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/{accountId}/revert-trading-day","href":"/platform-api/time-machine/revert-an-account-to-a-trading-day-or-an-instant"},{"title":"Cancel a background run","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/revert-batches/{batchId}/cancel","href":"/platform-api/time-machine/cancel-a-background-run"},{"title":"List the accounts of a background run","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/revert-batches/{batchId}/items","href":"/platform-api/time-machine/list-the-accounts-of-a-background-run"},{"title":"Retry the failed accounts of a background run","description":"Runs the **failed** and **cancelled** accounts of the batch's latest background revert (or undo) again, in the background, with the same restore point and reason. Accounts that already succeeded are not touched again. Each account gets a fresh set of retries. The batch stays one ledger entry, so it can still be undone as a whole.\n\nThe call answers **`202`**. Follow it like any background run: `GET /revert-batches/{batchId}` (`status`, `job`) and `GET /revert-batches/{batchId}/items`.\n\nA retried revert works exactly like reverting those accounts now. For an instant restore (`revertTo`), any activity a trader had after that instant is voided too, including trades placed since the first run.\n\n| Code | Status | Meaning |\n|------|:---:|---------|\n| `BATCH_NOT_FOUND` | 404 | Unknown batch id (or it belongs to a different organization) |\n| `NO_JOB` | 404 | The batch ran within its request; it has no background run to retry |\n| `NOTHING_TO_RETRY` | 409 | No failed or cancelled accounts |\n| `BATCH_RUNNING` / `BATCH_UNDOING` | 409 | A background run of this batch is still in progress |\n| `ALREADY_UNDONE` | 409 | The batch (or part of it) has been undone; start a new revert instead |\n\n**Example:**\n```bash\ncurl -X POST \"https://api.hyperprop.com/platform/v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/retry-failed\" \\\n -H \"X-API-Key: hp_live_your_key_here\"\n```\n\n**Access:** full-access API keys only (a read-only key gets `403 READ_ONLY_KEY`). Dashboard members need manage access to Operations \u0026 time machine.","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/revert-batches/{batchId}/retry-failed","href":"/platform-api/time-machine/retry-the-failed-accounts-of-a-background-run"},{"title":"Undo a revert batch","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/revert-batches/{batchId}/undo","href":"/platform-api/time-machine/undo-a-revert-batch"},{"title":"List the fills a revert voided on an account","description":"Every fill one revert batch voided on one account, oldest first. `account.trading_day_reverted` carries the first 500 inline; when its `voidedFillsTruncated` is true, read the rest here.\n\nFill ids are the ids the fills and reconciliation endpoints return, so you can match them to the trades you already recorded. A voided fill no longer counts toward the account's balance, P\u0026L or rules.\n\nAfter the batch is undone the fills count again and this list is empty (`undone: true`).\n\n**Example:**\n```bash\ncurl \"https://api.hyperprop.com/platform/v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890/accounts/7c9e6679-7425-40de-944b-e07fc1f90ae7/voided-fills?limit=500\u0026offset=500\" \\\n -H \"X-API-Key: hp_live_your_key_here\"\n```\n\n**Access:** read-only and full-access API keys. Dashboard members need view access to Operations \u0026 time machine.","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/revert-batches/{batchId}/accounts/{accountId}/voided-fills","href":"/platform-api/time-machine/list-the-fills-a-revert-voided-on-an-account"}]},{"group":"Mass credit","pages":[{"title":"List balance adjustment batches","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/balance-adjustments","href":"/platform-api/mass-credit/list-balance-adjustment-batches"},{"title":"Credit back an incident window's losses","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments","href":"/platform-api/mass-credit/credit-back-an-incident-windows-losses"},{"title":"List bulk jobs","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/jobs","href":"/platform-api/mass-credit/list-bulk-jobs"},{"title":"Preview a balance credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/preview","href":"/platform-api/mass-credit/preview-a-balance-credit"},{"title":"Preview a mass credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/previews","href":"/platform-api/mass-credit/preview-a-mass-credit"},{"title":"List mass credit templates","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/balance-adjustments/templates","href":"/platform-api/mass-credit/list-mass-credit-templates"},{"title":"Create a mass credit template","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/templates","href":"/platform-api/mass-credit/create-a-mass-credit-template"},{"title":"Get a balance adjustment batch","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/balance-adjustments/{batchId}","href":"/platform-api/mass-credit/get-a-balance-adjustment-batch"},{"title":"Get a bulk job","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/jobs/{jobId}","href":"/platform-api/mass-credit/get-a-bulk-job"},{"title":"Delete a mass credit template","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/balance-adjustments/templates/{templateId}","href":"/platform-api/mass-credit/delete-a-mass-credit-template"},{"title":"Update a mass credit template","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/balance-adjustments/templates/{templateId}","href":"/platform-api/mass-credit/update-a-mass-credit-template"},{"title":"Retry a balance adjustment batch","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/{batchId}/retry","href":"/platform-api/mass-credit/retry-a-balance-adjustment-batch"},{"title":"Reverse a balance credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/{batchId}/reverse","href":"/platform-api/mass-credit/reverse-a-balance-credit"},{"title":"Cancel a bulk job","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/jobs/{jobId}/cancel","href":"/platform-api/mass-credit/cancel-a-bulk-job"},{"title":"Export a bulk job's items as CSV","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/jobs/{jobId}/export","href":"/platform-api/mass-credit/export-a-bulk-jobs-items-as-csv"},{"title":"List a bulk job's items","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/jobs/{jobId}/items","href":"/platform-api/mass-credit/list-a-bulk-jobs-items"},{"title":"Pause a bulk job","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/jobs/{jobId}/pause","href":"/platform-api/mass-credit/pause-a-bulk-job"},{"title":"Resume a bulk job","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/jobs/{jobId}/resume","href":"/platform-api/mass-credit/resume-a-bulk-job"},{"title":"Retry a bulk job's failed items","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/jobs/{jobId}/retry","href":"/platform-api/mass-credit/retry-a-bulk-jobs-failed-items"},{"title":"Reverse a mass credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/jobs/{jobId}/reverse","href":"/platform-api/mass-credit/reverse-a-mass-credit"},{"title":"Confirm a mass credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/previews/{jobId}/confirm","href":"/platform-api/mass-credit/confirm-a-mass-credit"},{"title":"Add accounts to a draft preview","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/previews/{jobId}/inputs","href":"/platform-api/mass-credit/add-accounts-to-a-draft-preview"},{"title":"Start a draft preview","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/previews/{jobId}/start","href":"/platform-api/mass-credit/start-a-draft-preview"}]},{"group":"Webhooks","pages":[{"title":"View webhook delivery history","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhook-deliveries","href":"/platform-api/webhooks/view-webhook-delivery-history"},{"title":"List all webhooks","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhooks","href":"/platform-api/webhooks/list-all-webhooks"},{"title":"Register a webhook endpoint","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhooks","href":"/platform-api/webhooks/register-a-webhook-endpoint"},{"title":"Get daily webhook delivery activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhook-deliveries/activity","href":"/platform-api/webhooks/get-daily-webhook-delivery-activity"},{"title":"Inspect a webhook event and all delivery attempts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhook-deliveries/{deliveryId}","href":"/platform-api/webhooks/inspect-a-webhook-event-and-all-delivery-attempts"},{"title":"Get webhook details","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhooks/{webhookId}","href":"/platform-api/webhooks/get-webhook-details"},{"title":"Update a webhook","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/webhooks/{webhookId}","href":"/platform-api/webhooks/update-a-webhook"},{"title":"Delete a webhook","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/webhooks/{webhookId}","href":"/platform-api/webhooks/delete-a-webhook"},{"title":"Redeliver a webhook delivery","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhook-deliveries/{deliveryId}/redeliver","href":"/platform-api/webhooks/redeliver-a-webhook-delivery"},{"title":"Get webhook endpoint delivery and latency metrics","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhooks/{webhookId}/metrics","href":"/platform-api/webhooks/get-webhook-endpoint-delivery-and-latency-metrics"},{"title":"Rotate signing secret","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhooks/{webhookId}/rotate-secret","href":"/platform-api/webhooks/rotate-signing-secret"},{"title":"Simulate any event type (QA fixture)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhooks/{webhookId}/simulate","href":"/platform-api/webhooks/simulate-any-event-type-qa-fixture"},{"title":"Send a test event","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhooks/{webhookId}/test","href":"/platform-api/webhooks/send-a-test-event"}]},{"group":"Events","pages":[{"title":"List all organization events","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/events","href":"/platform-api/events/list-all-organization-events"},{"title":"Inspect one event and all its webhook deliveries","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/events/{eventId}","href":"/platform-api/events/inspect-one-event-and-all-its-webhook-deliveries"}]},{"group":"Real-time streams","pages":[{"title":"Real-time event stream (WebSocket)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/events/stream","href":"/platform-api/real-time-streams/real-time-event-stream-websocket"},{"title":"Create a trading stream token","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/stream-token","href":"/platform-api/real-time-streams/create-a-trading-stream-token"}]},{"group":"Reconciliation","pages":[{"title":"Get account balances (bulk, reconciliation-friendly)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/balances","href":"/platform-api/reconciliation/get-account-balances-bulk-reconciliation-friendly"},{"title":"Reconcile a trading day in one call","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/reconciliation","href":"/platform-api/reconciliation/reconcile-a-trading-day-in-one-call"},{"title":"Get end-of-day account snapshots","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/snapshots/accounts","href":"/platform-api/reconciliation/get-end-of-day-account-snapshots"},{"title":"Get fills for a trading day","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/snapshots/fills","href":"/platform-api/reconciliation/get-fills-for-a-trading-day"}]},{"group":"Analytics","pages":[{"title":"Get organization analytics","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/analytics","href":"/platform-api/analytics/get-organization-analytics"},{"title":"Get hourly activity by weekday","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/analytics/hourly","href":"/platform-api/analytics/get-hourly-activity-by-weekday"},{"title":"Get revenue breakdown","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/analytics/revenue","href":"/platform-api/analytics/get-revenue-breakdown"},{"title":"Get top traders over time","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/analytics/top-traders","href":"/platform-api/analytics/get-top-traders-over-time"}]},{"group":"Risk","pages":[{"title":"Get your alert limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/alert-limits","href":"/platform-api/risk/get-your-alert-limits"},{"title":"Set your alert limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/alert-limits","href":"/platform-api/risk/set-your-alert-limits"},{"title":"List alerts raised by your limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/alerts","href":"/platform-api/risk/list-alerts-raised-by-your-limits"},{"title":"Get trader behavior by plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/behavior","href":"/platform-api/risk/get-trader-behavior-by-plan"},{"title":"Get plan performance by purchase month","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/cohorts","href":"/platform-api/risk/get-plan-performance-by-purchase-month"},{"title":"Read exposure and concentration","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/exposure","href":"/platform-api/risk/read-exposure-and-concentration"},{"title":"List exposure limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/exposure-limits","href":"/platform-api/risk/list-exposure-limits"},{"title":"Set exposure limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/exposure-limits","href":"/platform-api/risk/set-exposure-limits"},{"title":"Read the risk flags of accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/flags","href":"/platform-api/risk/read-the-risk-flags-of-accounts"},{"title":"List flagged traders","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/inbox","href":"/platform-api/risk/list-flagged-traders"},{"title":"List link clearances","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/link-clearances","href":"/platform-api/risk/list-link-clearances"},{"title":"Clear two traders to share a device or address","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/risk/link-clearances","href":"/platform-api/risk/clear-two-traders-to-share-a-device-or-address"},{"title":"Get traders linked by a shared device or IP address","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/linked-traders","href":"/platform-api/risk/get-traders-linked-by-a-shared-device-or-ip-address"},{"title":"List news windows","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/news-windows","href":"/platform-api/risk/list-news-windows"},{"title":"Add or update news windows","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/news-windows","href":"/platform-api/risk/add-or-update-news-windows"},{"title":"Get a payout forecast for the next 7 and 30 days","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/payout-forecast","href":"/platform-api/risk/get-a-payout-forecast-for-the-next-7-and-30-days"},{"title":"Get per-plan unit economics and sustainability flags","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/plan-economics","href":"/platform-api/risk/get-per-plan-unit-economics-and-sustainability-flags"},{"title":"Get monthly firm P\u0026L (revenue vs payouts vs platform costs)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/pnl","href":"/platform-api/risk/get-monthly-firm-p\u0026l-revenue-vs-payouts-vs-platform-costs"},{"title":"List daily risk reports","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/reports","href":"/platform-api/risk/list-daily-risk-reports"},{"title":"Get the summary email settings","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/summary-email","href":"/platform-api/risk/get-the-summary-email-settings"},{"title":"Set the summary email","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/summary-email","href":"/platform-api/risk/set-the-summary-email"},{"title":"List today's provisional risk pairs","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/today","href":"/platform-api/risk/list-todays-provisional-risk-pairs"},{"title":"Detect self-hedging, hedging and copy trading","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/trading-patterns","href":"/platform-api/risk/detect-self-hedging-hedging-and-copy-trading"},{"title":"Read the risk money summary","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/value","href":"/platform-api/risk/read-the-risk-money-summary"},{"title":"Read one risk finding with its proof","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/findings/{findingId}","href":"/platform-api/risk/read-one-risk-finding-with-its-proof"},{"title":"Count flagged traders","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/inbox/count","href":"/platform-api/risk/count-flagged-traders"},{"title":"Set the review state of a flagged trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/inbox/{traderId}","href":"/platform-api/risk/set-the-review-state-of-a-flagged-trader"},{"title":"Revoke a link clearance","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/risk/link-clearances/{clearanceId}","href":"/platform-api/risk/revoke-a-link-clearance"},{"title":"Read a risk match export","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/match-exports/{exportId}","href":"/platform-api/risk/read-a-risk-match-export"},{"title":"Delete a news window","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/risk/news-windows/{windowId}","href":"/platform-api/risk/delete-a-news-window"},{"title":"List stored trading patterns","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/patterns/stored","href":"/platform-api/risk/list-stored-trading-patterns"},{"title":"Read the daily risk report of a trading day","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/reports/{tradingDay}","href":"/platform-api/risk/read-the-daily-risk-report-of-a-trading-day"},{"title":"List every risk match of a trading day","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/reports/{tradingDay}/matches","href":"/platform-api/risk/list-every-risk-match-of-a-trading-day"},{"title":"List the decisions on a trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/traders/{traderId}/decisions","href":"/platform-api/risk/list-the-decisions-on-a-trader"},{"title":"Record a decision on a flagged trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/risk/traders/{traderId}/decisions","href":"/platform-api/risk/record-a-decision-on-a-flagged-trader"},{"title":"Read one trader's risk findings with their proof","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/traders/{traderId}/findings","href":"/platform-api/risk/read-one-traders-risk-findings-with-their-proof"},{"title":"Rebuild the full risk match list of a trading day","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/risk/reports/{tradingDay}/matches/export","href":"/platform-api/risk/rebuild-the-full-risk-match-list-of-a-trading-day"}]},{"group":"Trader insights","pages":[{"title":"Read trader sentiment over time","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/insights/sentiment","href":"/platform-api/trader-insights/read-trader-sentiment-over-time"},{"title":"List your top traders by realized performance","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/insights/top-traders","href":"/platform-api/trader-insights/list-your-top-traders-by-realized-performance"},{"title":"List the traders you follow","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/insights/watchlist","href":"/platform-api/trader-insights/list-the-traders-you-follow"},{"title":"Get live positioning across all accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/positioning","href":"/platform-api/trader-insights/get-live-positioning-across-all-accounts"},{"title":"List the entries and exits of the traders you follow","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/insights/watchlist/activity","href":"/platform-api/trader-insights/list-the-entries-and-exits-of-the-traders-you-follow"},{"title":"Follow a trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/insights/watchlist/{traderId}","href":"/platform-api/trader-insights/follow-a-trader"},{"title":"Stop following a trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/insights/watchlist/{traderId}","href":"/platform-api/trader-insights/stop-following-a-trader"},{"title":"Get long vs short positioning over time","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/positioning/history","href":"/platform-api/trader-insights/get-long-vs-short-positioning-over-time"},{"title":"Get live exposure by product and trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/positioning/live","href":"/platform-api/trader-insights/get-live-exposure-by-product-and-trader"}]},{"group":"Billing and invoices","pages":[{"title":"Get daily billing activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/activity","href":"/platform-api/billing-and-invoices/get-daily-billing-activity"},{"title":"Get credits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/credits","href":"/platform-api/billing-and-invoices/get-credits"},{"title":"List billing cycles","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/cycles","href":"/platform-api/billing-and-invoices/list-billing-cycles"},{"title":"Get your billing details","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/details","href":"/platform-api/billing-and-invoices/get-your-billing-details"},{"title":"Update your billing details","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/billing/details","href":"/platform-api/billing-and-invoices/update-your-billing-details"},{"title":"List all billing events","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/events","href":"/platform-api/billing-and-invoices/list-all-billing-events"},{"title":"Project next month's bill from the current state","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/forecast","href":"/platform-api/billing-and-invoices/project-next-months-bill-from-the-current-state"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/invoices","href":"/platform-api/billing-and-invoices/list-invoices"},{"title":"Get all-months billing aggregates","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/monthly","href":"/platform-api/billing-and-invoices/get-all-months-billing-aggregates"},{"title":"Get monthly billing summary","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/summary","href":"/platform-api/billing-and-invoices/get-monthly-billing-summary"},{"title":"Get this month so far","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/usage","href":"/platform-api/billing-and-invoices/get-this-month-so-far"},{"title":"Get an invoice","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/invoices/{invoiceId}","href":"/platform-api/billing-and-invoices/get-an-invoice"},{"title":"Export a month's line items as CSV","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/line-items/export","href":"/platform-api/billing-and-invoices/export-a-months-line-items-as-csv"},{"title":"Get events for a billing cycle","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/cycles/{cycleId}/events","href":"/platform-api/billing-and-invoices/get-events-for-a-billing-cycle"},{"title":"Get bank transfer instructions","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/invoices/{invoiceId}/payment-instructions","href":"/platform-api/billing-and-invoices/get-bank-transfer-instructions"},{"title":"Download an invoice PDF","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/invoices/{invoiceId}/pdf","href":"/platform-api/billing-and-invoices/download-an-invoice-pdf"}]},{"group":"Team and roles","pages":[{"title":"List roles (system presets + your custom roles)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/roles","href":"/platform-api/team-and-roles/list-roles-system-presets-+-your-custom-roles"},{"title":"Get team members for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/team","href":"/platform-api/team-and-roles/get-team-members-for-your-organization"},{"title":"List pending team invitations","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/team/invitations","href":"/platform-api/team-and-roles/list-pending-team-invitations"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/api-keys","href":"/platform-api/api-keys/list-api-keys"},{"title":"List AI apps connected with your API keys","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/api-keys/connections","href":"/platform-api/api-keys/list-ai-apps-connected-with-your-api-keys"}]},{"group":"Logs and health","pages":[{"title":"List API request logs","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/api-logs","href":"/platform-api/logs-and-health/list-api-request-logs"},{"title":"Get organization audit log","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/audit-log","href":"/platform-api/logs-and-health/get-organization-audit-log"},{"title":"Get integration health (alerts, errors, insights)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/health","href":"/platform-api/logs-and-health/get-integration-health-alerts-errors-insights"},{"title":"Look up an idempotency key","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/idempotency-keys","href":"/platform-api/logs-and-health/look-up-an-idempotency-key"},{"title":"List organization audit events","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/audit-log/events","href":"/platform-api/logs-and-health/list-organization-audit-events"},{"title":"Release a stuck idempotency key","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/idempotency-keys/release","href":"/platform-api/logs-and-health/release-a-stuck-idempotency-key"}]},{"group":"Organization profile","pages":[{"title":"Get your organization profile","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/profile","href":"/platform-api/organization-profile/get-your-organization-profile"},{"title":"Update your organization profile","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/profile","href":"/platform-api/organization-profile/update-your-organization-profile"},{"title":"Upload organization logo","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/profile/logo","href":"/platform-api/organization-profile/upload-organization-logo"},{"title":"Delete organization logo","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/profile/logo","href":"/platform-api/organization-profile/delete-organization-logo"}]},{"group":"Support","pages":[{"title":"List your support tickets","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/support/tickets","href":"/platform-api/support/list-your-support-tickets"},{"title":"Create a support ticket","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/support/tickets","href":"/platform-api/support/create-a-support-ticket"},{"title":"Get signed upload URLs for ticket attachments","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/support/uploads","href":"/platform-api/support/get-signed-upload-urls-for-ticket-attachments"},{"title":"Get a support ticket with its reply thread","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/support/tickets/{ticketId}","href":"/platform-api/support/get-a-support-ticket-with-its-reply-thread"},{"title":"Reply on a support ticket","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/support/tickets/{ticketId}/comments","href":"/platform-api/support/reply-on-a-support-ticket"}]},{"group":"Partner access","pages":[{"title":"Get order history (keyset-paginated)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/user/trading/orders","href":"/platform-api/partner-access/get-order-history-keyset-paginated"},{"title":"Get completed round-trip trades (server-derived)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/user/trading/trades","href":"/platform-api/partner-access/get-completed-round-trip-trades-server-derived"}]}]},{"group":"Trade API","pages":[{"group":"Account","pages":[{"title":"Get current trading account with equity and P\u0026L","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/account","href":"/trade-api/account/get-current-trading-account-with-equity-and-p\u0026l"},{"title":"Get account lockout status","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/account/lockout","href":"/trade-api/account/get-account-lockout-status"},{"title":"Create or update account lockout","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/account/lockout","href":"/trade-api/account/create-or-update-account-lockout"},{"title":"Remove account lockout","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json delete /trade/account/lockout","href":"/trade-api/account/remove-account-lockout"},{"title":"Set or clear a trading account's display nickname.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/account/nickname","href":"/trade-api/account/set-or-clear-a-trading-accounts-display-nickname"},{"title":"Get all trading accounts for the authenticated user","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/accounts","href":"/trade-api/account/get-all-trading-accounts-for-the-authenticated-user"},{"title":"Create a personal API key session","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/api-keys/session","href":"/trade-api/account/create-a-personal-api-key-session"},{"title":"List the trader's API keys","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/partner/keys","href":"/trade-api/account/list-the-traders-api-keys"},{"title":"Generate a trader API key for third-party access","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/partner/keys","href":"/trade-api/account/generate-a-trader-api-key-for-third-party-access"},{"title":"Revoke one of the trader's API keys","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json delete /trade/partner/keys/{key_id}","href":"/trade-api/account/revoke-one-of-the-traders-api-keys"},{"title":"Create a partner session","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/partner/session","href":"/trade-api/account/create-a-partner-session"}]},{"group":"Risk","pages":[{"title":"Read the trader's personal risk settings for an account.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/account/risk-settings","href":"/trade-api/risk/read-the-traders-personal-risk-settings-for-an-account"},{"title":"Update personal risk settings.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/account/risk-settings","href":"/trade-api/risk/update-personal-risk-settings"}]},{"group":"Accounts","pages":[{"title":"Consistency status for one of the caller's accounts","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/accounts/{account_id}/consistency","href":"/trade-api/accounts/consistency-status-for-one-of-the-callers-accounts"}]},{"group":"Positions","pages":[{"title":"Close all open positions for an account","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/close-all","href":"/trade-api/positions/close-all-open-positions-for-an-account"},{"title":"Flatten account: close positions and cancel orders","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/flatten","href":"/trade-api/positions/flatten-account:-close-positions-and-cancel-orders"},{"title":"Add margin to an isolated perpetual position, or remove some.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/perp/isolated-margin","href":"/trade-api/positions/add-margin-to-an-isolated-perpetual-position-or-remove-some"},{"title":"Read the account's perpetual margin settings and position margins.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/perp/margin","href":"/trade-api/positions/read-the-accounts-perpetual-margin-settings-and-position-margins"},{"title":"Set a perpetual's margin mode and/or leverage.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/perp/margin","href":"/trade-api/positions/set-a-perpetuals-margin-mode-andor-leverage"},{"title":"Get perpetual mark prices","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/perp/mark","href":"/trade-api/positions/get-perpetual-mark-prices"},{"title":"Close a specific position by contract","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/position/close","href":"/trade-api/positions/close-a-specific-position-by-contract"},{"title":"Reverse a position (close + open opposite side)","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/position/reverse","href":"/trade-api/positions/reverse-a-position-close-+-open-opposite-side"},{"title":"Set TP/SL at the position level for one (account, contract) pair.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/position/set-bracket","href":"/trade-api/positions/set-tpsl-at-the-position-level-for-one-account-contract-pair"},{"title":"Get open positions with real-time P\u0026L","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/positions","href":"/trade-api/positions/get-open-positions-with-real-time-p\u0026l"}]},{"group":"Orders","pages":[{"title":"Get command processing status by id","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/commands/{command_id}","href":"/trade-api/orders/get-command-processing-status-by-id"},{"title":"Submit a market, limit, or stop order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order","href":"/trade-api/orders/submit-a-market-limit-or-stop-order"},{"title":"Attach TP/SL bracket to an existing order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/attach-bracket","href":"/trade-api/orders/attach-tpsl-bracket-to-an-existing-order"},{"title":"Cancel a pending order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/cancel","href":"/trade-api/orders/cancel-a-pending-order"},{"title":"Detach TP/SL bracket leg from an order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/detach-bracket","href":"/trade-api/orders/detach-tpsl-bracket-leg-from-an-order"},{"title":"Link a standalone order into the position's OCO group","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/link-oco","href":"/trade-api/orders/link-a-standalone-order-into-the-positions-oco-group"},{"title":"Modify price or quantity of a pending order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/modify","href":"/trade-api/orders/modify-price-or-quantity-of-a-pending-order"},{"title":"Get all orders (filled, pending, cancelled)","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/orders","href":"/trade-api/orders/get-all-orders-filled-pending-cancelled"},{"title":"Cancel all pending orders for an account (keeps live position protection)","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/orders/cancel-all","href":"/trade-api/orders/cancel-all-pending-orders-for-an-account-keeps-live-position-protection"},{"title":"Get order history (append-only lifecycle events)","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/orders/history","href":"/trade-api/orders/get-order-history-append-only-lifecycle-events"},{"title":"Get active working orders","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/orders/pending","href":"/trade-api/orders/get-active-working-orders"},{"title":"Get trade execution history","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/trades","href":"/trade-api/orders/get-trade-execution-history"}]},{"group":"Copy Trading","pages":[{"title":"Get copy trading configuration","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/copy/config","href":"/trade-api/copy-trading/get-copy-trading-configuration"},{"title":"Create or update a copy trading config","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/copy/config","href":"/trade-api/copy-trading/create-or-update-a-copy-trading-config"},{"title":"Delete a copy trading config","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json delete /trade/copy/config","href":"/trade-api/copy-trading/delete-a-copy-trading-config"},{"title":"Toggle copy config active state","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/copy/config/active","href":"/trade-api/copy-trading/toggle-copy-config-active-state"},{"title":"Delete all copy trading configs","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json delete /trade/copy/config/all","href":"/trade-api/copy-trading/delete-all-copy-trading-configs"},{"title":"Bulk update copy trading group followers","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/copy/group","href":"/trade-api/copy-trading/bulk-update-copy-trading-group-followers"},{"title":"Get copy trading status and positions","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/copy/status","href":"/trade-api/copy-trading/get-copy-trading-status-and-positions"}]},{"group":"WebSocket","pages":[{"title":"Real-time WebSocket for trading events","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/ws","href":"/trade-api/websocket/real-time-websocket-for-trading-events"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Undo a revert batch - Hyperprop Platform API","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-BIYvYBgk.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}