Spiral Stake Ops API
Internal monitoring API — Authorization: Bearer on the `ops` tier.
Operations 2
GET
/v1/ops/portfolios
Every wallet's positions on a chain, shaped exactly as the app's Portfolio page…
#
Internal monitoring API — Authorization: Bearer on the `ops` tier.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/spiralstake-xyz:spiralstake-xyz-ops-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Spiral Stake — Read API (v1) Ops API
version: 0.1.0
description: Read-only composition authority for Spiral Stake strategy data. Serves the frozen /strategies contract (agents + app) plus the full app read surface. All numbers are composed from warm cache; a stale/failed upstream serves last-good with a visible stale age.
servers:
- url: https://api.spiralstake.xyz
description: Production
- url: http://localhost:5001
description: Local
tags:
- name: Ops
description: 'Internal monitoring API — Authorization: Bearer on the `ops` tier.'
paths:
/v1/ops/portfolios:
get:
tags:
- Ops
summary: Every wallet's positions on a chain, shaped exactly as the app's Portfolio page…
description: 'Internal monitoring surface. Requires a key on the `ops` tier. Per wallet: the header totals, open loops, open equity vaults, closed/liquidated positions (closed vaults re-skinned as the vault), and dashboard rows with nothing behind them on chain. Values are unformatted decimal strings (format with the app''s displayTokenAmount). `dbDrift` flags dashboard/chain disagreements the app silently self-heals. Cached 60s; `stale`/`degraded` flag older numbers.'
security:
- bearerAuth: []
parameters:
- name: chainId
in: query
required: false
schema:
type: integer
enum:
- 1
- 4663
default: 1
description: Chain to target — 1 = Ethereum (default), 4663 = Robinhood Chain.
responses:
'200':
description: Portfolios
content:
application/json:
schema:
type: object
properties:
chainId:
type: integer
asOf:
type: string
stale:
type: boolean
degraded:
type: boolean
computedAt:
type: string
counts:
type: object
users:
type: array
items:
type: object
'400':
description: Invalid input
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
correlationId:
type: string
details: {}
required:
- code
- message
- correlationId
'401':
description: Missing/invalid API key
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
correlationId:
type: string
details: {}
required:
- code
- message
- correlationId
'429':
description: Rate limited
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
correlationId:
type: string
details: {}
required:
- code
- message
- correlationId
'503':
description: Transient (stale data / no route / RPC) — retry
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
correlationId:
type: string
details: {}
required:
- code
- message
- correlationId
operationId: getV1OpsPortfolios
x-operation-id-source: derived
/v1/ops/portfolio/{address}:
get:
tags:
- Ops
summary: One wallet's portfolio, app-shaped, computed live
security:
- bearerAuth: []
parameters:
- name: address
in: path
required: true
schema:
type: string
pattern: ^0x[0-9a-fA-F]{40}$
description: Wallet address.
- name: chainId
in: query
required: false
schema:
type: integer
enum:
- 1
- 4663
default: 1
description: Chain to target — 1 = Ethereum (default), 4663 = Robinhood Chain.
responses:
'200':
description: Portfolio
content:
application/json:
schema:
type: object
'400':
description: Invalid input
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
correlationId:
type: string
details: {}
required:
- code
- message
- correlationId
'401':
description: Missing/invalid API key
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
correlationId:
type: string
details: {}
required:
- code
- message
- correlationId
'429':
description: Rate limited
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
correlationId:
type: string
details: {}
required:
- code
- message
- correlationId
'503':
description: Transient (stale data / no route / RPC) — retry
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
correlationId:
type: string
details: {}
required:
- code
- message
- correlationId
operationId: getV1OpsPortfolioByAddress
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Partner API key: `Authorization: Bearer <key>`.'