Ir diretamente para o conteúdo principal

Get OpenAPI document – Earn API

Atualizado em
Jul 31, 2026

Visão geral

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.

Parâmetros

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>'

Resposta

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

FieldTipoRequiredDescrição
openapicadeia de caracteresSimOpenAPI specification version used by the document.
informaçõesobjetoSimAPI metadata, including its title, version, description, contact, and license.
info.titlecadeia de caracteresSimDisplay name of the API.
info.versioncadeia de caracteresSimVersion of the Earn API contract.
info.summarycadeia de caracteresSimShort summary of the API.
info.descriptioncadeia de caracteresSimDetailed API lifecycle, authorization, units, and stability information.
info.contactobjetoSimName and URL of the API contact.
info.licenseobjetoSimName and URL of the license that applies to the API.
serversarray<object>SimServer definitions used to construct API request URLs.
servers[].urlcadeia de caracteresSimBase URL of an API server.
servers[].descriptioncadeia de caracteresSimEnvironment represented by the server URL.
securityarray<object>SimGlobal security requirements applied to API operations.
security[].apikeymatrizSimDeclares the global `apikey` security scheme requirement.
tagsarray<object>SimResource groups used to organize operations in the API reference.
tags[].namecadeia de caracteresSimName of an API resource group.
tags[].descriptioncadeia de caracteresSimDescription of the operations included in the resource group.
pathsobjetoSimDocumented API paths and their supported HTTP operations.
paths.{path}.{method}objetoNãoOperation definition containing its ID, rate limit, tags, summary, description, parameters, request body, and responses where applicable.
componentesobjetoSimReusable schemas, parameters, responses, examples, and security schemes.
components.schemasobjetoSimReusable request and response schemas referenced by operations.
components.parametersobjetoSimReusable path and query parameter definitions.
components.responsesobjetoSimReusable HTTP response definitions.
components.examplesobjetoSimReusable request and response examples.
components.securitySchemesobjetoSimDefinition 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

StatusDescrição
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 getOpenapiDocument in the Earn OpenAPI 3.1 specification.