# GET /custom-scripts/:script_id

**Resource:** [Custom Scripts](./custom-scripts.md)  
**MCP tool:** `get_custom_script_by_id`  
**Scopes:** `custom-scripts:read`  
**Write operation:** no

Get one Custom Script by its id — description, generated code, approval/deploy status, secret names, last test result.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `script_id` | path | string | yes |  |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/custom-scripts/:script_id"   -H "Authorization: Bearer YOUR_API_KEY"
```

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