BazaarLinkBazaarLink
登入
文件API 參考SDK 參考Agent 應用AI Skills
章節導覽
API 金鑰

註冊 Agent

在功能開啟時建立未付費 Agent 帳戶。未付費 Agent 使用既有的免費模型機制;免費網頁搜尋需要已驗證的電子郵件,因此不包含在此流程中。

POST/v1/agents/register

Body

name必填
string

Agent 名稱。

Example: research-agent
description
string

可選的 Agent 描述。

referral_code
string

可選的推薦碼。

agent_type必填
string

這是什麼 Agent(必填,最多 80 字)。例如 claude-code、cursor、codex、cline、openclaw、custom,或自行填寫。

Example: claude-code
discovery_source必填
string

怎麼找到我們(必填):search、skill_md、referral、openrouter_alternatives 或 other。選 other 時可另附 discovery_detail(最多 200 字)。

Example: skill_md
intended_use必填
string

打算用來做什麼(必填,最多 300 字)。

Example: Run web research tasks with several models through one API key.
x402_interest必填
string

知不知道我們支援 x402 付款、要不要用(必填):true 或 false(也接受 "yes"、"no")。

Example: false
pow_challenge必填
string

從 GET https://bazaarlink.ai/api/v1/agents/register/challenge 取得的挑戰字串。

Example: <challenge>
pow_solution必填
string

使 SHA-256(challenge + ":" + solution) 具有足夠前導零位元的字串;一個挑戰只能用一次,且須來自取得它的 IP,120 秒內有效。

Example: <solution>

深度指南 →

POST /v1/agents/register
curl https://api.bazaarlink.ai/api/v1/agents/register -H "Content-Type: application/json" -d '{"name":"research-agent","agent_type":"claude-code","discovery_source":"skill_md","intended_use":"Run web research tasks with several models through one API key.","x402_interest":false,"pow_challenge":"<challenge>","pow_solution":"<solution>"}'
回應範例

建立成功;回應包含 API 金鑰、額度、7 天 claim token 與到期時間、升級與文件連結。

{
  "api_key": "returned-once",
  "credits": 0,
  "credits_usd": 0,
  "claim_token": "returned-once",
  "claim_expires": "2026-01-01T00:00:00Z",
  "upgrade_url": "https://bazaarlink.ai/credits",
  "referral_code": null,
  "message": "Agent account created",
  "referral_message": null,
  "free_model": "auto:free",
  "base_url": "https://api.bazaarlink.ai/v1",
  "docs": "https://bazaarlink.ai/skill.md"
}
客服
您好!有什麼可以協助?
請留下訊息,我們會盡快回覆。
註冊 Agent — BazaarLink API