Step 4 — View your logs
Every API call — successful or failed — is logged automatically. Logs are scoped to your userId. You can query them via the logs API or view them in the developer portal.
Query logs via API
const logs = await apiCall('v99/dev/logs', {
userId: 'your-user-id',
index: 1,
items: 20,
status: 'error', // success | error | auth_fail | client_error
srvc: CLIENT_SRVC, // filter to your app only
})Look up a single transaction
const tx = await apiCall('v99/dev/logs/detail', {
userId: 'your-user-id',
txId: 'tx_abc123...', // from X-Transaction-Id response header
})Get aggregated stats
const stats = await apiCall('v99/dev/logs/stats', {
userId: 'your-user-id',
days: 30, // 1–90
})
// returns: total calls, byStatus breakdown, avgDurationMsX-Transaction-Id header
Every response — including failures — includes this header. Capture it in your error handler:
err.txId = res.headers.get('X-Transaction-Id')Include it in support requests to trace any specific call.