Skip to main content
If you onboard your own clients, such as a wallet or custody platform does, you keep one partner account on Yield.xyz and create a tenant for each client. Your backend then manages every tenant’s projects with your team’s admin API key, the same way it manages your own. Your team is the partner, and each tenant sits directly under it. In the API, tenants are created through the /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 403 for teams without it.
Every route on this page is served from 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 its projectId, 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’s projectId. Field details, limits, and statuses are in the Programmatic access guide.
1

Issue a project API key

cURL
List, update, or remove keys with 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.
Plan checks and limits on these routes follow the tenant that owns the project, not your own team. To set a tenant’s plan to match your agreement, contact us.

Reporting per tenant

Pull each tenant’s data by projectId: 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.