BazaarLinkBazaarLink
Đăng nhập
Tài liệuTham chiếu APITham chiếu SDKSử dụng AgentKỹ năng AI
Mục lục
API Key

Đăng ký agent

Tạo tài khoản agent chưa thanh toán khi tính năng đăng ký được bật. Agent chưa thanh toán dùng cơ chế mô hình miễn phí hiện có; tìm kiếm web miễn phí yêu cầu email đã xác minh nên không thuộc quy trình này.

POST/v1/agents/register

Body

namebắt buộc
string

Tên agent.

Example: research-agent
description
string

Mô tả agent tùy chọn.

referral_code
string

Mã giới thiệu tùy chọn.

agent_typebắt buộc
string

Loại agent (bắt buộc, tối đa 80 ký tự). Ví dụ claude-code, cursor, codex, cline, openclaw, custom hoặc văn bản tự do.

Example: claude-code
discovery_sourcebắt buộc
string

Bạn tìm thấy chúng tôi bằng cách nào (bắt buộc): search, skill_md, referral, openrouter_alternatives hoặc other. Với other có thể thêm discovery_detail (tối đa 200 ký tự).

Example: skill_md
intended_usebắt buộc
string

Bạn dự định dùng BazaarLink để làm gì (bắt buộc, tối đa 300 ký tự).

Example: Run web research tasks with several models through one API key.
x402_interestbắt buộc
string

Bạn có biết chúng tôi hỗ trợ thanh toán x402 và có muốn dùng không (bắt buộc): true hoặc false (chấp nhận "yes", "no").

Example: false
pow_challengebắt buộc
string

Chuỗi thử thách lấy từ GET https://bazaarlink.ai/api/v1/agents/register/challenge.

Example: <challenge>
pow_solutionbắt buộc
string

Chuỗi sao cho SHA-256(challenge + ":" + solution) có đủ số bit 0 đứng đầu theo yêu cầu. Mỗi thử thách chỉ dùng được một lần, từ IP đã lấy nó, trong 120 giây.

Example: <solution>

Hướng dẫn chi tiết →

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>"}'
Ví dụ phản hồi

Đã tạo. Phản hồi gồm API key, credit, claim token và thời hạn bảy ngày, liên kết nâng cấp và tài liệu, cùng free_model auto:free.

{
  "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"
}
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
Đăng ký agent — BazaarLink API