Documentation Index
Fetch the complete documentation index at: https://yieldxyz.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
All Yield.xyz API requests require authentication using an API key. API keys are passed in thex-api-key header.
Get Your API Key
Sign up to create your API key
API Key Format
API keys follow this format:Making Authenticated Requests
Include your API key in thex-api-key header:
Error Responses
401 Unauthorized
Invalid or missing API key:- API key is missing from the header
- API key is invalid or expired
- API key has been revoked
- Wrong header name (use
x-api-key, notX-API-KEYorAuthorization)
403 Forbidden
API key is valid but lacks required permissions:- Geoblocking restrictions
- Read-only key used for write operations
- API key disabled in dashboard
429 Rate Limited
Too many requests:Best Practices
Store keys securely
Store keys securely
Never commit API keys to version control. Use environment variables:
.env
Use backend-only
Use backend-only
Make API calls from your backend, not client-side JavaScript:
Separate keys per environment
Separate keys per environment
Use different API keys for development, staging, and production:
Rotate regularly
Rotate regularly
Generate new keys periodically and revoke old ones in your dashboard.
Monitor usage
Monitor usage
Track API usage in your dashboard to detect anomalies or unauthorized access.
Rate Limits
Rate limits vary by plan:| Plan | Requests/Second | Requests/Month |
|---|---|---|
| Free | 10 | 100,000 |
| Starter | 50 | 1,000,000 |
| Pro | 200 | 10,000,000 |
| Enterprise | Custom | Unlimited |
View Rate Limits
Learn more about rate limits and plans
Environments
Production
live_...) for mainnet transactions.
Staging
test_...) for testing against staging environment.
Testing Authentication
Verify your API key works:Next Steps
Create API Key
Step-by-step guide to creating your first API key
List Yields
Make your first API call
Project Setup
Complete integration guide

