{"openapi":"3.0.3","info":{"title":"YieldSeeker Integrator API","version":"1.0.0","description":"Manage an integrator's API keys and dashboard access, and pull revenue-share analytics for the users and agents referred through it.\n\nThis is a companion to the core [YieldSeeker API v1 Reference](https://docs.yieldseeker.xyz/api-v1) - read that first for authentication, and for the User and Agent resource models and general platform concepts (users, agents, chains, assets). Every ID and resource referenced here (`userId`, `agentId`, `chainId`, `assetAddress`) is the same resource described there; this API only adds integrator-scoped views on top.\n\n## Authentication\n\nEvery integrator route that accepts user authentication requires the same `Authorization: Signature <signature-token>` header used by the core API and checks that the signed-in user is a member or master of the target integrator. The read-only integrator details and analytics routes also accept `X-Api-Key` as an alternative; the key must belong to the requested integrator and pass its configured origin check. If both headers are sent, either valid matching credential is sufficient. API-key management and dashboard-member routes still require a signature; adding or removing members requires the master user."},"tags":[{"name":"Integrator","description":"Manage an integrator's API keys and dashboard members, and pull revenue-share analytics - referred users, agents, and fee totals - for the traffic referred through it."}],"paths":{"/integrators/v1/":{"get":{"operationId":"listIntegrators","summary":"List integrators for the caller","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIntegratorsResponse"}}}}},"description":"Lists every integrator the signed-in user belongs to, as a member or master.","security":[{"UserSignature":[]}]}},"/integrators/v1/{integratorId}":{"get":{"operationId":"getIntegrator","summary":"Get an integrator","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIntegratorResponse"}}}}},"description":"Returns a single integrator, including its revenue share rate.","security":[{"UserSignature":[]},{"IntegratorApiKey":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}}]}},"/integrators/v1/{integratorId}/api-keys":{"get":{"operationId":"listIntegratorApiKeys","summary":"List API keys","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIntegratorApiKeysResponse"}}}}},"description":"Lists the API keys issued for an integrator. Secrets are never returned here - only createIntegratorApiKey returns the secret, and only once, at creation.","security":[{"UserSignature":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}}]},"post":{"operationId":"createIntegratorApiKey","summary":"Create an API key","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegratorApiKeyResponse"}}}}},"description":"Creates a new API key for an integrator. The response is the only time the secret is returned - store it immediately.","security":[{"UserSignature":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Label"},"allowedOrigins":{"items":{"type":"string"},"title":"Allowedorigins","type":"array"}},"required":[],"title":"CreateIntegratorApiKeyRequest","type":"object"}}}}}},"/integrators/v1/{integratorId}/api-keys/{apiKeyId}":{"delete":{"operationId":"deleteIntegratorApiKey","summary":"Deactivate an API key","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteIntegratorApiKeyResponse"}}}}},"description":"Deactivates an API key. This is permanent - a deactivated key cannot be reactivated, only replaced by creating a new one.","security":[{"UserSignature":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}},{"name":"apiKeyId","in":"path","required":true,"schema":{"title":"Apikeyid","type":"string"}}]}},"/integrators/v1/{integratorId}/members":{"get":{"operationId":"listIntegratorMembers","summary":"List dashboard members","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIntegratorMembersResponse"}}}}},"description":"Lists the users with dashboard access to an integrator - the master user plus any added members.","security":[{"UserSignature":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}}]},"post":{"operationId":"addIntegratorMember","summary":"Add a dashboard member","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddIntegratorMemberResponse"}}}}},"description":"Grants dashboard access to an existing YieldSeeker user, identified by username or wallet address. Only the integrator master user may do this.","security":[{"UserSignature":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"memberIdentifier":{"title":"Memberidentifier","type":"string"}},"required":["memberIdentifier"],"title":"AddIntegratorMemberRequest","type":"object"}}}}}},"/integrators/v1/{integratorId}/members/{memberIdentifier}":{"delete":{"operationId":"removeIntegratorMember","summary":"Remove a dashboard member","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveIntegratorMemberResponse"}}}}},"description":"Revokes a member's dashboard access to an integrator. Only the integrator master user may do this.","security":[{"UserSignature":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}},{"name":"memberIdentifier","in":"path","required":true,"schema":{"title":"Memberidentifier","type":"string"}}]}},"/integrators/v1/{integratorId}/users":{"get":{"operationId":"listIntegratorReferredUsers","summary":"List referred users","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIntegratorReferredUsersResponse"}}}}},"description":"Lists the users referred to YieldSeeker through this integrator, each with their holdings, yield, and platform fee totals.\n\nRate limited to 30 requests/minute, 300 requests/hour.","security":[{"UserSignature":[]},{"IntegratorApiKey":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}}]}},"/integrators/v1/{integratorId}/revenue-summary":{"get":{"operationId":"getIntegratorRevenueSummary","summary":"Get revenue summary","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetIntegratorRevenueSummaryResponse"}}}}},"description":"Returns aggregate, all-time totals across every user and agent referred through this integrator: counts, holdings, yield earned, fees, and the integrator's revenue share.\n\nRate limited to 30 requests/minute, 300 requests/hour.","security":[{"UserSignature":[]},{"IntegratorApiKey":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}}]}},"/integrators/v1/{integratorId}/agents":{"get":{"operationId":"listIntegratorAgents","summary":"List agents with financials","tags":["Integrator"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIntegratorAgentsResponse"}}}}},"description":"Lists the agents created by users referred through this integrator, each with its chain, asset, wallet, holdings, yield, fees, and transaction totals.\n\nRate limited to 30 requests/minute, 300 requests/hour.","security":[{"UserSignature":[]},{"IntegratorApiKey":[]}],"parameters":[{"name":"integratorId","in":"path","required":true,"schema":{"title":"Integratorid","type":"string"}}]}}},"components":{"schemas":{"Integrator":{"properties":{"integratorId":{"title":"Integratorid","type":"string"},"masterUserId":{"title":"Masteruserid","type":"string"},"name":{"title":"Name","type":"string"},"slug":{"title":"Slug","type":"string"},"isActive":{"title":"Isactive","type":"boolean"},"revenueShareBps":{"title":"Revenuesharebps","type":"integer"},"createdDate":{"format":"date-time","title":"Createddate","type":"string"}},"required":["integratorId","masterUserId","name","slug","isActive","revenueShareBps","createdDate"],"title":"Integrator","type":"object"},"ListIntegratorsResponse":{"properties":{"integrators":{"items":{"$ref":"#/components/schemas/Integrator"},"title":"Integrators","type":"array"}},"required":["integrators"],"title":"ListIntegratorsResponse","type":"object"},"GetIntegratorResponse":{"properties":{"integrator":{"$ref":"#/components/schemas/Integrator"}},"required":["integrator"],"title":"GetIntegratorResponse","type":"object"},"IntegratorApiKey":{"properties":{"integratorApiKeyId":{"title":"Integratorapikeyid","type":"string"},"integratorId":{"title":"Integratorid","type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"keyPrefix":{"title":"Keyprefix","type":"string"},"allowedOrigins":{"items":{"type":"string"},"title":"Allowedorigins","type":"array"},"isActive":{"title":"Isactive","type":"boolean"},"lastUsedDate":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Lastuseddate"},"createdDate":{"format":"date-time","title":"Createddate","type":"string"},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Secret"}},"required":["integratorApiKeyId","integratorId","label","keyPrefix","allowedOrigins","isActive","lastUsedDate","createdDate"],"title":"IntegratorApiKey","type":"object"},"ListIntegratorApiKeysResponse":{"properties":{"apiKeys":{"items":{"$ref":"#/components/schemas/IntegratorApiKey"},"title":"Apikeys","type":"array"}},"required":["apiKeys"],"title":"ListIntegratorApiKeysResponse","type":"object"},"CreateIntegratorApiKeyResponse":{"properties":{"apiKey":{"$ref":"#/components/schemas/IntegratorApiKey"}},"required":["apiKey"],"title":"CreateIntegratorApiKeyResponse","type":"object"},"DeleteIntegratorApiKeyResponse":{"properties":{"apiKey":{"$ref":"#/components/schemas/IntegratorApiKey"}},"required":["apiKey"],"title":"DeleteIntegratorApiKeyResponse","type":"object"},"IntegratorMember":{"properties":{"integratorMemberId":{"title":"Integratormemberid","type":"string"},"integratorId":{"title":"Integratorid","type":"string"},"userId":{"title":"Userid","type":"string"},"username":{"title":"Username","type":"string"},"createdDate":{"format":"date-time","title":"Createddate","type":"string"}},"required":["integratorMemberId","integratorId","userId","username","createdDate"],"title":"IntegratorMember","type":"object"},"ListIntegratorMembersResponse":{"properties":{"members":{"items":{"$ref":"#/components/schemas/IntegratorMember"},"title":"Members","type":"array"}},"required":["members"],"title":"ListIntegratorMembersResponse","type":"object"},"AddIntegratorMemberResponse":{"properties":{"member":{"$ref":"#/components/schemas/IntegratorMember"}},"required":["member"],"title":"AddIntegratorMemberResponse","type":"object"},"RemoveIntegratorMemberResponse":{"properties":{"member":{"$ref":"#/components/schemas/IntegratorMember"}},"required":["member"],"title":"RemoveIntegratorMemberResponse","type":"object"},"IntegratorReferredUser":{"properties":{"userId":{"title":"Userid","type":"string"},"username":{"title":"Username","type":"string"},"createdDate":{"format":"date-time","title":"Createddate","type":"string"},"totalHoldingsUsd":{"title":"Totalholdingsusd","type":"number"},"cumulativeYieldEarnedUsd":{"description":"Yield earned by the user's yield-product agents, net of fees already charged, in USD. Other agent types (e.g. Borrow) are not included.","title":"Cumulativeyieldearnedusd","type":"number"},"platformFeesCollectedUsd":{"title":"Platformfeescollectedusd","type":"number"},"platformFeesAccruedUsd":{"title":"Platformfeesaccruedusd","type":"number"},"integratorFeeShareUsd":{"title":"Integratorfeeshareusd","type":"number"}},"required":["userId","username","createdDate","totalHoldingsUsd","cumulativeYieldEarnedUsd","platformFeesCollectedUsd","platformFeesAccruedUsd","integratorFeeShareUsd"],"title":"IntegratorReferredUser","type":"object"},"ListIntegratorReferredUsersResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/IntegratorReferredUser"},"title":"Users","type":"array"}},"required":["users"],"title":"ListIntegratorReferredUsersResponse","type":"object"},"IntegratorRevenueSummary":{"properties":{"referredUserCount":{"title":"Referredusercount","type":"integer"},"agentCount":{"title":"Agentcount","type":"integer"},"totalHoldingsUsd":{"title":"Totalholdingsusd","type":"number"},"totalYieldEarnedUsd":{"description":"Yield earned by referred yield-product agents, net of fees already charged, in USD. Other agent types (e.g. Borrow) are not included.","title":"Totalyieldearnedusd","type":"number"},"totalPlatformFeesCollectedUsd":{"title":"Totalplatformfeescollectedusd","type":"number"},"totalPlatformFeesAccruedUsd":{"title":"Totalplatformfeesaccruedusd","type":"number"},"totalIntegratorFeeShareUsd":{"title":"Totalintegratorfeeshareusd","type":"number"},"revenueShareBps":{"title":"Revenuesharebps","type":"integer"},"totalTransactionCount":{"title":"Totaltransactioncount","type":"integer"},"totalTransactionValueUsd":{"title":"Totaltransactionvalueusd","type":"number"},"apy75thPercentile":{"description":"75th percentile of referred yield-product agents' 7-day APY (agents worth more than the funding minimum).","title":"Apy75Thpercentile","type":"number"},"apy99thPercentile":{"description":"99th percentile of referred yield-product agents' 7-day APY (agents worth more than the funding minimum).","title":"Apy99Thpercentile","type":"number"}},"required":["referredUserCount","agentCount","totalHoldingsUsd","totalYieldEarnedUsd","totalPlatformFeesCollectedUsd","totalPlatformFeesAccruedUsd","totalIntegratorFeeShareUsd","revenueShareBps","totalTransactionCount","totalTransactionValueUsd","apy75thPercentile","apy99thPercentile"],"title":"IntegratorRevenueSummary","type":"object"},"GetIntegratorRevenueSummaryResponse":{"properties":{"revenueSummary":{"$ref":"#/components/schemas/IntegratorRevenueSummary"}},"required":["revenueSummary"],"title":"GetIntegratorRevenueSummaryResponse","type":"object"},"IntegratorAgent":{"properties":{"agentId":{"title":"Agentid","type":"string"},"userId":{"title":"Userid","type":"string"},"chainId":{"title":"Chainid","type":"integer"},"assetAddress":{"title":"Assetaddress","type":"string"},"walletAddress":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Walletaddress"},"createdDate":{"format":"date-time","title":"Createddate","type":"string"},"deactivatedDate":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Deactivateddate"},"totalValueUsd":{"title":"Totalvalueusd","type":"number"},"cumulativeYieldEarnedUsd":{"description":"Yield earned, net of fees already charged, in USD. 0 for agent types that are not yield products (e.g. Borrow).","title":"Cumulativeyieldearnedusd","type":"number"},"platformFeesCollectedUsd":{"title":"Platformfeescollectedusd","type":"number"},"platformFeesAccruedUsd":{"title":"Platformfeesaccruedusd","type":"number"},"integratorFeeShareUsd":{"title":"Integratorfeeshareusd","type":"number"},"transactionCount":{"title":"Transactioncount","type":"integer"},"transactionValueUsd":{"title":"Transactionvalueusd","type":"number"},"apy1d":{"description":"Annualised yield over the last day, from daily time-weighted (Modified Dietz) returns of total value against deposits, matching the APYs on the agent snapshot. 0 until the first snapshot exists, and 0 for agent types that are not yield products (e.g. Borrow).","title":"Apy1D","type":"number"},"apy7d":{"description":"Annualised yield over the last 7 days, from daily time-weighted (Modified Dietz) returns of total value against deposits, matching the APYs on the agent snapshot. 0 until the first snapshot exists, and 0 for agent types that are not yield products (e.g. Borrow).","title":"Apy7D","type":"number"},"apy30d":{"description":"Annualised yield over the last 30 days, from daily time-weighted (Modified Dietz) returns of total value against deposits, matching the APYs on the agent snapshot. 0 until the first snapshot exists, and 0 for agent types that are not yield products (e.g. Borrow).","title":"Apy30D","type":"number"},"apy90d":{"description":"Annualised yield over the last 90 days, from daily time-weighted (Modified Dietz) returns of total value against deposits, matching the APYs on the agent snapshot. 0 until the first snapshot exists, and 0 for agent types that are not yield products (e.g. Borrow).","title":"Apy90D","type":"number"},"apyAllTime":{"description":"Annualised yield over all history since apyStartDate, from daily time-weighted (Modified Dietz) returns of total value against deposits, matching the APYs on the agent snapshot. 0 until the first snapshot exists, and 0 for agent types that are not yield products (e.g. Borrow).","title":"Apyalltime","type":"number"},"apyStartDate":{"description":"First day the agent held value. The APY windows never start before it. The creation date until the first snapshot exists.","format":"date","title":"Apystartdate","type":"string"},"hasEnoughHistory":{"description":"True once apyStartDate is at least 5 days ago for a yield-product agent with a snapshot. Before that the APYs are too short-term to show.","title":"Hasenoughhistory","type":"boolean"}},"required":["agentId","userId","chainId","assetAddress","walletAddress","createdDate","deactivatedDate","totalValueUsd","cumulativeYieldEarnedUsd","platformFeesCollectedUsd","platformFeesAccruedUsd","integratorFeeShareUsd","transactionCount","transactionValueUsd","apy1d","apy7d","apy30d","apy90d","apyAllTime","apyStartDate","hasEnoughHistory"],"title":"IntegratorAgent","type":"object"},"ListIntegratorAgentsResponse":{"properties":{"agents":{"items":{"$ref":"#/components/schemas/IntegratorAgent"},"title":"Agents","type":"array"}},"required":["agents"],"title":"ListIntegratorAgentsResponse","type":"object"}},"securitySchemes":{"UserSignature":{"type":"apiKey","in":"header","name":"Authorization","description":"Required user signature. Enter the complete header value: `Signature <signature-token>`."},"IntegratorApiKey":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Integrator API key for the same integrator ID addressed by the request."}}}}