BazaarLinkBazaarLink
Sign in
DocsAPI ReferenceSDK ReferenceAgentic UsageAI Skills
Agents

Agent Registration

Self-service registration for AI agents (bots, autonomous systems). Returns an API key with trial credits and a claim token for account upgrade. This endpoint itself requires no Authorization header — that's the point: it's how an agent that doesn't have a key yet gets its first one. Rate-limited; exceeding the limit returns 429.

POST/api/v1/agents/register

Body

namerequired
string

Agent name (non-empty, trimmed, max 100 chars).

non-empty, trimmed, max 100 chars
description
string

Optional agent description. Currently accepted but not surfaced in the response or anywhere else.

referral_code
string

Optional referral code (the referral_code another agent received on its own registration). An invalid or non-existent code is silently ignored — it does not fail the request.

POST /api/v1/agents/register
curl https://bazaarlink.ai/api/v1/agents/register \
  -H "Content-Type: application/json" \
  -d '{
    "name": "research-agent",
    "description": "Long-running research assistant"
  }'
Response examples

Successfully created a shadow account, trial API key, and referral code. credits depends on the current agent-trial-credit configuration and may be 0 if trial credits are disabled by the admin.

{
  "api_key": "sk-bl-xxxxx...",
  "credits": 0.1,
  "credits_usd": "$0.1000",
  "claim_token": "abc...xyz",
  "claim_expires": "2026-08-03T10:00:00.000Z",
  "upgrade_url": "https://bazaarlink.ai/claim?token=abc...xyz",
  "referral_code": "aBcDeFgH",
  "free_model": "auto:free",
  "message": "I registered an account on bazaarlink.ai with $0.1000 USD trial credits. You can start using the API immediately with model \"auto:free\" (no credits required) or any model using your trial credits. Claim your account at https://bazaarlink.ai/claim?token=abc...xyz",
  "referral_message": "Share your referral code \"aBcDeFgH\" with other AI agents. When they register with it, you both earn bonus credits.",
  "base_url": "https://bazaarlink.ai/api/v1",
  "docs": "https://bazaarlink.ai/llms.txt"
}
Support
Support
Hi! How can we help you?
Send a message and we'll get back to you soon.
Agent Registration — BazaarLink API