Spiral Stake Public API
Open read endpoints — no key required.
Open read endpoints — no key required.
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-public-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) Public 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: Public
description: Open read endpoints — no key required.
paths:
/v1/strategies:
get:
tags:
- Public
summary: All strategies (frozen contract)
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: Strategies envelope
content:
application/json:
schema:
type: object
properties:
asOf:
type: string
format: date-time
chainId:
type: integer
count:
type: integer
strategies:
type: array
items:
type: object
description: Frozen /strategies contract (v1). Raw facts; the only verdict is under spiralHints.
properties:
id:
type: string
description: Morpho market id (0x + 64 hex).
chainId:
type: integer
correlated:
type: boolean
curator:
type: string
nullable: true
example: Longbow
description: 'Who curates the market the collateral is posted on. Present only on partner-curated markets (Longbow / NetNet Credit: the equity vaults'' stock markets and Longbow''s perp markets) — distinguishes two vaults on the same ticker. Absent on Spiral''s own markets.'
collateral:
type: object
description: Collateral token facts; `description` is the curated plain-English account of what it is and how it earns.
loan:
type: object
collateralApyPct:
type: string
collateralApySource:
type: string
enum:
- pendle
- defillama
- royco
- stablewatch
- onchain
- none
yieldSustainabilityPct:
type: object
pointsIncentive:
type: object
nullable: true
description: 'Off-chain points program on the collateral (e.g. Tori Cores). Not a yield. Accrues to the position proxy on the leveraged balance: effective = perDayPerCollateralToken x leverage x tokens.'
properties:
program:
type: string
example: Tori Cores
perDayPerCollateralToken:
type: number
example: 5
borrowApyPct:
type: string
quarterlyBorrowApyPct:
type: string
borrowIncentive:
type: object
nullable: true
netBorrowApyPct:
type: string
supplyUsd:
type: number
liquidityUsd:
type: number
publicAllocatorLiquidityUsd:
type: number
maxLeverage:
type: string
utilizationPct:
type: string
leverageLadder:
type: array
items:
type: object
properties:
leverage:
type: string
example: '3.0'
ltvPct:
type: string
example: '66.7'
leverageApyPct:
type: string
example: '18.96'
required:
- leverage
- ltvPct
- leverageApyPct
defaultLeverage:
type: object
properties:
leverage:
type: string
example: '3.0'
ltvPct:
type: string
example: '66.7'
leverageApyPct:
type: string
example: '18.96'
required:
- leverage
- ltvPct
- leverageApyPct
historicalLeverageApyPct:
type: object
ltvPct:
type: object
properties:
liquidation:
type: string
max:
type: string
oracle:
type: object
exitLiquidity:
type: object
noSwapRoute:
type: boolean
spiralHints:
type: object
description: Optional, namespaced Spiral opinion; carries its thresholds.
freshness:
type: object
properties:
borrow:
type: object
properties:
asOf:
type: string
format: date-time
staleAfterSec:
type: integer
staleForSec:
type: integer
description: Seconds past the freshness budget; present only when stale.
required:
- asOf
- staleAfterSec
collateralApy:
type: object
properties:
asOf:
type: string
format: date-time
staleAfterSec:
type: integer
staleForSec:
type: integer
description: Seconds past the freshness budget; present only when stale.
required:
- asOf
- staleAfterSec
exitLiquidity:
type: object
properties:
asOf:
type: string
format: date-time
staleAfterSec:
type: integer
staleForSec:
type: integer
description: Seconds past the freshness budget; present only when stale.
required:
- asOf
- staleAfterSec
links:
type: object
required:
- id
- chainId
- correlated
- collateral
- loan
- collateralApyPct
- collateralApySource
- borrowApyPct
- netBorrowApyPct
- maxLeverage
- leverageLadder
- defaultLeverage
- ltvPct
- exitLiquidity
- noSwapRoute
- freshness
'503':
description: Not ready
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: getV1Strategies
x-operation-id-source: derived
/v1/tvl:
get:
tags:
- Public
summary: Protocol TVL across all supported chains
description: Aggregated over every open Spiral position (each held by a UserProxy on a Morpho Blue market). `tvlUsd` = net user equity (collateral − debt) — the figure DefiLlama lists as TVL; `grossTvlUsd` = total looped collateral; `borrowedUsd` = total debt owed to Morpho. `tvlUsd + borrowedUsd = grossTvlUsd`. `positions` counts open positions with non-zero collateral and `users` the distinct wallets holding one. Top-level `asOf` is the oldest chain snapshot and `stale` is true if any chain is stale. Chains not yet computed are omitted; 503 until at least one is.
responses:
'200':
description: TVL envelope
content:
application/json:
schema:
type: object
properties:
asOf:
type: string
format: date-time
description: Oldest chain snapshot.
stale:
type: boolean
description: True if any chain's snapshot is past its freshness budget.
total:
type: object
properties:
tvlUsd:
type: number
description: Net user equity in USD (collateral − debt); the DefiLlama TVL. 2 decimals.
grossTvlUsd:
type: number
description: Total looped collateral in USD. 2 decimals.
borrowedUsd:
type: number
description: Total debt owed to Morpho in USD. 2 decimals.
positions:
type: integer
description: Open positions with non-zero collateral.
users:
type: integer
description: Distinct users with at least one such position.
required:
- tvlUsd
- grossTvlUsd
- borrowedUsd
- positions
- users
chains:
type: array
items:
type: object
properties:
chainId:
type: integer
asOf:
type: string
format: date-time
stale:
type: boolean
tvlUsd:
type: number
description: Net user equity in USD (collateral − debt); the DefiLlama TVL. 2 decimals.
grossTvlUsd:
type: number
description: Total looped collateral in USD. 2 decimals.
borrowedUsd:
type: number
description: Total debt owed to Morpho in USD. 2 decimals.
positions:
type: integer
description: Open positions with non-zero collateral.
users:
type: integer
description: Distinct users with at least one such position.
required:
- chainId
- asOf
- stale
- tvlUsd
- grossTvlUsd
- borrowedUsd
- positions
- users
required:
- asOf
- stale
- total
- chains
'503':
description: Not ready (no chain computed yet)
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: getV1Tvl
x-operation-id-source: derived
/v1/prices:
get:
tags:
- Public
summary: Latest token/loan USD prices (address → price)
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: OK
operationId: getV1Prices
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'Partner API key: `Authorization: Bearer <key>`.'