# GET /lead-magnets/:lead_magnet_id/gift-script

**Resource:** [LEAD_MAGNETS](./lead-magnets.md)  
**MCP tool:** `get_lead_magnet_gift_script`  
**Scopes:** `lead_magnets:read`  
**Write operation:** no

Get the Custom Script that makes a lead magnet's Made for you gift (when its gift maker is custom_script): id, description, code, approval and publish state (live_ready, live_block_reason), secret names, last test result. 404 until the script is first written.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `lead_magnet_id` | path | string | yes | The lead magnet whose Made for you gift the script makes. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/lead-magnets/:lead_magnet_id/gift-script"   -H "Authorization: Bearer YOUR_API_KEY"
```

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