Every call requires the
X-API-Key header. See API Keys.Prerequisites
You need three things before the first call:- A Turtle organization, created in the Client Portal. New organizations are approved by the Turtle team before keys are issued.
- An API key (
pk_live_for client-side,sk_live_for server-side). See API Keys. - Your distributor ID, found under Distribution in the Client Portal.
If your organization has not been approved yet, reach out on Discord.
Step 1: Confirm your key works
Fetch the opportunity catalog. A200 with an opportunities array means authentication is set up.
401 means the key is missing or wrong. See API Keys for key types, the auth header, and rate limits.
Step 2: Register the user’s wallet
Every wallet must be a Turtle member before it can deposit. Membership is a three-step EIP-4361 flow: check membership, request a sign-in message, submit the signature. The full request and response for each step is on Register Wallet.distributorId when you create the membership to attribute the signup to your integration.
Step 3: Find an opportunity
Fetch your distributor’s configured set, or browse the full catalog with filters. Each opportunity has anid you use in the next step.
Step 4: Generate the deposit
Call the deposit action with the opportunity ID, wallet, token, amount, and your distributor ID. The API returns an orderedtransactions array (typically an approval followed by the deposit) for the user to sign in order.
Step 5: Confirm attribution
After the deposit confirms on-chain, verify that Turtle attributed it to you.metadata.distributorId matching yours and signatureValid: true means attribution worked. Nothing else is required; attribution is automatic. See Verify Attribution.
What’s next
- Deposit - The full deposit reference: request body, swap mode, and broadcasting.
- Opportunities - The opportunity catalog and the full object schema.
- Verify Attribution - Confirm a transaction was attributed to your distributor.
- Distributor Model - How attribution and revenue share work end to end.

