> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yield.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# SKILL

> Retrieve metadata, reward rates, tokens, validators, entry and exit rules, and requirements for one Yield.xyz yield. Use when the user asks about a particular yield's details, rates, validators, argument requirements, or KYC.

# Get yield info

Read one yield's metadata, mechanics, and status before showing it to a user or building an action.

## When to use

* Details about a specific yield (for example, "Tell me about Lido ETH staking")
* Current APY or APR, and where the rate comes from
* Validators available for a staking yield
* The arguments needed to enter, exit, or manage a yield
* Cooldown or warmup periods, entry limits, or KYC requirements
* Reward-rate or TVL history

## Authentication and host

Send the project API key in the `x-api-key` header.

```
https://api.yield.xyz/v1
```

## Step 1: Get the yield

`GET /v1/yields/{yieldId}`

```bash theme={null}
curl "https://api.yield.xyz/v1/yields/ethereum-eth-lido-staking" \
  -H "x-api-key: $YIELD_API_KEY"
```

The yield must be enabled for the project. A yield that is not enabled or does not exist returns `400`. Use `find-yields` to see the IDs the project can call.

Key fields:

| Field | Description |
| - | - |
| `id`, `network`, `providerId` | Identity of the yield. |
| `token`, `inputTokens`, `outputToken` | Canonical deposit token, accepted input tokens, and the receipt token (if any). |
| `rewardRate` | `{ total, rateType, components[] }`. `total` is a percentage; `rateType` is `APR` or `APY`. Each component has `rate`, `rateType`, `token`, `yieldSource`, and optional `description`. |
| `status.enter`, `status.exit` | Whether deposits and withdrawals are open. |
| `metadata` | `name`, `description`, `documentation`, `underMaintenance`, `deprecated`. |
| `mechanics.type` | Yield type, such as `staking`, `lending`, `vault`. |
| `mechanics.cooldownPeriod`, `warmupPeriod`, `lockupPeriod` | Durations as `{ seconds }`, when present. |
| `mechanics.requiresValidatorSelection` | Whether enter needs a validator. |
| `mechanics.entryLimits` | Minimum and maximum entry amounts, when present. |
| `mechanics.arguments` | Argument schemas: `enter`, `exit`, `manage` (keyed by action type), and `balance`. Each schema lists `fields[]` with `name`, `type`, `required`, and `options`. |
| `mechanics.requirements` | `kycRequired` and public KYC criteria. |
| `prime` | Whether the yield meets the Prime quality criteria. |

Read reward and incentive tokens from `rewardRate.components[].token`. Do not look for a `rewardTokens` field.

## Step 2: Get validators (validator yields only)

`GET /v1/yields/{yieldId}/validators`

| Parameter | Description |
| - | - |
| `offset`, `limit` | Pagination. |
| `preferred` | `true` for preferred validators only. |
| `name`, `address`, `provider`, `status` | Filters. |

```bash theme={null}
curl "https://api.yield.xyz/v1/yields/cosmos-atom-native-staking/validators?preferred=true&limit=10" \
  -H "x-api-key: $YIELD_API_KEY"
```

Each validator has `address`, `name`, `commission`, `votingPower`, `status`, `preferred`, and a `rewardRate`. Pass the chosen `address` as `validatorAddress` in the enter action.

## Step 3: Optional lookups

* `GET /v1/providers/{providerId}` for provider details.
* `GET /v1/yields/{yieldId}/risk` for provider risk ratings.
* `GET /v1/yields/{yieldId}/reward-rate/history` and `GET /v1/yields/{yieldId}/tvl/history` for history. Both take `period` (`1d`, `7d`, `30d`, `90d`, `1y`, `all`), `interval` (`day`, `week`, `month`), `from`, `to`, `offset`, and `limit`.
* `GET /v1/yields/{yieldId}/campaigns` for incentive campaigns.
* `GET /v1/yields/{yieldId}/kyc/status?address=...` for KYC. `kycStatus` is one of `not_required`, `not_started`, `pending`, `approved`, `rejected`. `authorizeUrl` is optional and present only when the issuer provides one, typically for `not_started` or `rejected`.

## Presenting a yield

1. Name and type
2. Current rate with `rateType`, and the top components
3. Token and network
4. Whether deposits and exits are open
5. Cooldown or warmup, if any
6. Validators, for validator yields

## Errors

| Status | Meaning | Action |
| - | - | - |
| 400 | Unknown yield, or not enabled for the project | Find the ID with `find-yields`. |
| 401 | Missing or invalid API key | Check the `x-api-key` header. |
| 429 | Rate limited | Wait for `retry-after` seconds. |

## Edge cases

* **No validators:** Lending and vault yields have none. `requiresValidatorSelection` says whether a validator is needed.
* **Maintenance or deprecation:** Check `metadata.underMaintenance` and `metadata.deprecated` before recommending a yield.
* **Rates move:** Present rates as current.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.