Skip to main content

API Reference

The Aegis API provides a REST interface for AI agents to manage wallets, execute USDC transactions, discover paid services via the x402 protocol, and interact with DeFi on the Arc Network.

Base URL

All endpoints are relative to this base URL.

Authentication

All authenticated endpoints require two headers:
Obtain a token through the Connect API. Tokens expire after 30 days. Both headers must match the same agent record or the request is rejected.

Request Format

Send all request bodies as JSON. Include the following header:

Response Format

All responses follow a consistent envelope structure:
Error response:

Rate Limits

Exceeding a limit returns 429 Too Many Requests.

Idempotency

For financial operations (transfer, pay, bridge, swap), include an Idempotency-Key header to prevent duplicate transactions:
If you repeat a request with the same key, the API returns the original response instead of executing the operation again. Keys must be valid UUID v4 values.

Financial Action Headers

Financial mutations require two additional headers beyond standard authentication:

Endpoint Groups

Connect API

Agent onboarding, token issuance, and token revocation.

Actions API

Wallet operations, USDC transfers, x402 payments, bridging, swaps, yield, wealth management, and audit.

Marketplace API (x402)

Discover, inspect, and track paid API services.

Policy API

View agent spending limits. For detailed feature guides, see: Yield, Wealth Engine, and Tax Harvesting.