---
title: "获取 GitHub 发现 Token"
method: GET
path: "/settings/github-discovery-token"
tags: ["JS插件管理"]
---

# 获取 GitHub 发现 Token

`GET /settings/github-discovery-token`

## Request

- Base URL: `https://localhost:58091/api/v1`
- URL: `https://localhost:58091/api/v1/settings/github-discovery-token`
- Auth: API key in header `Authorization`

返回服务器保存的完整 GitHub Token，供已登录客户端直接请求 GitHub API。未配置时 token 为空；服务器不代发发现请求。响应禁止缓存。

## Response `200`

GitHub Token

- HandlersGithubDiscoveryTokenSetting
  - `token` string

## Other responses

- `401`: 未登录
- `500`: 读取配置失败

## Changes

- **2026-10-12** `b58a51e3d8f3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/songloft-org/apis/songloft-api/changes/settings/github-discovery-token/get.md)

---

[API](https://skmtc.dev/songloft-org/apis/songloft-api.md) · [All operations](https://skmtc.dev/songloft-org/apis/songloft-api/llms.txt) · [OpenAPI document](https://skmtc.dev/songloft-org/apis/songloft-api/revisions/29bc122e3e1e?raw)
