# POST /referrals/links

**Resource:** [Referrals](./referrals.md)  
**MCP tool:** `create_referral_link`  
**Scopes:** `referrals:write`  
**Write operation:** yes

Create a stable referral/affiliate link for a referrer contact. Binds them to the workspace's public referral form so every signup through the link is attributed to them. slug (the public handle) defaults to the referrer's name; form_template_id defaults to the workspace 'refer-a-client' form. Returns link_url to share.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `referrer_contact_id` | body | string | yes | Contact UUID of the referrer/partner. Required. |
| `slug` | body | string | no | Optional public handle for the link (e.g. 'aiafy'). Defaults to a slug of the referrer's name; must be unique in the workspace. |
| `form_template_id` | body | string | no | Optional public form to bind. Defaults to the workspace's 'refer-a-client' form. |
| `active` | body | boolean | no | Defaults to true. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/referrals/links"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"referrer_contact_id":"...","slug":"...","form_template_id":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`