cURL
curl --request GET \ --url https://app.mlm-platform.com/api/v1/members/{userId}/genealogy \ --header 'x-tenant-api-key: <api-key>'
{ "tree": { "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "jsmith@example.com", "name": "<string>", "givenName": "<string>", "surname": "<string>", "membershipTier": "ORDINARY", "isActive": true, "depth": 123, "directReferrals": 123, "totalDownline": 123, "joinedAt": "2023-11-07T05:31:56Z", "children": "<array>" }, "meta": { "maxDepth": 123, "includeInactive": true, "totalNodes": 123 } }
Returns the hierarchical downline tree for a member.
Tenant API key for authentication
1 <= x <= 10
Downline tree
Show child attributes