> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fundor.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Fundor Partner API. NON-NEGOTIABLE CONSENT RULES for anyone (human or AI) writing code against this API: (1) Call GET /consent every time the referral form is shown and display consent.text EXACTLY, next to a checkbox that starts UNCHECKED. (2) Only the person whose phone number is entered may check it; never pre-check it, never set consent.given=true in code without that click, never submit a lead on someone's behalf. (3) POST /leads must include consent.given=true, consent.version, the single-use consent.token, consent.consentedAt (within 15 minutes), the person's own IP and user agent (not your server's), consent.phone equal to contact.phone, and your consent.recordId. Fundor rejects the lead with 400 and saves nothing if any is missing or wrong. Do not 'fix' a consent error by filling in values; fix the form. (4) Keep consent records for 5 years. (5) Keep API keys on your server only. (6) Show the 'Powered by Fundor' badge on every screen that uses Fundor.

# Fundor Partner API

> Build Fundor sign-ups, teams, referrals and applications into your own app. Fundor runs the backend, the call center and the payouts.

Fundor helps student athletes and teams fundraise by referring people to everyday services (internet, cell phone, insurance and more). When a referral becomes a paying customer, the athlete's team earns the commission.

The Partner API lets your app put that flow in front of your own users. You build the screens; Fundor stores the records, works the leads and credits the athletes. **Everything you send is attributed to your partner account.**

> [!WARNING]
>
> Before you write any code, read [Consent requirements](https://docs.fundor.io/consent.md). Leads without full consent evidence are rejected and never saved.

## What you can do

> [card] [Sign people up](https://docs.fundor.io/api-reference/create-user.md)
>
> Create Fundor accounts for your users, or link accounts they already have.

> [card] [Set up teams](https://docs.fundor.io/api-reference/onboard-user.md)
>
> Onboard athletes with a team code, or coaches who create or join a team.

> [card] [Share referral links](https://docs.fundor.io/api-reference/referral-link.md)
>
> Get each athlete's hosted fundor.io referral page and QR code.

> [card] [Submit leads](https://docs.fundor.io/api-reference/create-lead.md)
>
> Send referrals collected in your app, with consent evidence.

> [card] [Submit applications](https://docs.fundor.io/api-reference/coach-application.md)
>
> Coach, business and affiliate applications for Fundor to review.

> [card] [Show you're Powered by Fundor](https://docs.fundor.io/brand.md)
>
> The badge and logo rules for screens that use Fundor.

## How it fits together

```mermaid theme={null}
flowchart LR
  A[Your app] -- "POST /users" --> B[Fundor account]
  B -- "POST /users/{id}/onboarding" --> C[Athlete on a team]
  C -- "GET /users/{id}/referral-link" --> D[Hosted fundor.io/refer page]
  C -- "POST /leads (with consent)" --> E[Lead]
  D -- customer fills it in --> E
  E --> F[Fundor call center]
  F -- sale is paid --> G[Athlete and team credited]
```

## Base URL

```text theme={null}
https://www.fundor.io/api/v1
```

Every request needs your API key. See [Authentication](https://docs.fundor.io/authentication.md). The API is JSON over HTTPS.

## What the API doesn't do (yet)

Webhooks, coach tools (goals, milestones, managing athletes) and payout data are not part of v1. Athletes and coaches can use them at [fundor.io](https://www.fundor.io) with the same account.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.