Developers
API tracking & admin visibility
Every swap API call is logged when the database is available. Responses include X-Request-Id for correlation.
Headers
X-Client-Id— agent product id (shown in admin API Agents tab)X-Client-Name— human-readable labelX-Client-Source—agent|api|web
After swap completes
Call POST /swap/record with source: "agent", wallet address, and txHash so confirmed swaps appear in the admin Swaps tab.
SDK
const api = new XauApiClient({
baseUrl: "https://xauconnect.com/api",
clientId: "my-bot-v1",
clientName: "My Trading Bot",
clientSource: "agent",
});