---
name: yield-xyz
description: Integrate non-custodial yield (staking, lending, vaults, RWA) with the Yield.xyz Earn API. Use when building or operating yield integrations, including discovering yields, entering and exiting positions, managing rewards, and tracking portfolios.
license: MIT
compatibility: Requires network access to https://api.yield.xyz. Works with any HTTP client, SDK, or AI agent with tool-calling capabilities.
metadata:
  author: yield-xyz
  version: "1.1"
---

# Yield.xyz agent skills

Yield.xyz is a non-custodial API platform for on-chain yield, trading, and borrowing. These skills cover the Earn API: discover yields, build transactions, and track positions. The catalog spans more than 4,000 yields across 85+ networks. Every action returns unsigned transactions that the user or their signing infrastructure signs.

## Authentication and host

Send the project API key in the `x-api-key` header on every request. Get a key from the Yield.xyz dashboard (see [Onboarding](https://docs.yield.xyz/documentation/get-started/onboarding)). The same key works on the Earn, Perps, and Borrow APIs.

```bash
curl https://api.yield.xyz/v1/yields?limit=1 -H "x-api-key: $YIELD_API_KEY"
```

| API | Host | Reference |
|---|---|---|
| Earn API | `https://api.yield.xyz/v1` | [Getting started](https://docs.yield.xyz/api-reference/getting-started) |
| Perps API | `https://perps.yield.xyz` | [Perps API reference](https://docs.yield.xyz/api-reference/perps-api/discovery/list-providers) |
| Borrow API | `https://borrow.yield.xyz` | [Borrow API reference](https://docs.yield.xyz/api-reference/borrow/integrations/list-integrations) |

The skills below cover Earn and the admin Programmatic API only. Perps and Borrow have no skills here; use their references.

## Skills

### find-yields
Search the yields enabled for your project. `GET /v1/yields` is scoped to the project that owns the key, and takes filters for network, type, token, provider, search, and sort. Also `GET /v1/networks` and `GET /v1/providers`.

### get-yield-info
Read one yield: reward rate, tokens, status, mechanics, and argument schemas. `GET /v1/yields/{yieldId}`, plus `GET /v1/yields/{yieldId}/validators` for validator yields. Reward-rate and TVL history are at `/reward-rate/history` and `/tvl/history`.

### enter-position
Create an enter action and run its unsigned transactions. `POST /v1/actions/enter`, then submit each transaction with `POST /v1/transactions/{transactionId}/submit` (Yield.xyz broadcasts) or `PUT /v1/transactions/{transactionId}/submit-hash` (you broadcast).

### exit-position
Create an exit action, including unstake and withdraw flows with cooldowns. `POST /v1/actions/exit`, same submission paths as enter.

### manage-position
Run the pending actions on a balance, such as claiming or restaking rewards. `POST /v1/actions/manage` with an `action` and the `passthrough` from the balance's `pendingActions[]`.

### check-portfolio
Read balances. `POST /v1/yields/balances` takes `{ "queries": [ ... ] }` with 1 to 25 queries. `POST /v1/yields/{yieldId}/balances` reads one yield for one address. `GET /v1/actions` lists past actions.

### programmatic-access
Automate dashboard configuration with an admin API key: projects, API keys, enabled yields, fees, and reports. Host `https://api.stakek.it`, header `X-ADMIN-API-KEY`.

## Typical flow

1. `find-yields` to shortlist yields for the user's token and network.
2. `get-yield-info` to confirm `status.enter`, the argument schema in `mechanics.arguments.enter`, and any validator choice.
3. `enter-position` to create the action, then sign and submit each transaction in `stepIndex` order.
4. `check-portfolio` to read the position and its `pendingActions[]`.
5. `manage-position` to claim or restake, and `exit-position` to leave.

## Constraints

- All transactions are unsigned. The agent cannot sign or broadcast on its own.
- Amounts in action arguments are human-readable decimal strings (`"1.5"` for 1.5 USDC). Use `amountRaw` for the smallest unit; do not send both.
- Run `transactions[]` in `stepIndex` order, waiting for each to confirm when `executionPattern` is `synchronous`. `batch` bundles several operations into one transaction. `asynchronous` is also a declared value, but current actions return `synchronous` or `batch`.
- Enter, exit, and manage return `403` for geo-blocked regions. `412` on enter means the yield is closed for new deposits.
- A yield that is not enabled for the project returns `400` on per-yield calls.
- Some yields require KYC. Check `mechanics.requirements` and `GET /v1/yields/{yieldId}/kyc/status?address=...`. `kycStatus` is one of `not_required`, `not_started`, `pending`, `approved`, `rejected`, and `authorizeUrl` is present only when the issuer provides one.
- Rate limits depend on plan. On `429`, wait for `retry-after` seconds. See [Rate limits](https://docs.yield.xyz/documentation/plans-limits/rate-limits).

## More

- Full docs as text: https://docs.yield.xyz/llms.txt and https://docs.yield.xyz/llms-full.txt
- MCP server and AgentKit: https://docs.yield.xyz/documentation/ai-agents/index
