All requests require an API key via the
X-API-Key header.
See Authentication for details.Overview
Every distributor on Turtle has a curated set of opportunities configured through the Turtle Dashboard. This endpoint returns only those opportunities — the ones your users should see. Use this endpoint instead of Get All Opportunities when you want to serve the exact opportunity set you’ve selected for your integration.Endpoint
GEThttps://earn.turtle.xyz/v1/opportunities/distributors/{distributor_id}
Your unique distributor ID. Find this in the Turtle Dashboard under your distributor settings.
When to use this endpoint
| Scenario | Endpoint |
|---|---|
| Power your widget or app with your curated opportunities | This endpoint |
| Browse the full Turtle catalog to decide what to enable | Get All Opportunities |
| Fetch a single opportunity by ID for a detail page | Get Opportunity by ID |
How curation works
Configure in Dashboard
Log in to the Turtle Dashboard and navigate to your distributor’s opportunity settings. Select which opportunities to surface in your integration.
Saved to earnDetails
Your selections are stored in the distributor’s
earnDetails configuration. This controls which opportunities are returned by this endpoint.If no opportunities have been configured in the Dashboard, this endpoint returns an empty list. Head to the Turtle Dashboard to set up your opportunity selection.
Use Cases
Power an Earn Widget
Fetch your curated opportunities and display them in your UI. Users only see the vaults you’ve approved.Filter by Chain at Runtime
The endpoint returns your full curated set. You can further filter client-side if your UI supports chain switching.Build a Deposit Flow
Combine with the Deposit Action to build a full earn flow — list your opportunities, let the user pick one, then generate a deposit transaction.Error Handling
Distributor Not Found
Distributor Not Found
Status Code: 404 Not FoundSolution: Verify your distributor ID is correct. Find it in the Turtle Dashboard.
Empty Response
Empty Response
Status Code: 200 OKThis is not an error. It means no opportunities have been configured for this distributor yet. Go to the Turtle Dashboard to select which opportunities to surface.
Related
- Distributor Model — How distributors work and how attribution is tracked
- Get All Opportunities — Browse the full Turtle catalog
- Deposit Action — Generate deposit transactions for an opportunity
- Distributor Activity — Track deposits attributed to your distributor

