跳至主要內容

Get OpenAPI document – Earn API

更新於
Jul 31, 2026

概覽

This document as JSON, so the full contract can be fetched from the API itself.

Endpoint

GET https://earn-api.quicknode.dev/functions/v1/api/v1/openapi.json

Authorization

Include the published apikey header. This read request is public and does not require a SIWE signature.

參數

This endpoint does not accept path or query parameters.

Example request

curl --request GET \
--url 'https://earn-api.quicknode.dev/functions/v1/api/v1/openapi.json' \
--header 'Accept: application/json' \
--header 'apikey: <EARN_PUBLIC_API_KEY>'

回應

The response is the complete OpenAPI 3.1 contract used by the Earn API reference.

領域類型Required說明
openapi字串是的OpenAPI specification version used by the document.
資訊物件是的API metadata, including its title, version, description, contact, and license.
info.title字串是的Display name of the API.
info.version字串是的Version of the Earn API contract.
info.summary字串是的Short summary of the API.
info.description字串是的Detailed API lifecycle, authorization, units, and stability information.
info.contact物件是的Name and URL of the API contact.
info.license物件是的Name and URL of the license that applies to the API.
serversarray<object>是的Server definitions used to construct API request URLs.
servers[].url字串是的Base URL of an API server.
servers[].description字串是的Environment represented by the server URL.
securityarray<object>是的Global security requirements applied to API operations.
security[].apikey陣列是的Declares the global `apikey` security scheme requirement.
tagsarray<object>是的Resource groups used to organize operations in the API reference.
tags[].name字串是的Name of an API resource group.
tags[].description字串是的Description of the operations included in the resource group.
paths物件是的Documented API paths and their supported HTTP operations.
paths.{path}.{method}物件Operation definition containing its ID, rate limit, tags, summary, description, parameters, request body, and responses where applicable.
元件物件是的Reusable schemas, parameters, responses, examples, and security schemes.
components.schemas物件是的Reusable request and response schemas referenced by operations.
components.parameters物件是的Reusable path and query parameter definitions.
components.responses物件是的Reusable HTTP response definitions.
components.examples物件是的Reusable request and response examples.
components.securitySchemes物件是的Definition of the `apikey` header security scheme.

Example response excerpt

The full response contains every path and reusable component. This excerpt shows selected top-level values from the response:

{
"openapi": "3.1.0",
"info": {
"title": "Quicknode Earn Public API",
"version": "1.3.0",
"summary": "HTTP API to drive Earn strategies end to end.",
"contact": {
"name": "Quicknode Earn",
"url": "https://earn.quicknode.com"
},
"license": {
"name": "Proprietary",
"url": "https://www.quicknode.com/terms-of-service"
}
},
"servers": [
{
"url": "https://earn-api.quicknode.dev/functions/v1/api",
"description": "Production"
}
],
"security": [
{
"apikey": []
}
],
"tags": [
{
"name": "Discovery",
"description": "Machine-readable API index and the self-served OpenAPI document."
}
]
}

HTTP responses

狀態說明
200The OpenAPI 3.1 document.
429Rate limit exceeded. `Retry-After` (seconds) tells you when to retry. Reads, feedback, and push writes are keyed per IP; create/update/delete are keyed per wallet+IP; deposit/withdraw/claim calldata is keyed per strategy+IP.
OpenAPI source

This page is based on operation getOpenapiDocumentEarn OpenAPI 3.1 specification.