/v1/programmatic/teams route.
Prerequisites
- An admin API key for your team. See Create an admin API key.
- Multi-tenant access enabled on your team; contact us to turn it on. Tenant creation returns
403for teams without it.
https://api.stakek.it and authenticated with the X-ADMIN-API-KEY header.
Create a tenant
Create one tenant per client. The tenant’s owner is created in the same request:cURL
Response (excerpt)
Yield.xyz activates each new tenant after it’s created. The tenant’s owner gets two emails: one right away acknowledging the request, and a second with a personal activation link once the tenant is active. The owner signs in through that link. To line activation up with your client onboarding, reach out at hello@yield.xyz. Tenant creation is limited to 30 requests per minute per admin API key.
Tenant projects
Once the tenant is active, its owner signs in to the dashboard and creates the tenant’s projects there. From then on, your admin API key manages each project’s keys, enabled yields, fee configurations, reporting, and campaigns by itsprojectId, exactly as it does for your own team’s projects.
Manage a tenant’s project
Use the same project-scoped key, yield, and fee-configuration routes as for your own projects, with the tenant project’sprojectId. Field details, limits, and statuses are in the Programmatic access guide.
1
Issue a project API key
cURL
GET .../keys, PATCH .../keys/{keyId}, and DELETE .../keys/{keyId}.2
Enable yields
cURL
GET lists what’s enabled; DELETE .../yields/enabled/{integrationId} or DELETE .../yields/enabled with a body removes yields.3
Request a fee configuration
cURL
GET lists configurations; PATCH and DELETE .../fee-configuration/{feeConfigurationId} change or remove one.Reporting per tenant
Pull each tenant’s data byprojectId:
For a tenant’s activity, use these project-scoped routes with its
projectId: revenue and performance return daily figures per integration, and /reporting/perps/actions, /reporting/perps/activity, and /reporting/borrow/actions return individual actions.
Read-only incentive campaign data is at /v2/programmatic/projects/{projectId}/campaigns and the per-campaign routes beneath it.
cURL
What your key can reach
Your admin API key works on projects in your own team and in every tenant your team created, across these route groups:
Access is scoped to your own team and the tenants it owns. A
projectId that belongs to any other team returns 403, an unknown projectId returns 404, and one that isn’t a valid UUID returns 400.
Audit trail
Each tenant you create is recorded in your team’s audit log. Changes your key makes to a tenant’s project keys, enabled yields, and fee configurations are recorded in that tenant’s audit log, marked as made through the API.Have a specific tenant workflow in mind? Reach out at hello@yield.xyz.
Next steps
Programmatic access guide
Every programmatic route, with field details.
Programmatic access
What an admin API key covers and who can create one.
Reporting
What each revenue and performance figure means.
Set up fees and payouts
Register payout wallets for the fees you charge.

