概览
Register.gy 是经认可的 .gy 域名注册商。开发者平台提供与客户在客户中心使用的相同工具,因此助手或应用可以:
- 查询 .gy、.com.gy、.co.gy、.net.gy 和 .org.gy 域名是否可注册,并获取价格和注册链接。无需登录。
- 列出客户的域名并读取其 DNS 记录。
- 连接网站:发送建站工具显示的记录(Lovable、Bolt、Replit、v0、Netlify、Shopify 等),获取预览,然后应用。每次更改均可在 7 天内撤销。
- 检查网站是否已上线:DNS 可见性和 https。
按照设计,该平台从不更改邮件(MX)记录或域名服务器,不转移域名,也不涉及付款。注册局层面的更改由 Register.gy 团队执行。
| REST 基础 URL | https://register.gy/wp-json/rgy/v1 |
|---|---|
| MCP 服务器 | https://register.gy/wp-json/rgy/v1/mcp |
| OpenAPI | https://register.gy/wp-json/rgy/v1/openapi.json |
| OAuth 元数据 | https://register.gy/.well-known/oauth-authorization-server |
| 面向 AI 工具的摘要 | https://register.gy/llms.txt |
快速入门
1. 查询域名(无需密钥)
curl "https://register.gy/wp-json/rgy/v1/availability?domain=mybakery.gy" 2. 创建 API 密钥
登录客户中心,打开 API & AI 助手,然后点击创建 API 密钥。密钥只显示一次。
3. 列出您的域名
curl -H "Authorization: Bearer rgy_live_YOUR_KEY" https://register.gy/wp-json/rgy/v1/domains 4. 先预览,再连接网站
curl -X POST https://register.gy/wp-json/rgy/v1/domains/mybakery.gy/connect/preview \
-H "Authorization: Bearer rgy_live_YOUR_KEY" -H "Content-Type: application/json" \
-d '{"records":[{"type":"A","name":"@","value":"185.158.133.1"},{"type":"TXT","name":"_lovable","value":"lovable_verify=…"}]}' 如果预览无误,将相同的请求体发送到 /connect/apply。7 天内可通过 /connect/undo 撤销。
连接 AI 助手
Register.gy 运行一个远程 MCP 服务器(助手使用外部工具的标准方式)。支持登录的助手会打开一个 Register.gy 窗口:客户输入邮箱,填写我们发送的 6 位验证码,然后批准助手可以执行的操作。
Claude
使用此地址添加自定义连接器,然后登录:
https://register.gy/wp-json/rgy/v1/mcpChatGPT
在 ChatGPT 允许添加自定义连接器或应用的地方(开发者模式),使用相同的地址并选择 OAuth 登录:
https://register.gy/wp-json/rgy/v1/mcpClaude Code
claude mcp add --transport http register-gy https://register.gy/wp-json/rgy/v1/mcp然后在 Claude Code 中运行 /mcp 进行登录。也可以用密钥跳过登录:添加 --header "Authorization: Bearer rgy_live_YOUR_KEY"。
Cursor 及其他 MCP 客户端
{
"mcpServers": {
"register-gy": {
"url": "https://register.gy/wp-json/rgy/v1/mcp",
"headers": { "Authorization": "Bearer rgy_live_YOUR_KEY" }
}
}
}支持 OAuth 的客户端可以省略 headers,改为登录。
然后可以这样提问:“mybakery.gy 可以注册吗?”或“把我的 Lovable 网站连接到 mybakery.gy。”助手会显示计划进行的更改,并在应用前征求您的同意。
公开的、仅限搜索的接口(无需登录):https://register.gy/wp-json/rgy/v1/mcp/public
身份验证
OAuth 2.1(推荐用于供他人使用的助手和应用)
- 授权码流程,使用 PKCE(仅限 S256)。支持公开客户端和机密客户端。
- 动态客户端注册(RFC 7591),地址为
https://register.gy/oauth/register。重定向 URI 必须使用 https,或在 localhost 上使用 http。 - 发现:
/.well-known/oauth-authorization-server(RFC 8414)和/.well-known/oauth-protected-resource(RFC 9728)。MCP 接口会对未经身份验证的请求返回401,并附带指向资源元数据的WWW-Authenticate标头。 - 访问令牌有效期为 1 小时;刷新令牌有效期为 30 天,且每次使用都会轮换。重复使用旧的刷新令牌将终止整个连接。
- 撤销:
https://register.gy/oauth/revoke(RFC 7009)。客户也可以在客户中心断开应用连接。
| 权限范围 | 允许 |
|---|---|
domains:read | See your .gy domains and their DNS records |
websites:write | Connect your websites (change website records only, with 7-day undo) |
API 密钥(用于您自己的脚本和工具)
可在客户中心创建最多 5 个密钥。以 Authorization: Bearer rgy_live_… 或 X-API-Key: rgy_live_… 的形式发送。密钥同时具有两种权限范围。密钥以哈希形式存储,每次创建密钥时都会发邮件通知所有者。
MCP 服务器
Streamable HTTP 传输,JSON 响应(无事件流),协议版本 2025-06-18, 2025-03-26, 2024-11-05。
| 工具 | 功能 | 是否更改数据? |
|---|---|---|
search_domain | Check whether a .gy domain (.gy, .com.gy, .co.gy, .net.gy or .org.gy) is available at Register.gy, with the yearly price and a link to register it. | 否 |
notify_when_registration_reopens | Use only when search_domain says new .gy registrations are paused. Adds the user to Register.gy's notify list: Register.gy checks the domain again and emails them a link to register it as soon as registration reopens (usually within about an hour). Only call with the user's permission and their own email address. | 是,需确认后 |
list_my_domains | List the user's .gy domains at Register.gy, with expiry date and whether each can be connected to a website now. | 否 |
get_dns_records | Show the current DNS records of one of the user's .gy domains. | 否 |
connect_website | Point one of the user's .gy domains at their website by setting the DNS records their website builder (Lovable, Bolt, Replit, v0/Vercel, Netlify, Webflow, Shopify…) shows on its custom-domain screen. Use the builder's real values, never guesses. ALWAYS call with apply=false first and show the user the preview; call again with apply=true only after the user clearly confirms. Email (MX) and nameserver records are never changed. The change can be undone for 7 days. | 是,需确认后 |
check_live | Check whether the website records of a .gy domain are visible on the internet and whether https works yet. | 否 |
undo_last_change | Put back the website records that were in place before the last connect_website change on this domain (available for 7 days). Ask the user first. | 是,需确认后 |
REST API
基础 URL https://register.gy/wp-json/rgy/v1。输入和输出均为 JSON。错误格式如 {"error":{"code":"not_found","message":"…"}}。
| 方法 | 路径 | 说明 | 认证 |
|---|---|---|---|
| GET | /availability | Is a .gy domain available? | 无 |
| GET | /status | Are .gy registrations open or paused right now? | 无 |
| POST | /notify | While registrations are paused: email me when they reopen | 无 |
| GET | /health | Service status for uptime monitors | 无 |
| GET | /me | Who this key belongs to | 密钥或令牌 |
| GET | /domains | Your .gy domains | 密钥或令牌 |
| GET | /domains/{domain} | One domain | 密钥或令牌 |
| GET | /domains/{domain}/records | Current DNS records | 密钥或令牌 |
| POST | /domains/{domain}/connect/preview | Preview connecting a website (changes nothing) | 密钥或令牌 |
| POST | /domains/{domain}/connect/apply | Connect a website (after the user confirms the preview) | 密钥或令牌 |
| POST | /domains/{domain}/connect/undo | Undo the last connect | 密钥或令牌 |
| GET | /domains/{domain}/live | Is the site live (DNS + https)? | 密钥或令牌 |
| POST | /mcp | MCP endpoint for AI assistants (JSON-RPC 2.0, Streamable HTTP) | 密钥或令牌 |
连接请求体
可以是记录列表,也可以是建站工具显示的原始文本(表格或列表)。仅设置 A、AAAA、CNAME(ALIAS)和 TXT 记录;其他记录会列在 skipped 下并附上原因。
{
"records": [
{ "type": "A", "name": "@", "value": "185.158.133.1" },
{ "type": "CNAME", "name": "www", "value": "mysite.netlify.app" }
]
} 限制与错误
| 请求 | 每个密钥或连接每 10 分钟 300 次 |
|---|---|
| 更改 | 每位客户每 10 分钟 60 次(与客户中心共享) |
| 可注册查询 | 每个 IP 地址每分钟 30 次查询 |
| 每次连接的记录数 | 15 |
| 状态 | 含义 |
|---|---|
| 400 | 请求有误(消息会说明需要修正的内容) |
| 401 | 密钥或令牌缺失、无效或已过期 |
| 403 | 不允许(例如只读连接尝试更改记录,或域名由我们的团队管理) |
| 404 | 不在此账户下,或接口未知 |
| 429 | 请求过多;请稍候重试 |
| 503 | 依赖服务(DNS 或可注册查询)无响应;请稍后重试 |
安全
- 密钥和令牌仅以 SHA-256 哈希形式存储。登录验证码一次性有效,10 分钟后过期,并有频率限制。
- 每个密钥或连接只能看到创建它的客户的域名。
- 通过 API 进行的每次更改都会被记录,并可在 7 天内撤销。网站记录设为仅 DNS 模式,以便建站工具签发 https 证书。
- 发现安全问题?请发邮件至 [email protected],主题中注明“Security”。在告知他人之前,请给我们修复的机会。
更新日志
- 2026年10月8日 OAuth 2.1 登录(PKCE、动态客户端注册、刷新令牌轮换),客户中心中的已连接应用,公开的仅限搜索 MCP 接口。
- 2026年10月8日 REST API 和 MCP 服务器上线:可注册查询、域名、记录、连接预览/应用/撤销、上线检查。客户中心提供 API 密钥。
支持与条款
问题、建议或合作请求:[email protected] 或 +592-623-1721。
API 的使用受我们的隐私政策约束。专门的 API 条款正在定稿中。