GET
/
sessions
/
{id}
/
trace
curl "https://api.stableyard.fi/v2/sessions/ses_abc123/trace" \
  -H "Authorization: Bearer sy_secret_*"
{
  "object": "trace",
  "sessionId": "ses_abc123",
  "events": [
    {
      "type": "session.created",
      "timestamp": "2026-03-18T10:20:30.000Z",
      "data": { "status": "open" }
    },
    {
      "type": "payment.detected",
      "timestamp": "2026-03-18T10:20:45.000Z",
      "data": { "txHash": "0x...", "chain": "base", "amount": 5000000 }
    },
    {
      "type": "intent.created",
      "timestamp": "2026-03-18T10:20:46.000Z",
      "data": { "orderId": "ord_...", "sourceChain": "base", "destChain": "polygon" }
    },
    {
      "type": "payment.settled",
      "timestamp": "2026-03-18T10:21:00.000Z",
      "data": { "status": "settled", "settledAt": "2026-03-18T10:21:00.000Z" }
    }
  ],
  "requestId": "req_abc123"
}
Get a detailed trace of all events in a session’s lifecycle, including routing, intent engine operations, and settlement. Auth: sy_secret_*
id
string
required
Session ID
curl "https://api.stableyard.fi/v2/sessions/ses_abc123/trace" \
  -H "Authorization: Bearer sy_secret_*"
{
  "object": "trace",
  "sessionId": "ses_abc123",
  "events": [
    {
      "type": "session.created",
      "timestamp": "2026-03-18T10:20:30.000Z",
      "data": { "status": "open" }
    },
    {
      "type": "payment.detected",
      "timestamp": "2026-03-18T10:20:45.000Z",
      "data": { "txHash": "0x...", "chain": "base", "amount": 5000000 }
    },
    {
      "type": "intent.created",
      "timestamp": "2026-03-18T10:20:46.000Z",
      "data": { "orderId": "ord_...", "sourceChain": "base", "destChain": "polygon" }
    },
    {
      "type": "payment.settled",
      "timestamp": "2026-03-18T10:21:00.000Z",
      "data": { "status": "settled", "settledAt": "2026-03-18T10:21:00.000Z" }
    }
  ],
  "requestId": "req_abc123"
}