Skip to main content

API

Earn has a public HTTP API, so AI agents and apps can do what the app does without a browser.

What you can do

The API lets you:

  • Read vaults, strategies, and positions
  • Create a new strategy
  • Close an existing strategy
  • Get transaction data for approvals, deposits, and withdrawals

How authorization works

Earn stays non-custodial. The API only ever returns unsigned transaction data for your wallet to sign and broadcast; it never holds your keys or moves funds.

  • Reads are open, no auth required
  • Writes (create, close) require a Sign-In-with-Ethereum (SIWE) signature
  • The wallet that signs becomes the strategy owner
  • No API keys or logins needed

API reference

Full API Reference
Interactive docs with all endpoints

The machine-readable OpenAPI 3.1 spec is available at GET /v1/openapi.json for generating your own client tools.

Where to go next