跳轉到主要內容
GET
/
api
/
v1
/
agents
List Agents
curl --request GET \
  --url https://api.agentwallex.com/api/v1/agents \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "id": "<string>",
      "agent_name": "<string>",
      "agent_description": "<string>",
      "wallet": {
        "address": "<string>",
        "chain": "<string>"
      },
      "status": "active",
      "metadata": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123,
  "has_more": true
}
擷取與您帳戶關聯的分頁代理清單。支援按狀態和區塊鏈篩選。

查詢參數

page_num
integer
預設值:"1"
頁碼(從 1 開始)。
page_size
integer
預設值:"20"
每頁項目數。最大值:100。
status
string
按代理狀態篩選。值:activeinactive
chain
string
按 CAIP-2 鏈識別碼篩選(例如 eip155:84532)。

回應

範例

curl -X GET "https://api.agentwallex.com/api/v1/agents?page_num=1&page_size=20&status=active&chain=eip155:84532" \
  -H "X-API-Key: awx_your_api_key"
Response
{
  "data": [
    {
      "id": "agent_abc123",
      "agent_name": "research-bot",
      "wallet": {
        "address": "0x1234...5678",
        "chain": "eip155:84532"
      },
      "status": "active",
      "created_at": "2025-06-01T10:00:00Z"
    }
  ],
  "total": 3,
  "has_more": false
}

授權

X-API-Key
string
header
必填

API key authentication. Keys are prefixed with awx_.

查詢參數

page_num
integer
預設值:1

Page number (1-indexed).

必填範圍: x >= 1
page_size
integer
預設值:20

Number of items per page.

必填範圍: 1 <= x <= 100
status
enum<string>

Filter by agent status.

可用選項:
active,
inactive
chain
string

Filter by CAIP-2 chain identifier (e.g., eip155:84532).

回應

Paginated list of agents.

Standard paginated response wrapper.

data
object[]

Array of resource objects.

total
integer

Total number of items matching the query.

has_more
boolean

Whether more pages are available.