# 30 秒获取 Server酱 SendKey

> 获取 Server酱 SendKey 的完整步骤：Server酱Turbo（SCT）与 Server酱³（SC3）两种密钥的注册入口、格式区别、验证方法与保管建议。

- 网页版：https://sct.ftqq.com/docs/getting-started/sendkey/
- 更新日期：2026-07-17

# 30 秒获取 Server酱 SendKey

> SendKey 是 Server酱的推送密钥：拿到它，你就可以用一次 HTTP 请求把消息推送到自己的微信或 App。

Server酱有两个版本，SendKey 不通用，按需选择（也可以都注册，都有免费额度）：

| | Server酱Turbo（SCT） | Server酱³（SC3） |
|---|---|---|
| 推送到 | 微信（服务号/企业微信）、钉钉群、飞书群等 | Server酱³ 独立 App（多设备） |
| SendKey 格式 | 以 `SCT` 开头 | 以 `sctp` 开头（形如 `sctp{uid}t…`） |
| 适合 | 想在**微信**里收通知 | 想要独立 App、AI 摘要/翻译、Tag 分组 |
| 注册入口 | https://sct.ftqq.com | https://sc3.ft07.com |

## 获取 Server酱Turbo 的 SendKey

1. 打开 https://sct.ftqq.com，用微信扫码登录。
2. 进入「SendKey」页面，点击复制即可。

<!-- 截图待补：sendkey-sct.png（SCT 控制台 SendKey 页） -->

注册即为免费会员（每天 5 条），新用户自动获得 7 天全功能试用。

## 获取 Server酱³ 的 SendKey

1. 打开 https://sc3.ft07.com 注册账号。
2. 在 [客户端下载页](https://sc3.ft07.com/client) 安装 App 并登录（消息推送到 App，需先安装）。
3. 在网站「SendKey」页面复制密钥。

<!-- 截图待补：sendkey-sc3.png（SC3 网站 SendKey 页） -->

## 验证 SendKey 是否可用

把下面命令中的 `你的SENDKEY` 换成刚复制的密钥，在终端执行：

```bash
# Server酱Turbo（SCT 开头的 key）
curl -X POST "https://sctapi.ftqq.com/你的SENDKEY.send" \
  -d "title=测试" -d "desp=SendKey 可用"
```

```bash
# Server酱³（sctp 开头的 key），把 <uid> 换成 sctp 和 t 之间的数字
# 例如 sctp123tXXXX 的 uid 是 123
curl -X POST "https://<uid>.push.ft07.com/send/你的SENDKEY.send" \
  -d "title=测试" -d "desp=SendKey 可用"
```

返回 JSON 中 `code` 为 `0`，且微信/App 收到消息，即为成功。

## 如何保管 SendKey

SendKey 等同于推送凭证，泄露后任何人都能给你发消息：

- 存入环境变量（推荐统一用 `SERVERCHAN_SENDKEY`），不要写死在代码里；
- 不要提交到 git 仓库、不要打印到日志；
- 如不慎泄露，到控制台重置 SendKey。

```bash
# ~/.bashrc 或 ~/.zshrc
export SERVERCHAN_SENDKEY="你的SENDKEY"
```

## 常见问题

**SCT 和 SC3 的 SendKey 可以混用吗？**
不可以，两个版本用户系统独立。官方 [serverchan-sdk](https://github.com/easychen/serverchan-sdk) 会按前缀自动识别并选择正确的 API 端点。

**免费额度是多少？**
Server酱Turbo 免费会员每天最多 5 条；Server酱³ 推送服务测试期间免费，正式版收费标准与 Server酱Turbo 一致；Turbo 订阅会员可同步会员时间。

**SendKey 忘了/泄露了怎么办？**
登录对应控制台的 SendKey 页面查看或重置。

## 相关文档

- [通道对比：消息推到哪里](https://sct.ftqq.com/docs/getting-started/channels/)
- [常见问题：额度与排查](https://sct.ftqq.com/docs/getting-started/faq/)
- [Python 脚本推送微信通知](https://sct.ftqq.com/docs/integrations/python/)

