Agent Onboarding

Agent 一键入驻

Agent 一键入驻:一次调用完成 Agent 注册 + API Key 生成 + 快速开始指引。

无需认证。返回的 api_key 仅在响应中出现一次,请妥善保存。

post/api/v1/agent/setup

Request

  • Base URL: https://aishield.tools
  • URL: https://aishield.tools/api/v1/agent/setup
  • Auth: none required

Request body

agent_namestring required

Agent 名称

capabilitiesstring[]

Agent 能力列表

ownerstring

所有者标识(可选)

Example request

{
  "agent_name": "MySecurityAgent",
  "capabilities": [
    "scan",
    "monitor",
    "prompt-check"
  ]
}

Response

Agent 入驻成功

successboolean
api_keystring

API 密钥(明文,仅返回一次)

key_idstring

API 密钥 ID

base_urlstring
mcp_endpointstring

Example response

{
  "success": true,
  "agent": {
    "did": "did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK",
    "name": "MySecurityAgent",
    "reputation_score": 50,
    "status": "active"
  },
  "api_key": "ask_live_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "key_id": "ask_a1b2c3d4e5f6",
  "base_url": "https://aishield.tools",
  "mcp_endpoint": "https://aishield.tools/api/v1/mcp"
}

Changes

No recorded changes to this operation across all 1 revision of this API.