For the complete documentation index, see llms.txt. This page is also available as Markdown.

Referred prospects

Use the Referrals endpoint to show the people a member referred and each referral’s status.

How to generate it

Use the following workflow for each page of referred prospects.

  1. Fetch the member’s referrals. Filter the Referrals endpoint for the signed-in member.

  2. Collect referee IDs. Read the referral_to_user value for every referral returned.

  3. Fetch referee details in one request. Call the Users endpoint with user_id__in set to the collected IDs.

  4. Match users to referrals. Join each User response to its referral using referral_to_user.

  5. Render and paginate the results. Show the referee’s details with the referral status. Use the Referrals response to determine whether another page exists.

This requires two requests per results page: one to Referrals and one to Users. Do not request each referee individually.

Pagination

Paginate the Referrals endpoint first. Then batch-fetch only the referees shown on that page.

When the member opens the next page, repeat the same two requests with the next Referrals page. This avoids loading every referral and user record upfront.

Last updated

Was this helpful?