# GET /gifts/:gift_id/script

**Resource:** [GIFTS](./gifts.md)  
**MCP tool:** `get_gift_script`  
**Scopes:** `gifts:read`  
**Write operation:** no

Get the Custom Script that makes a gift (when the gift makes a script's output): 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 |
|------|----|------|----------|-------------|
| `gift_id` | path | string | yes | The gift whose script makes it (list_gifts). |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/gifts/:gift_id/script"   -H "Authorization: Bearer YOUR_API_KEY"
```

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