BazaarLinkBazaarLink
เข้าสู่ระบบ
เอกสารAPI ข้อมูลอ้างอิงSDK ข้อมูลอ้างอิงการใช้งาน AgentAI ทักษะ
สารบัญ
API Key

ลงทะเบียนเอเจนต์

สร้างบัญชีเอเจนต์ที่ยังไม่ชำระเงินเมื่อเปิดใช้การลงทะเบียน เอเจนต์ที่ยังไม่ชำระเงินใช้กลไกโมเดลฟรีที่มีอยู่ และการค้นหาเว็บฟรีต้องใช้อีเมลที่ยืนยันแล้ว จึงไม่รวมอยู่ในขั้นตอนนี้

POST/v1/agents/register

Body

nameจำเป็น
string

ชื่อเอเจนต์

Example: research-agent
description
string

คำอธิบายเอเจนต์ (ไม่บังคับ)

referral_code
string

รหัสแนะนำ (ไม่บังคับ)

agent_typeจำเป็น
string

ประเภทของเอเจนต์ (จำเป็น ไม่เกิน 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

คุณวางแผนจะใช้ BazaarLink ทำอะไร (จำเป็น ไม่เกิน 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 key, เครดิต, claim token และวันหมดอายุเจ็ดวัน ลิงก์อัปเกรดและเอกสาร รวมถึง 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.
ลงทะเบียนเอเจนต์ — BazaarLink API