---
title: "智能体注册"
description: "AI智能体如何用用户的邮箱和邮件验证码获取API密钥。"
canonical: https://dino.markets/zh/docs/agents/
---

> Index of every dino.markets page and doc for AI readers: [llms.txt](https://dino.markets/llms.txt)

# 智能体注册

AI智能体如何用用户的邮箱和邮件验证码获取API密钥。

## 功能说明

没有密钥的AI智能体可以在不离开对话的情况下为用户获取一个。智能体发送用户的邮箱地址和它自己的名称。dino.markets向用户发送六位验证码邮件。用户把验证码告诉智能体，智能体把它发回，响应中就带有一个Free套餐的API密钥及其每月积分。具体数字见[套餐和账单](https://dino.markets/zh/docs/billing/)。

在验证码发回之前，不会创建任何东西。密钥属于一个普通账户。用户可以在[dino.markets/signin](https://dino.markets/zh/signin)用邮件验证码登录，在控制台中看到同一个账户和同一个密钥。这条路径只能拿到Free套餐。更改套餐或付款仍需用户本人登录后在控制台中完成。

两个接口都免费，不计入任何套餐，无需密钥和cookie。它们位于`https://api.dino.markets`。

## 流程

1. 智能体用用户的邮箱调用`POST /v1/agent-signup`。
2. 智能体询问用户：“请把dino.markets刚刚发到你邮箱的6位验证码告诉我。”
3. 智能体用收到的`signup_id`和验证码调用`POST /v1/agent-signup/verify`。
4. 智能体保存响应中的`api_key`。它只显示一次。

## 申请账户

```
curl -s -X POST "https://api.dino.markets/v1/agent-signup" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "person@example.com",
    "agent_name": "Research Agent",
    "client": "claude-code"
  }'
```

| 参数 | 类型 | 必填 | 含义 |
| --- | --- | --- | --- |
| `email` | string | 是 | 用户本人的邮箱地址，最多320个字符。一次性邮箱地址会被拒绝。 |
| `agent_name` | string | 是 | 智能体的自称，1到80个字符：字母、数字、空格和`_ - / ( )`。点号只允许出现在两个数字之间，如版本号。不允许冒号、URL或域名。用户会在邮件中看到这个名称。 |
| `client` | string | 否 | 智能体运行所在的工具，如`claude-code`或`cursor`。保留小写字母、数字、`_`和`-`，其余字符会被替换。用户也会在邮件中看到它。 |

响应为`202 Accepted`，无论邮箱地址是什么，结构和文字都相同。它不会说明是否发送了邮件，因此无法用来探查谁有账户。

202 Accepted

```
",
  "message": "If this email address can be used, dino.markets emailed it a 6-digit code. Ask the user to read the code to you, then send it with the signup_id to POST /v1/agent-signup/verify. The code lasts 15 minutes and allows 5 wrong tries. If the user says the email told them they already have an account, they can sign in at https://dino.markets/signin and create a key in the dashboard instead.",
  "expires_at": "<15 minutes after the request, UTC>",
  "verify_path": "/v1/agent-signup/verify"
}">{
  "status": "pending",
  "signup_id": "<signup id>",
  "message": "If this email address can be used, dino.markets emailed it a 6-digit code. Ask the user to read the code to you, then send it with the signup_id to POST /v1/agent-signup/verify. The code lasts 15 minutes and allows 5 wrong tries. If the user says the email told them they already have an account, they can sign in at https://dino.markets/signin and create a key in the dashboard instead.",
  "expires_at": "<15 minutes after the request, UTC>",
  "verify_path": "/v1/agent-signup/verify"
}
```

用户收到什么取决于邮箱地址：

- 没有账户的地址会收到带验证码的邮件。邮件按请求方填写的原样列出智能体和工具名称，并说明把验证码交给智能体即创建账户并接受[服务条款](https://dino.markets/terms)。
- 已有账户的地址会收到一封说明此事的邮件，解释如何登录并在控制台创建密钥。邮件中没有验证码，因此智能体无法为它获得第二个账户或密钥。
- 达到下述某项限制的地址收不到邮件。

在任何情况下，智能体都只看到`202`。如果验证码始终无效，用户很可能已经有账户：请让用户在[dino.markets/dashboard#keys](https://dino.markets/dashboard#keys)创建密钥。

## 验证验证码

```
",
    "code": "123456"
  }'">curl -s -X POST "https://api.dino.markets/v1/agent-signup/verify" \
  -H "Content-Type: application/json" \
  -d '{
    "signup_id": "<signup id>",
    "code": "123456"
  }'
```

| 参数 | 类型 | 必填 | 含义 |
| --- | --- | --- | --- |
| `signup_id` | string | 是 | 第一个响应中的`signup_id`。 |
| `code` | string | 是 | 用户从邮件中读出的六位数字。 |

响应为`201 Created`：

201 Created

```
",
    "name": "Agent: Research Agent",
    "prefix": ""
  },
  "plan": {
    "code": "free"
  }
}">{
  "status": "verified",
  "message": "Verified. This key is on the Free plan. It is shown once, so store it now. The user can sign in at https://dino.markets/signin with an emailed code to see the account, its usage and this key, and to change the plan.",
  "api_key": "dino_live_your_new_key",
  "key": {
    "id": "<key id>",
    "name": "Agent: Research Agent",
    "prefix": "<first characters of the key>"
  },
  "plan": {
    "code": "free"
  }
}

字段
含义

api_key
密钥本身。在赔率请求和发往MCP服务器的请求中，用Authorization: Bearer或x-api-key请求头发送。放在URL中的密钥会被拒绝。它只显示一次，无法再次读取。

key.id、key.name、key.prefix
控制台中显示的密钥信息。名称为Agent:后接agent_name。

plan
套餐及其每月积分。这条路径上始终为free。

验证码有效15分钟，允许输错5次。该密钥的用法与其他密钥相同：见API密钥和快速入门。
错误
与赔率接口不同，这两个账户接口以带code的problem JSON返回错误；赔率接口的错误见错误。请根据code分支处理。

状态
code
接口
含义

400
invalid_request
两者
请求体不是有效JSON，或有缺失、多余或过长的字段。

400
invalid_email
signup
email不是邮箱地址。

400
email_not_allowed
signup
email属于一次性邮箱服务商。请向用户索取其本人的地址。

400
agent_name_not_allowed
signup
agent_name违反上述字符规则。

400
invalid_code
verify
验证码不是六位数字，或不正确。detail说明还剩几次机会。请让用户再读一遍。

403
code_locked
verify
输错验证码五次。请用POST /v1/agent-signup重新开始。

404
signup_not_found
verify
没有对应这个signup_id的注册。

404
not_found
两者
智能体注册已关闭。请让用户到dino.markets/signup注册。

409
already_verified
verify
该注册已创建账户和密钥。密钥只显示一次。用户可以在控制台中另建一个。

409
email_has_account
verify
该地址现在已有账户，因此没有发放密钥。用户登录后在控制台创建密钥。

410
code_expired
verify
15分钟已过。请重新开始。

429
too_many_signups
signup
来自此网络的请求过多。请等待Retry-After秒。

429
domain_daily_limit
verify
该邮箱域名今天创建的账户过多。请让用户到dino.markets/signup注册，或明天再试。

503
agent_signup_unavailable
两者
服务已达每日上限。请明天再试，或让用户到dino.markets/signup注册。

对智能体来说，验证码错误和从未发过验证码的注册（账户已存在的情况）看起来一样。输错五次后两者都返回code_locked。
限制
这些限制防止单个网络、单个邮箱或单个公司耗尽免费积分。

限制项
数值

每个IP地址的注册请求
每小时5次，每天10次

每个网络（IP地址所在的/24网段）的注册请求
每小时20次，每天30次

发往同一邮箱的邮件
30天内3封。带+tag或Gmail点号的写法视为同一邮箱。

每个邮箱域名
每天20个注册请求和3个新账户。Gmail、Outlook等大型公共邮箱服务商不受此限制。

整个服务
每天300个注册请求和100个新账户

每次注册的错误验证码次数
5

一个邮箱只能有一个账户。如果该地址已有账户，verify返回email_has_account，不创建密钥。
在智能体中使用
把下面这段提示词交给智能体，或让它读取描述同一流程的llms.txt：
If you have no DINO_API_KEY, call POST https://api.dino.markets/v1/agent-signup with my email
and your name. Ask me to read you the 6 digit code from the email. Send it to
POST https://api.dino.markets/v1/agent-signup/verify with the signup_id and keep the api_key.
dino.markets主流博彩公司的体育赔率，一个简洁的APIEnglishالعربيةDeutschEspañolFrançaisItaliano日本語한국어PolskiPortuguêsTürkçe中文© 2026 Nusantara Ventures, LLC
```
