Skip to content

API Overview

The zkde.fi API is the programmatic surface of the proof pipeline. Every endpoint that triggers execution passes through the circuit screening and policy gate layer before returning a calldata response. Read-only endpoints return current proof state, reputation state, and settlement status. Mutation endpoints that trigger capital movement require valid proof context.

Live verification of the full API surface: zkde.fi/test

Base URLs

  • App: https://zkde.fi
  • Core API host: https://zkde.fi/api/v1
  • zkdefi namespace prefix: under core host, use /zkdefi/{resource}

Authentication Model (Grounded)

Wallet-owner header

  • Header: X-Wallet-Address
  • Used on protected user-mutating paths where server enforces caller-address match.

Admin header

  • Header: X-Admin-Key
  • Used on admin-only/destructive operations.

Important note

Not every POST/PUT endpoint is currently wallet-header-protected by dependency wiring, so integrators should treat auth as endpoint-specific and follow this reference plus release notes.

flowchart LR
  C[Client] --> R{Endpoint type}
  R -->|Public/Read| P[No auth header required]
  R -->|User-protected write| W[X-Wallet-Address]
  R -->|Admin-only| A[X-Admin-Key]

Core Health And Metadata

MethodPathPurposeTypical auth
GET/healthService livenessPublic
GET/api/v1/phase4a/contractsContract address metadataPublic

Identity, Reputation, Passport, Compliance

MethodPathPurposeTypical auth
GET/api/v1/zkdefi/reputation/tiersTier definitionsPublic
GET/api/v1/zkdefi/reputation/user/{address}User reputation snapshotPublic
GET/api/v1/zkdefi/reputation/proofs/{address}FICO pack proof status (all 5 proofs)Public
POST/api/v1/zkdefi/reputation/upgrade-tierTier upgrade requestApp flow
POST/api/v1/zkdefi/reputation/proof/solvencyGenerate solvency proofApp flow
POST/api/v1/zkdefi/reputation/proof/risk-passportGenerate risk passport tier proofApp flow
POST/api/v1/zkdefi/reputation/proof/performanceGenerate trader performance proofApp flow
POST/api/v1/zkdefi/reputation/proof/strategy-integrityGenerate strategy integrity proofApp flow
POST/api/v1/zkdefi/reputation/proof/execution-integrityGenerate execution integrity proofApp flow
GET/api/v1/zkdefi/risk_passport/user/{address}User passportPublic
GET/api/v1/zkdefi/risk_passport/pool/{pool_id}Pool passportPublic
GET/api/v1/zkdefi/risk_profile/{address}Aggregated risk profile bundlePublic
GET/api/v1/zkdefi/compliance/profiles/{user_address}Compliance profilesPublic
GET/api/v1/zkdefi/linked_addresses/{address}Linked-address mapPublic
PUT/api/v1/zkdefi/linked_addressesUpdate linked addressesApp flow

Onboarding And Agent Registration

MethodPathPurposeTypical auth
POST/api/v1/zkdefi/onboarding/generate_authorizationGenerate onboarding authorization payloadApp flow
POST/api/v1/zkdefi/onboarding/submit_agentSubmit onboarding/agent registrationApp flow
GET/api/v1/zkdefi/onboarding/status/{user_address}Onboarding statusPublic

Orchestration (Deploy And Utilities)

MethodPathPurposeTypical auth
POST/api/v1/zkdefi/orchestration/deployBuild/record deploy orchestration flowApp flow
GET/api/v1/zkdefi/orchestration/receipt/{receipt_id}Read deploy receiptPublic
POST/api/v1/zkdefi/orchestration/receipt/confirmAttach tx hash to receiptApp flow
POST/api/v1/zkdefi/orchestration/swap-strk-to-usdcBuild STRK to USDC calldataApp flow
POST/api/v1/zkdefi/orchestration/faucet/ethTestnet ETH faucet utilityApp flow

Session Keys And Rebalancer

MethodPathPurposeTypical auth
POST/api/v1/zkdefi/session_keys/grantBuild session grant requestApp flow
POST/api/v1/zkdefi/session_keys/grant/confirmConfirm granted sessionApp flow
POST/api/v1/zkdefi/session_keys/revokeBuild session revoke requestApp flow
POST/api/v1/zkdefi/session_keys/revoke/confirmConfirm revokeApp flow
GET/api/v1/zkdefi/session_keys/list/{owner_address}List sessionsPublic
POST/api/v1/zkdefi/rebalancer/proposeCreate rebalance proposalApp flow
POST/api/v1/zkdefi/rebalancer/checkRun risk/anomaly checksApp flow
POST/api/v1/zkdefi/rebalancer/advisory-checkNon-blocking policy checkApp flow
POST/api/v1/zkdefi/rebalancer/preparePrepare execution contextApp flow
POST/api/v1/zkdefi/rebalancer/executeExecute rebalanceApp flow
POST/api/v1/zkdefi/rebalancer/autonomous/startStart autonomous modeX-Wallet-Address
POST/api/v1/zkdefi/rebalancer/autonomous/stopStop autonomous modeX-Wallet-Address
POST/api/v1/zkdefi/rebalancer/autonomous/pause/{user_address}Pause autonomous modeX-Wallet-Address
POST/api/v1/zkdefi/rebalancer/autonomous/resume/{user_address}Resume autonomous modeX-Wallet-Address
GET/api/v1/zkdefi/rebalancer/autonomous/allFleet statusX-Admin-Key

Auth Session (Dual-Wallet Bind)

MethodPathPurposeTypical auth
POST/api/v1/zkdefi/auth/session/startStart dual-wallet auth sessionApp flow
POST/api/v1/zkdefi/auth/session/completeComplete dual-wallet auth sessionApp flow
GET/api/v1/zkdefi/auth/session/{starknet_address}Read active auth sessionPublic
DELETE/api/v1/zkdefi/auth/session/{starknet_address}Revoke active auth sessionApp flow

Trade, Market, And Ekubo

MethodPathPurposeTypical auth
GET/api/v1/zkdefi/market/surfaceMarket surface bundlePublic
GET/api/v1/zkdefi/ekubo/capabilitiesEkubo capability metadataPublic
GET/api/v1/zkdefi/ekubo/positionsEkubo position viewApp flow
POST/api/v1/zkdefi/ekubo/swap/quoteSwap quoteApp flow
POST/api/v1/zkdefi/ekubo/swap/buildBuild swap txApp flow
POST/api/v1/zkdefi/ekubo/lp/add/buildBuild LP add txApp flow
POST/api/v1/zkdefi/ekubo/lp/remove/buildBuild LP remove txApp flow
POST/api/v1/zkdefi/ekubo/lp/collect-fees/buildBuild fee-collect txApp flow
POST/api/v1/zkdefi/ekubo/lp/recommendLP recommendationApp flow

Reputation-Based Lending

MethodPathPurposeTypical auth
GET/api/v1/zkdefi/lending/poolLending pool statsPublic
GET/api/v1/zkdefi/lending/positions/{address}User lending positionsPublic
POST/api/v1/zkdefi/lending/supplyBuild supply calldataApp flow
POST/api/v1/zkdefi/lending/borrowBuild borrow calldata (attestation-based)App flow
POST/api/v1/zkdefi/lending/repayBuild repay calldataApp flow
POST/api/v1/zkdefi/lending/withdrawBuild withdraw calldataApp flow
GET/api/v1/zkdefi/lending/health/{address}Health factor contextPublic
POST/api/v1/zkdefi/lending/proof/credit-eligibilityCredit eligibility proof generationApp flow

zkML Inference And Circuit Scan

MethodPathPurposeTypical auth
POST/api/v1/zkdefi/zkml/scanScan model/circuit inputs and return zkML risk signalsApp flow

Privacy And State

MethodPathPurposeTypical auth
POST/api/v1/zkdefi/full_privacy/deposit/generate_commitmentPrivacy commitment generationApp flow
POST/api/v1/zkdefi/full_privacy/deposit/register_commitmentRegister commitmentApp flow
POST/api/v1/zkdefi/full_privacy/withdraw/generate_proofWithdrawal proof generationApp flow
GET/api/v1/zkdefi/full_privacy/merkle/rootMerkle root statePublic
POST/api/v1/zkdefi/full_privacy/merkle/resetMerkle resetX-Admin-Key
POST/api/v1/zkdefi/privacy/depositUnified privacy depositApp flow
POST/api/v1/zkdefi/privacy/withdrawUnified privacy withdrawApp flow
GET/api/v1/zkdefi/wallet/state/{user_address}Wallet state snapshotPublic
POST/api/v1/zkdefi/execution/preflightPreflight execution checksApp flow
POST/api/v1/zkdefi/state/manual-wallet-eventManual wallet event injectionApp flow

Policy, Relayer, And Ledger

MethodPathPurposeTypical auth
GET/api/v1/zkdefi/policy/vault/{user_address}Read vault policyPublic
PUT/api/v1/zkdefi/policy/vault/{user_address}Update vault policyX-Wallet-Address
POST/api/v1/zkdefi/policy/compileCompile policyApp flow
POST/api/v1/zkdefi/policy/reset/{user_address}Reset policy stateX-Admin-Key
POST/api/v1/zkdefi/relayer/requestRelay requestApp flow
GET/api/v1/zkdefi/relayer/pending/{address}Pending relay queuePublic
GET/api/v1/zkdefi/ledger/transfersLedger transfersPublic
POST/api/v1/zkdefi/ledger/demo-creditDemo credit pathApp flow

Integrator APIs Outside /zkdefi

MethodPathPurposeTypical auth
POST/api/v1/identity/credit-proofIdentity credit proof flowApp flow
GET/api/v1/identity/commitment/{commitment}Commitment lookupPublic
GET/api/v1/agents/models/listModel catalogPublic
POST/api/v1/agents/createCreate agent entryApp flow
GET/api/v1/strategies/price/livePrice feedPublic
POST/api/v1/strategies/recommendStrategy recommendationApp flow
POST/api/v1/deployments/executeDeployment executionApp flow
POST/api/v1/vault/executeVault execution pathApp flow

Experimental Scope (Changing Faster)

  • GET /api/v1/phase4a/status
  • GET /api/v1/phase4a/orchestrated/dashboard
  • GET /api/v1/phase4a/rebalancer/stats
  • GET /api/v1/vault-live/positions/{user_address}
  • POST /api/v1/vault-live/rebalance
  • POST /api/v1/vault-live/execute
  • GET /api/v1/zkdefi/sim/health
  • GET /api/v1/zkdefi/sim/state
  • GET /api/v1/zkdefi/sim/events
  • GET /api/v1/zkdefi/sim/contracts

Treat these as version-sensitive and monitor release notes before depending on response contracts.

These docs describe technical capabilities and API behavior only. They are not legal advice, not investment advice, and not a representation that any user automatically meets regulatory requirements in any jurisdiction.

Next: Developers | Architecture summary | Troubleshooting

Built by Obsqra Labs