Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.turtle.xyz/llms.txt

Use this file to discover all available pages before exploring further.

The Turtle Earn API publishes an OpenAPI 3.0 specification that you can use for client generation, API testing, and documentation tooling. Raw spec URL: https://earn.turtle.xyz/docs/openapi.json

What you can do with it

  • Import into Postman or Insomnia for interactive API testing
  • Generate TypeScript or Python clients with openapi-generator
  • Use with Swagger UI locally for browsing endpoints

Generate a TypeScript client

npx @openapitools/openapi-generator-cli generate \
  -i https://earn.turtle.xyz/docs/openapi.json \
  -g typescript-fetch \
  -o ./turtle-client
The spec is generated from the live API. Three fields confirmed in the raw spec are now documented on the Opportunities page: minDepositAmountUsd, swapDirectEnabled, swapRouteEnabled.