{"openapi":"3.1.0","info":{"title":"DAY Protocol HTTP API","version":"1.0.0","description":"**DAY API v1** (version 1.0.0). All product routes are under `/api/v1`. Unversioned forever: `/health` only (liveness). Non-custodial yield router for agents. **Auth = X-API-Key** mapped to owner/agent/keeper allowlists. `X-Role` is ignored. Amounts are micros strings. Principal fee = 0; yield skim = 500 bps. Writes return **prepared** plans (`ownerMustSign`) unless broadcast is enabled and a real digest is produced. strategyId === bare venueId (`suilend`, not `suilend-sui-usdc`). Legacy `/api/day/*` and `/api/wallets/*` still accepted as aliases. Generated from ROUTE_MANIFEST (115 routes). Schema day-openapi.v1.","contact":{"url":"https://dayprotocol.com"},"license":{"name":"See repository"}},"servers":[{"url":"https://dayprotocol.com","description":"Production — use /api/v1/… for all product API calls. Example: https://dayprotocol.com/api/v1/day/status"}],"tags":[{"name":"meta","description":"Health, version, packages"},{"name":"strategies","description":"Venues / strategies / deposit plans"},{"name":"wallet","description":"Per-wallet position / route / harvest (DAY-294)"},{"name":"bridge","description":"Mayan bridge + rescue"},{"name":"discovery","description":"DefiLlama map / opportunities"},{"name":"plans","description":"Swap / gas sponsor plans"},{"name":"api","description":"Other routes"}],"paths":{"/health":{"get":{"operationId":"GET_health","summary":"Liveness","description":"Public health probe. No auth.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["meta"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/":{"get":{"operationId":"GET_","summary":"GET /","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/openapi.json":{"get":{"operationId":"GET_api_day_openapi_json","summary":"OpenAPI 3.1 alias","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["meta"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/readiness":{"get":{"operationId":"GET_api_day_readiness","summary":"Alias of status","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `readiness()`","tags":["meta"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"readiness()"}},"/api/v1/day/status":{"get":{"operationId":"GET_api_day_status","summary":"Protocol status","description":"Phase-1 readiness snapshot: launch homes, fee bps, execution/broadcast flags, venue ids.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `readiness()`","tags":["meta"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"readiness()"}},"/api/v1/day/packages":{"get":{"operationId":"GET_api_day_packages","summary":"On-chain package ids (Map vs Executable)","description":"day-packages.v1: Sui/Solana label Executable (phase1 homes); Base/Arbitrum label Map (expansion). status:live means contract deployed — not adapter write-ready. Never invent ids. Base/Arb live vs target; writeReady false while adapters stub. Honesty: stub adapters never imply broadcast.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `packages()`","tags":["meta"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"packages()"}},"/api/v1/day/sdk":{"get":{"operationId":"GET_api_day_sdk","summary":"Published SDK version metadata","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `sdkRelease()`","tags":["meta"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"sdkRelease()"}},"/api/v1/day/version":{"get":{"operationId":"GET_api_day_version","summary":"API version document","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `apiVersion()`","tags":["meta"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"apiVersion()"}},"/api/v1/day/enablement":{"get":{"operationId":"GET_api_day_enablement","summary":"GET /api/day/enablement","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/venues":{"get":{"operationId":"GET_api_day_venues","summary":"List venues / strategies readiness","description":"All registered venues with ready/writeReady, gross_apy_bps, executionMode. strategyId === venueId (bare: suilend, kamino, aave-v3 — not form-* or composite).\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `listVenues()`","tags":["strategies"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"listVenues()"}},"/api/v1/auto-yield/venues":{"get":{"operationId":"GET_api_auto_yield_venues","summary":"GET /api/auto-yield/venues","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/opportunities":{"get":{"operationId":"GET_api_day_opportunities","summary":"GET /api/day/opportunities","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/discover":{"get":{"operationId":"GET_api_day_discover","summary":"Public discovery map","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `listOpportunities()`","tags":["discovery"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"listOpportunities()"},"post":{"operationId":"POST_api_day_discover","summary":"Public discovery (POST body filters)","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["discovery"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/map/venues":{"get":{"operationId":"GET_api_day_map_venues","summary":"GET /api/day/map/venues","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/discover/map":{"get":{"operationId":"GET_api_day_discover_map","summary":"GET /api/day/discover/map","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/map/venues/refresh":{"post":{"operationId":"POST_api_day_map_venues_refresh","summary":"POST /api/day/map/venues/refresh","description":"**Auth:** `owner|keeper` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_keeper","x-day-sdk":null}},"/api/v1/day/estimates":{"get":{"operationId":"GET_api_day_estimates","summary":"GET /api/day/estimates","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null},"post":{"operationId":"POST_api_day_estimates","summary":"POST /api/day/estimates","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/auto-pay/plan":{"post":{"operationId":"POST_api_day_auto_pay_plan","summary":"POST /api/day/auto-pay/plan","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/forms":{"get":{"operationId":"GET_api_day_forms","summary":"GET /api/day/forms","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/forms/priority":{"get":{"operationId":"GET_api_day_forms_priority","summary":"GET /api/day/forms/priority","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/forms/{id}":{"get":{"operationId":"GET_api_day_forms_id_","summary":"GET /api/day/forms/{id}","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/strategies":{"get":{"operationId":"GET_api_day_strategies","summary":"List strategies (product vocabulary)","description":"Prefer this over forms for product UI. strategyId is the bare venueId.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `listStrategies()`","tags":["strategies"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"listStrategies()"}},"/api/v1/day/strategies/priority":{"get":{"operationId":"GET_api_day_strategies_priority","summary":"GET /api/day/strategies/priority","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/strategies/{id}":{"get":{"operationId":"GET_api_day_strategies_id_","summary":"Get one strategy","description":"Accepts venueId (suilend) or formId (form-suilend). Unknown → 404 strategy_unknown.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `getStrategy(strategyId)`","tags":["strategies"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"getStrategy(strategyId)"}},"/api/v1/day/strategies/deposit/plan":{"post":{"operationId":"POST_api_day_strategies_deposit_plan","summary":"Prepare deposit plan (owner-sign)","description":"PREPARE-ONLY. Returns status prepared, ownerMustSign true, submitted false unless broadcast env + real digest. Fee on principal = 0.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `prepareStrategyDeposit({ strategyId, amountMicros })`","tags":["strategies"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"prepareStrategyDeposit({ strategyId, amountMicros })","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["strategyId","amountMicros"],"properties":{"strategyId":{"type":"string","description":"Bare venueId e.g. suilend, kamino, aave-v3","examples":["suilend"]},"amountMicros":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"owner":{"type":"string","description":"Optional owner address for plan"},"autoYieldEnabled":{"type":"boolean","default":true}}}}}}}},"/api/v1/day/strategies/withdraw/plan":{"post":{"operationId":"POST_api_day_strategies_withdraw_plan","summary":"Prepare withdraw plan","description":"PREPARE-ONLY. Principal fee = 0.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `prepareStrategyWithdraw({ strategyId, amountMicros })`","tags":["strategies"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"prepareStrategyWithdraw({ strategyId, amountMicros })","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["strategyId","amountMicros"],"properties":{"strategyId":{"type":"string","examples":["suilend"]},"amountMicros":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"owner":{"type":"string"}}}}}}}},"/api/v1/day/markets/stats":{"get":{"operationId":"GET_api_day_markets_stats","summary":"GET /api/day/markets/stats","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/stats":{"get":{"operationId":"GET_api_day_stats","summary":"GET /api/day/stats","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/possible":{"get":{"operationId":"GET_api_day_possible","summary":"GET /api/day/possible","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/markets/stats/refresh":{"post":{"operationId":"POST_api_day_markets_stats_refresh","summary":"POST /api/day/markets/stats/refresh","description":"**Auth:** `owner|keeper` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_keeper","x-day-sdk":null}},"/api/v1/day/sui/wallet-balance":{"get":{"operationId":"GET_api_day_sui_wallet_balance","summary":"Sui wallet balances (SUI + USDC)","description":"Public read-only. Query `address`. Fail-closed on RPC failure.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `suiWalletBalance(address)`","tags":["chains","wallet"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"suiWalletBalance(address)"}},"/api/v1/day/arbitrum":{"get":{"operationId":"GET_api_day_arbitrum","summary":"Arbitrum expansion chain profile","description":"DAY-237: DayRegistry live on chainId 42161; adapters stub. writeReady/liveMoneyPath false. PREPARE_OK_STUBS is prepare/read only — UI must not imply live write.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `arbitrumProfile()`","tags":["chains"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"arbitrumProfile()"}},"/api/v1/day/arbitrum/enablement":{"get":{"operationId":"GET_api_day_arbitrum_enablement","summary":"Arbitrum enablement / write gate","description":"DAY-243 hard write gate: broadcastEnabled stays false until writeReady + OPEN_YIELD_ARBITRUM_WRITE_GO. Per-adapter writeReady false for stubs. goNoGo PREPARE_OK_STUBS ≠ live deposits.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `arbitrumEnablement()`","tags":["chains"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"arbitrumEnablement()"}},"/api/v1/day/arbitrum/wallet-balance":{"get":{"operationId":"GET_api_day_arbitrum_wallet_balance","summary":"Arbitrum ETH + USDC wallet balances (read-only)","description":"DAY-242 public read-only balances. Query ?address=0x… (wallet only). On RPC fail each leg is N/A — never invent balances. No keys, no broadcast.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `arbitrumWalletBalance(address)`","tags":["chains"],"security":[],"parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"description":"EVM wallet address (DAY-294 identity = wallet only)"}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"arbitrumWalletBalance(address)"}},"/api/v1/day/arbitrum/cage":{"get":{"operationId":"GET_api_day_arbitrum_cage","summary":"Arbitrum cage profile (DAY-238)","description":"Policy/capability/6-action cage surface: ROUTE EXIT REBALANCE HARVEST COMPOUND AUTOPAY. Destination-locked; owner signs.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["chains","cage"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/arbitrum/cage/prepare":{"post":{"operationId":"POST_api_day_arbitrum_cage_prepare","summary":"Prepare Arbitrum cage action (owner-sign)","description":"PREPARE-ONLY. Never broadcasts by default. Identity = ownerWallet only. Destination-lock enforced.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["chains","cage"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["action","ownerWallet"],"properties":{"action":{"type":"string","description":"ROUTE | EXIT | REBALANCE | HARVEST | COMPOUND | AUTOPAY","examples":["ROUTE"]},"ownerWallet":{"type":"string","description":"0x EVM owner address (wallet-only identity)"},"venue":{"type":"string","examples":["morpho","aave-v3-arb"]},"amountMicros":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"fromVenue":{"type":"string"},"toVenue":{"type":"string"},"payee":{"type":"string","description":"Allowlisted payee label (not raw address)"},"grossYieldMicros":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"ownerOneShot":{"type":"boolean","default":false}}}}}}}},"/api/v1/day/base":{"get":{"operationId":"GET_api_day_base","summary":"Base expansion chain profile","description":"Base profile: role expansion_discovery, DayRegistry address, venues list. Phase-1 homes remain Sui+Solana. Not an execution home until write adapters + OPEN_YIELD_BASE_EXECUTION.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `baseProfile()`","tags":["chains"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"baseProfile()"}},"/api/v1/day/base/enablement":{"get":{"operationId":"GET_api_day_base_enablement","summary":"Base enablement gate","description":"DAY-230 truth: goNoGo=NO_GO_EXPANSION, executionEnabled=false today. live vs target blocks published. Do not treat DayRegistry live as execution-ready.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `baseEnablement()`","tags":["chains"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"baseEnablement()"}},"/api/v1/day/base/wallet-balance":{"get":{"operationId":"GET_api_day_base_wallet_balance","summary":"Base wallet balances (ETH + USDC)","description":"Public read-only. Query `address` (0x EVM). Returns ETH + Circle USDC. Fail-closed: RPC failure → null balances / 502, never fabricates amounts (DAY-235).\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `baseWalletBalance(address)`","tags":["chains","wallet"],"security":[],"parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"description":"Base wallet address"}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"baseWalletBalance(address)"}},"/api/v1/day/base/cage":{"get":{"operationId":"GET_api_day_base_cage","summary":"Base cage vocabulary (DAY-231)","description":"Public Base cage surface: 6 actions (ROUTE/EXIT/REBALANCE/HARVEST/COMPOUND/AUTOPAY), destination-lock invariants, prepare-only until OPEN_YIELD_BASE_EXECUTION. Day never holds keys.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["base","cage"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/wallets/{address}/base/cage":{"get":{"operationId":"GET_api_wallets_address_base_cage","summary":"Wallet Base cage state","description":"OwnerPolicy + capability + execution surface for a wallet on Base. Wallet-only identity.\n\n**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["base","cage","wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/wallets/{address}/base/policy":{"get":{"operationId":"GET_api_wallets_address_base_policy","summary":"Get Base OwnerPolicy","description":"Venue allowlist, payee allowlist, caps. Destination-lock mandatory.\n\n**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["base","cage","wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null},"put":{"operationId":"PUT_api_wallets_address_base_policy","summary":"Set Base OwnerPolicy (owner)","description":"Owner only. Never accepts private keys. Stake/Autopilot default OFF.\n\n**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["base","cage","wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"venueAllowlist":{"type":"array","items":{"type":"string"}},"payeeAllowlist":{"type":"array","items":{"type":"string"}},"caps":{"type":"object","properties":{"maxPerVenueMicros":{"type":"string"},"maxTotalMicros":{"type":"string"},"maxPerPayeePerHarvestMicros":{"type":"string"},"maxAutopayPct":{"type":"integer","minimum":0,"maximum":100}}},"protocolYieldSkimBps":{"type":"integer","minimum":0,"maximum":1000}}}}}}}},"/api/v1/wallets/{address}/base/capability":{"get":{"operationId":"GET_api_wallets_address_base_capability","summary":"Get Base cage capability","description":"Scoped revocable grant. Default revoked.\n\n**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["base","cage","wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/wallets/{address}/base/capability/grant":{"post":{"operationId":"POST_api_wallets_address_base_capability_grant","summary":"Grant Base cage capability (owner)","description":"Owner grants Autopilot/operator scopes: route, exit, rebalance, harvest, compound, autopay. Immediate revoke available. Day never holds keys.\n\n**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["base","cage","wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"scopes":{"type":"array","items":{"type":"string","enum":["route","exit","rebalance","harvest","compound","autopay"]}},"grantee":{"type":"string","description":"Operator label, default day-autopilot"}}}}}}}},"/api/v1/wallets/{address}/base/capability/revoke":{"post":{"operationId":"POST_api_wallets_address_base_capability_revoke","summary":"Revoke Base cage capability (owner)","description":"Immediate total revoke. Owner sovereignty.\n\n**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["base","cage","wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/wallets/{address}/base/action":{"post":{"operationId":"POST_api_wallets_address_base_action","summary":"Prepare Base cage action (owner-sign)","description":"PREPARE-ONLY until Base GO. One of ROUTE|EXIT|REBALANCE|HARVEST|COMPOUND|AUTOPAY. Destination-lock enforced: venues/payees allowlisted; EXIT to owner only; no arbitrary transfer. ownerMustSign always true; submitted always false in DAY-231.\n\n**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["base","cage","wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["ROUTE","EXIT","REBALANCE","HARVEST","COMPOUND","AUTOPAY"]},"amountMicros":{"type":"string","description":"Positive integer micros (optional for HARVEST)"},"venue":{"type":"string"},"fromVenue":{"type":"string"},"toVenue":{"type":"string"},"payee":{"type":"string","description":"Allowlisted payee id (AUTOPAY)"},"destination":{"type":"string","description":"Must be owner when set (EXIT/COMPOUND); free-form rejected"},"requireCapability":{"type":"boolean","default":false,"description":"If true, capability grant required (operate path)"}}}}}}}},"/api/v1/day/treasury":{"get":{"operationId":"GET_api_day_treasury","summary":"GET /api/day/treasury","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/network":{"get":{"operationId":"GET_api_day_network","summary":"GET /api/day/network","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/vaults":{"get":{"operationId":"GET_api_day_vaults","summary":"GET /api/day/vaults","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null},"post":{"operationId":"POST_api_day_vaults","summary":"POST /api/day/vaults","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/day/vaults/{id}":{"get":{"operationId":"GET_api_day_vaults_id_","summary":"GET /api/day/vaults/{id}","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/vaults/{id}/deposit":{"post":{"operationId":"POST_api_day_vaults_id_deposit","summary":"POST /api/day/vaults/{id}/deposit","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/day/vaults/{id}/withdraw":{"post":{"operationId":"POST_api_day_vaults_id_withdraw","summary":"POST /api/day/vaults/{id}/withdraw","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/day/vaults/{id}/strategy":{"post":{"operationId":"POST_api_day_vaults_id_strategy","summary":"POST /api/day/vaults/{id}/strategy","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/day/vaults/{id}/deploy":{"post":{"operationId":"POST_api_day_vaults_id_deploy","summary":"POST /api/day/vaults/{id}/deploy","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/day/vaults/{id}/undeploy":{"post":{"operationId":"POST_api_day_vaults_id_undeploy","summary":"POST /api/day/vaults/{id}/undeploy","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/day/vaults/{id}/harvest":{"post":{"operationId":"POST_api_day_vaults_id_harvest","summary":"POST /api/day/vaults/{id}/harvest","description":"**Auth:** `permissionless` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"permissionless","x-day-sdk":null}},"/api/v1/day/skills":{"get":{"operationId":"GET_api_day_skills","summary":"GET /api/day/skills","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/audits":{"get":{"operationId":"GET_api_day_audits","summary":"GET /api/day/audits","description":"**Auth:** `owner|keeper` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_keeper","x-day-sdk":null}},"/api/v1/day/solana/apys":{"get":{"operationId":"GET_api_day_solana_apys","summary":"GET /api/day/solana/apys","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/solana/wallet-balance":{"get":{"operationId":"GET_api_day_solana_wallet_balance","summary":"Solana wallet balances (SOL + USDC)","description":"Public read-only. Query `address` (base58). Fail-closed on RPC failure.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `solanaWalletBalance(address)`","tags":["chains","wallet"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"solanaWalletBalance(address)"}},"/api/v1/day/solana/stake/plan":{"post":{"operationId":"POST_api_day_solana_stake_plan","summary":"POST /api/day/solana/stake/plan","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/bridge/plan":{"post":{"operationId":"POST_api_day_bridge_plan","summary":"Mayan bridge plan","description":"DAY-251/254: prepare → owner_sign → delivery_tracking → credit_after_delivery. Protocol bridge fee 0 (venue fees pass-through). Risk disclosure always present. No team intermediate wallet. Lanes: Sui↔Sol, Base/Eth→Sui|Sol. Aliases: fromChain/toChain, amount, from/to.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `bridgePlan(body)`","tags":["bridge"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":"bridgePlan(body)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["sourceChain","destChain","amountMicros","sourceAddress","destinationAddress"],"properties":{"sourceChain":{"type":"string","enum":["sui","solana","base","ethereum"]},"destChain":{"type":"string","enum":["sui","solana"]},"amountMicros":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"sourceAddress":{"type":"string"},"destinationAddress":{"type":"string"},"ownerAddress":{"type":"string","description":"When set, destination must equal owner"},"minOutMicros":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"fromChain":{"type":"string","description":"Alias of sourceChain"},"toChain":{"type":"string","description":"Alias of destChain"},"amount":{"type":"string","description":"Alias of amountMicros"},"from":{"type":"string","description":"Alias of sourceAddress"},"to":{"type":"string","description":"Alias of destinationAddress"},"execute":{"type":"boolean","default":false}}}}}}}},"/api/v1/day/bridge/delivery":{"post":{"operationId":"POST_api_day_bridge_delivery","summary":"Bridge delivery credit gate","description":"DAY-251/253: Owner/keeper. Credit only after confirmed delivery + destination proof + minOut. Timeout/refund → rescue; statusSurface on response.\n\n**Auth:** `owner|keeper` via `X-API-Key` (never trust `X-Role`).","tags":["bridge"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_keeper","x-day-sdk":null}},"/api/v1/day/bridge/rescue":{"post":{"operationId":"POST_api_day_bridge_rescue","summary":"Failed-bridge rescue plan (owner destination only)","description":"DAY-253: Owner-only. Destination locked to owner — cannot redirect. Timeout/refund status surfaces. No ops custody.\n\n**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `bridgeRescuePlan(body)`","tags":["bridge"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":"bridgeRescuePlan(body)"}},"/api/v1/day/turbos/plan":{"post":{"operationId":"POST_api_day_turbos_plan","summary":"Sui Turbos swap plan (owner-sign)","description":"DAY-246 prepare-only Turbos plan. Same fee/slippage/idempotency bar as Jupiter. coinIn/coinOut + amountIn. Never custody.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["swaps"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["coinIn","coinOut","amountIn"],"properties":{"coinIn":{"type":"string"},"coinOut":{"type":"string"},"amountIn":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"ownerAddress":{"type":"string"},"slippageBps":{"type":"integer","minimum":0,"maximum":500,"default":100},"maxSlippageBps":{"type":"integer","minimum":0,"maximum":500,"default":500},"poolFeeBps":{"type":"integer","minimum":0,"maximum":10000},"protocolSwapFeeBps":{"type":"integer","minimum":0,"maximum":10000,"default":100},"quotedAmountOut":{"type":"string"},"idempotencyKey":{"type":"string"}}}}}}}},"/api/v1/day/jupiter/plan":{"post":{"operationId":"POST_api_day_jupiter_plan","summary":"Solana Jupiter swap plan (owner-sign)","description":"DAY-245 prepare-only Jupiter plan. protocolSwapFeeBps default 100 + pool fee line items. Slippage default 100 bps, max 500. Idempotency-Key / body.idempotencyKey (oy_jupiter_<wallet>_<nonce>). Never custody; ownerMustSign true.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["swaps"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["mintIn","mintOut","amountIn"],"properties":{"mintIn":{"type":"string","description":"Solana input mint"},"mintOut":{"type":"string","description":"Solana output mint"},"amountIn":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"ownerAddress":{"type":"string","description":"Owner wallet (signs on-chain)"},"slippageBps":{"type":"integer","minimum":0,"maximum":500,"default":100},"maxSlippageBps":{"type":"integer","minimum":0,"maximum":500,"default":500},"poolFeeBps":{"type":"integer","minimum":0,"maximum":10000,"description":"Override pool fee estimate"},"protocolSwapFeeBps":{"type":"integer","minimum":0,"maximum":10000,"default":100},"quotedAmountOut":{"type":"string","description":"Optional quote for minAmountOut"},"idempotencyKey":{"type":"string","description":"oy_jupiter_<walletAddress>_<nonce>"}}}}}}}},"/api/v1/day/evm/swap/plan":{"post":{"operationId":"POST_api_day_evm_swap_plan","summary":"Base/Arbitrum EVM swap plan (owner-sign)","description":"DAY-247 prepare-only EVM swap. Chains: base|arbitrum. Pairs: USDC↔native, stable↔stable (USDC↔USDT). protocolSwapFeeBps 100 + pool fees. Prepare-only until OPEN_YIELD_BASE_EXECUTION / OPEN_YIELD_ARBITRUM_EXECUTION GO. Never custody.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["swaps"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["chain","tokenIn","tokenOut","amountIn"],"properties":{"chain":{"type":"string","enum":["base","arbitrum"]},"tokenIn":{"type":"string","description":"Symbol (USDC, USDT, ETH, native, WETH) or 0x address"},"tokenOut":{"type":"string"},"amountIn":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"ownerAddress":{"type":"string"},"slippageBps":{"type":"integer","minimum":0,"maximum":500,"default":100},"maxSlippageBps":{"type":"integer","minimum":0,"maximum":500,"default":500},"poolFeeBps":{"type":"integer","minimum":0,"maximum":10000},"protocolSwapFeeBps":{"type":"integer","minimum":0,"maximum":10000,"default":100},"quotedAmountOut":{"type":"string"},"idempotencyKey":{"type":"string"}}}}}}}},"/api/v1/day/gas-sponsor/plan":{"post":{"operationId":"POST_api_day_gas_sponsor_plan","summary":"Gas sponsor sizing plan","description":"Prepare-only sizing when wallet has assets but no native gas.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["plans"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/harvest/batch":{"post":{"operationId":"POST_api_day_harvest_batch","summary":"POST /api/day/harvest/batch","description":"**Auth:** `owner|keeper` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_keeper","x-day-sdk":null}},"/api/v1/wallets/{address}/auto-yield":{"get":{"operationId":"GET_api_wallets_address_auto_yield","summary":"Get Auto Yield policy","description":"Auth: owner OR agent.\n\n**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `getAutoYield(walletAddress)`","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":"getAutoYield(walletAddress)"},"put":{"operationId":"PUT_api_wallets_address_auto_yield","summary":"Set Auto Yield policy (owner)","description":"Owner only. Stake default OFF.\n\n**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `setAutoYield(walletAddress, body)`","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":"setAutoYield(walletAddress, body)"}},"/api/v1/wallets/{address}/auto-yield/discover":{"post":{"operationId":"POST_api_wallets_address_auto_yield_discover","summary":"POST /api/wallets/{address}/auto-yield/discover","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/wallets/{address}/auto-yield/stake":{"post":{"operationId":"POST_api_wallets_address_auto_yield_stake","summary":"POST /api/wallets/{address}/auto-yield/stake","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/wallets/{address}/auto-yield/unstake":{"post":{"operationId":"POST_api_wallets_address_auto_yield_unstake","summary":"POST /api/wallets/{address}/auto-yield/unstake","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/wallets/{address}/auto-yield/survival":{"post":{"operationId":"POST_api_wallets_address_auto_yield_survival","summary":"POST /api/wallets/{address}/auto-yield/survival","description":"**Auth:** `keeper|owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"keeper","x-day-sdk":null}},"/api/v1/wallets/{address}/position":{"get":{"operationId":"GET_api_wallets_address_position","summary":"Position balances + estimates","description":"Auth: owner OR agent (wallet scope may apply). Returns liquid/staked micros, byChain, estimates.\n\n**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `getPosition(walletAddress)`","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":"getPosition(walletAddress)"}},"/api/v1/wallets/{address}/funding":{"get":{"operationId":"GET_api_wallets_address_funding","summary":"Funding snapshot","description":"Auth: owner OR agent.\n\n**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/wallets/{address}/preview":{"post":{"operationId":"POST_api_wallets_address_preview","summary":"Preview route (no mutate)","description":"Auth: owner OR agent. Never broadcasts. amountMicros preferred.\n\n**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `previewRoute(walletAddress, body)`","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":"previewRoute(walletAddress, body)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amountMicros":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"amount":{"type":"string","description":"Alias of amountMicros"},"stake":{"type":"boolean","default":false},"token":{"type":"string","enum":["USDC"],"default":"USDC"}}}}}}}},"/api/v1/wallets/{address}/route":{"post":{"operationId":"POST_api_wallets_address_route","summary":"Credit liquid deposit (owner)","description":"Owner only. Credits liquid balance offchain ledger for the wallet. Optional stake if Auto Yield enabled. Principal fee = 0. PREPARE/sign for on-chain still via strategy deposit plans.\n\n**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `routeYield(walletAddress, body)`\n\n**Idempotency:** honors `Idempotency-Key` header on money mutations.","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"Replay-safe money mutations. Shape: oy_<op>_<walletAddress>_<nonce>"}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":"routeYield(walletAddress, body)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"amountMicros":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"amount":{"type":"string"},"chain":{"type":"string","enum":["sui","solana"]},"stake":{"type":"boolean","default":false},"token":{"type":"string","enum":["USDC"]}}}}}}}},"/api/v1/wallets/{address}/harvest":{"post":{"operationId":"POST_api_wallets_address_harvest","summary":"Harvest yield (permissionless poke)","description":"Permissionless. Never invents yield: no stake → mode no_op_harvest reason no_staked_position. Live claim only with OPEN_YIELD_LIVE_CLAIM + real micros. Protocol skim 500 bps on yield only.\n\n**Auth:** `permissionless` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `harvest(walletAddress, body)`\n\n**Idempotency:** honors `Idempotency-Key` header on money mutations.","tags":["wallet"],"security":[],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"Replay-safe money mutations. Shape: oy_<op>_<walletAddress>_<nonce>"}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"permissionless","x-day-sdk":"harvest(walletAddress, body)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"compound":{"type":"boolean","default":true},"execute":{"type":"boolean","default":false},"chain":{"type":"string"},"venue":{"type":"string"}}}}}}}},"/api/v1/wallets/{address}/withdraw":{"post":{"operationId":"POST_api_wallets_address_withdraw","summary":"Withdraw principal (owner only)","description":"Owner only. Agent → 403. Principal fee = 0.\n\n**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `withdraw(walletAddress, body)`\n\n**Idempotency:** honors `Idempotency-Key` header on money mutations.","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"Replay-safe money mutations. Shape: oy_<op>_<walletAddress>_<nonce>"}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":"withdraw(walletAddress, body)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["amountMicros"],"properties":{"amountMicros":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]},"token":{"type":"string","enum":["USDC"]},"unstakeFirst":{"type":"boolean"}}}}}}}},"/api/v1/wallets/{address}/auto-pay":{"post":{"operationId":"POST_api_wallets_address_auto_pay","summary":"Configure Auto Pay (owner)","description":"Owner only. Post-fee residual split to targets.\n\n**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).\n\n**SDK:** `enableAutoPay(walletAddress, body)`\n\n**Idempotency:** honors `Idempotency-Key` header on money mutations.","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string"},"description":"Replay-safe money mutations. Shape: oy_<op>_<walletAddress>_<nonce>"}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":"enableAutoPay(walletAddress, body)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["enabled"],"properties":{"enabled":{"type":"boolean"},"percentage":{"type":"integer","minimum":0,"maximum":100},"targets":{"type":"array","items":{"type":"string"}},"frequency":{"type":"string"}}}}}}}},"/api/v1/wallets/{address}/rebalance":{"post":{"operationId":"POST_api_wallets_address_rebalance","summary":"POST /api/wallets/{address}/rebalance","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/wallets/{address}/autopilot/decide":{"post":{"operationId":"POST_api_wallets_address_autopilot_decide","summary":"Autopilot decide (within-chain only)","description":"DAY-255: decide() never emits cross-chain REBALANCE or bridge. Bridge is an explicit owner/agent Mayan plan leg only.\n\n**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["auto-yield"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/wallets/{address}/portfolio":{"get":{"operationId":"GET_api_wallets_address_portfolio","summary":"Wallet portfolio (balances by chain/venue)","description":"**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/wallets/{address}/performance":{"get":{"operationId":"GET_api_wallets_address_performance","summary":"Realized yield + APY performance for a wallet","description":"**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/wallets/batch/positions":{"post":{"operationId":"POST_api_wallets_batch_positions","summary":"Batch wallet positions (max 50)","description":"**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["wallet"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/day/venues/apy":{"get":{"operationId":"GET_api_day_venues_apy","summary":"Live-or-null APY table for every venue","description":"Never fabricates APY. Unavailable venues return null status.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["strategies"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/errors":{"get":{"operationId":"GET_api_day_errors","summary":"Error + blocker code catalog (DAY-291)","description":"Versioned enum of error codes and blocker reason codes. Renaming a code is breaking.\n\n**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/webhooks/events/types":{"get":{"operationId":"GET_api_day_webhooks_events_types","summary":"Supported webhook event types","description":"**Auth:** `public` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"public","x-day-sdk":null}},"/api/v1/day/webhooks/events":{"get":{"operationId":"GET_api_day_webhooks_events","summary":"Replay/list lifecycle events","description":"**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/day/webhooks":{"get":{"operationId":"GET_api_day_webhooks","summary":"List webhook subscriptions","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null},"post":{"operationId":"POST_api_day_webhooks","summary":"Register webhook subscription (returns secret once)","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/day/webhooks/emit":{"post":{"operationId":"POST_api_day_webhooks_emit","summary":"POST /api/day/webhooks/emit","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/day/webhooks/{id}/rotate":{"post":{"operationId":"POST_api_day_webhooks_id_rotate","summary":"POST /api/day/webhooks/{id}/rotate","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/day/webhooks/{id}":{"delete":{"operationId":"DELETE_api_day_webhooks_id_","summary":"DELETE /api/day/webhooks/{id}","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/characters/{id}/auto-yield":{"get":{"operationId":"GET_api_characters_id_auto_yield","summary":"GET /api/characters/{id}/auto-yield","description":"**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null},"put":{"operationId":"PUT_api_characters_id_auto_yield","summary":"PUT /api/characters/{id}/auto-yield","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/characters/{id}/auto-yield/discover":{"post":{"operationId":"POST_api_characters_id_auto_yield_discover","summary":"POST /api/characters/{id}/auto-yield/discover","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/characters/{id}/auto-yield/stake":{"post":{"operationId":"POST_api_characters_id_auto_yield_stake","summary":"POST /api/characters/{id}/auto-yield/stake","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/characters/{id}/auto-yield/unstake":{"post":{"operationId":"POST_api_characters_id_auto_yield_unstake","summary":"POST /api/characters/{id}/auto-yield/unstake","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/characters/{id}/auto-yield/survival":{"post":{"operationId":"POST_api_characters_id_auto_yield_survival","summary":"POST /api/characters/{id}/auto-yield/survival","description":"**Auth:** `keeper|owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"keeper","x-day-sdk":null}},"/api/v1/characters/{id}/day/position":{"get":{"operationId":"GET_api_characters_id_day_position","summary":"GET /api/characters/{id}/day/position","description":"**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/characters/{id}/day/funding":{"get":{"operationId":"GET_api_characters_id_day_funding","summary":"GET /api/characters/{id}/day/funding","description":"**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/characters/{id}/day/preview":{"post":{"operationId":"POST_api_characters_id_day_preview","summary":"POST /api/characters/{id}/day/preview","description":"**Auth:** `owner|agent` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner_or_agent","x-day-sdk":null}},"/api/v1/characters/{id}/day/route":{"post":{"operationId":"POST_api_characters_id_day_route","summary":"POST /api/characters/{id}/day/route","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/characters/{id}/day/harvest":{"post":{"operationId":"POST_api_characters_id_day_harvest","summary":"POST /api/characters/{id}/day/harvest","description":"**Auth:** `permissionless` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"permissionless","x-day-sdk":null}},"/api/v1/characters/{id}/day/withdraw":{"post":{"operationId":"POST_api_characters_id_day_withdraw","summary":"POST /api/characters/{id}/day/withdraw","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/characters/{id}/day/auto-pay":{"post":{"operationId":"POST_api_characters_id_day_auto_pay","summary":"POST /api/characters/{id}/day/auto-pay","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/api/v1/characters/{id}/day/rebalance":{"post":{"operationId":"POST_api_characters_id_day_rebalance","summary":"POST /api/characters/{id}/day/rebalance","description":"**Auth:** `owner` via `X-API-Key` (never trust `X-Role`).","tags":["api"],"security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success (or prepared plan / blocked plan with 200 + blockers[])","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"401":{"description":"Unknown API key","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"403":{"description":"Missing key or insufficient role","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}}}}}},"x-day-auth":"owner","x-day-sdk":null}},"/openapi.json":{"get":{"summary":"OpenAPI 3.1 document","tags":["meta"],"security":[],"x-day-auth":"public","responses":{"200":{"description":"OpenAPI 3.1 JSON","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Verified key from DAY_OWNER_API_KEYS / DAY_AGENT_API_KEYS / DAY_KEEPER_API_KEYS. Dev keys day-dev-* only when DAY_AUTH_ALLOW_DEV_KEYS=1 and non-production."}},"schemas":{"ErrorEnvelope":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Machine code","enum":["UNAUTHORIZED","INVALID_API_KEY","CHARACTER_SCOPE","NOT_FOUND","RATE_LIMITED","INTERNAL_ERROR","BAD_REQUEST","MISSING_FORM_ID","FORM_NOT_FOUND","FORM_NOT_READY","INSUFFICIENT_LIQUID"]},"message":{"type":"string"}}},"MicrosString":{"type":"string","pattern":"^\\d+$","description":"Non-negative integer micros as a decimal string (USDC 6dp). Never floats.","examples":["1000000"]}}},"x-day":{"schemaVersion":"day-openapi.v1","apiMajor":"v1","apiVersion":"1.0.0","basePathV1":"/api/v1","authModel":"X-API-Key","ignoredHeaders":["X-Role"],"fee":{"principalBps":0,"yieldSkimBps":500,"swapBps":100,"gasSponsorBps":100},"strategyId":"bare venueId (suilend, kamino, aave-v3); form- prefix accepted as alias","phase1Limitations":["Many venues are mock-ready: read_apy + prepare write paths; owner must sign on-chain","Harvest does not invent yield; no stake → no_op_harvest","Live claim requires OPEN_YIELD_LIVE_CLAIM + real claimable micros","Broadcast requires OPEN_YIELD_ALLOW_BROADCAST + execution enabled"],"routeCount":115}}