메인 콘텐츠로 건너뛰기
POST
/
api
/
v1
/
agents
Create Agent
curl --request POST \
  --url https://api.agentwallex.com/api/v1/agents \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "agent_name": "research-bot",
  "agent_description": "Market research automation agent",
  "chain": "eip155:84532",
  "metadata": "{\"team\":\"growth\"}"
}
'
{
  "id": "agent_abc123",
  "agent_name": "research-bot",
  "agent_description": "Market research automation agent",
  "wallet": {
    "address": "0x1234567890abcdef1234567890abcdef12345678",
    "chain": "eip155:84532"
  },
  "status": "active",
  "created_at": "2025-06-01T10:00:00Z"
}
MPC 보안 지갑이 자동으로 프로비저닝되는 새 에이전트를 생성합니다. 지갑 주소는 분산 키 생성(DKG)을 사용하여 생성되며 즉시 자금을 수신할 수 있습니다.

요청 본문

agent_name
string
필수
에이전트의 표시 이름입니다. 계정 내에서 고유해야 합니다.
agent_description
string
에이전트 목적에 대한 선택적 설명입니다.
chain
string
필수
에이전트 지갑의 CAIP-2 체인 식별자입니다. 사용 가능한 옵션은 지원 체인을 참조하세요.예시: eip155:1 (Ethereum), eip155:8453 (Base), eip155:84532 (Base Sepolia 테스트넷)
metadata
string
커스텀 키-값 쌍을 위한 JSON 인코딩 메타데이터 문자열입니다.

응답

예시

curl -X POST https://api.agentwallex.com/api/v1/agents \
  -H "X-API-Key: awx_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_name": "research-bot",
    "agent_description": "Market research automation agent",
    "chain": "eip155:84532",
    "metadata": "{\"team\":\"growth\"}"
  }'
Response
{
  "id": "agent_abc123",
  "agent_name": "research-bot",
  "agent_description": "Market research automation agent",
  "wallet": {
    "address": "0x1234567890abcdef1234567890abcdef12345678",
    "chain": "eip155:84532"
  },
  "status": "active",
  "created_at": "2025-06-01T10:00:00Z"
}

인증

X-API-Key
string
header
필수

API key authentication. Keys are prefixed with awx_.

본문

application/json
agent_name
string
필수

Display name for the agent. Must be unique within your account.

chain
string
필수

CAIP-2 chain identifier for the agent's wallet (e.g., eip155:1 for Ethereum, eip155:8453 for Base, eip155:84532 for Base Sepolia testnet).

agent_description
string

Optional description of the agent's purpose.

metadata
string

JSON-encoded metadata string for custom key-value pairs.

응답

Agent created successfully.

An AI agent with an MPC-secured wallet.

id
string

Unique agent identifier (e.g., agent_abc123).

agent_name
string

Agent display name.

agent_description
string

Agent description.

wallet
object

An on-chain wallet associated with an agent.

status
enum<string>

Agent status.

사용 가능한 옵션:
active,
inactive
metadata
string

JSON-encoded metadata string.

created_at
string<date-time>

ISO 8601 creation timestamp.