> For the complete documentation index, see [llms.txt](https://scx.gitbook.io/sc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scx.gitbook.io/sc/scp-docs/api-wen-dang/jiao-ben.md).

# 脚本

全局脚本列表

## 获取全局脚本列表

> 返回管理员配置的全局脚本列表，仅包含 id、name、type 字段，不含脚本内容。\
> 在任务矩阵中使用脚本时，请以 INTERNAL::\<id> 格式引用。<br>

```json
{"openapi":"3.0.3","info":{"title":"SpeedCentre+ 用户 API","version":"1.0"},"tags":[{"description":"全局脚本列表","name":"脚本"}],"servers":[{"description":"用户 API 服务","url":"https://api.speedcentre.plus"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"description":"API Key。","in":"header","name":"X-Api-Key","type":"apiKey"}},"schemas":{"APIResponse":{"properties":{"code":{"description":"0 表示成功；其他值表示业务错误码。","type":"integer"},"data":{"description":"返回载荷；成功时存在，部分错误会包含结构化详情。"},"message":{"type":"string"}},"type":"object"}}},"paths":{"/api/v1/scripts":{"get":{"description":"返回管理员配置的全局脚本列表，仅包含 id、name、type 字段，不含脚本内容。\n在任务矩阵中使用脚本时，请以 INTERNAL::<id> 格式引用。\n","responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/APIResponse"},{"properties":{"data":{"items":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"}]}}},"description":"脚本列表。"},"401":{"description":"API Key 无效。"},"403":{"description":"未启用 API 访问能力。"}},"summary":"获取全局脚本列表","tags":["脚本"]}}}}
```
