Skip to main content
GET
/
v1
/
agents
/
{passportId}
/
receipts
Typescript (SDK)
import { RaijinLabsLucidAi } from "raijin-labs-lucid-ai";

const raijinLabsLucidAi = new RaijinLabsLucidAi();

async function run() {
  const result = await raijinLabsLucidAi.agents.mirror.lucidGetAgentReceipts({
    adminAuth: process.env["RAIJINLABSLUCIDAI_ADMIN_AUTH"] ?? "",
  }, {
    passportId: "<id>",
  });

  for await (const page of result) {
    console.log(page);
  }
}

run();
{
  "receipts": [
    {
      "run_id": "run_abc123def456",
      "receipt_hash": "a3f2b8c1d4e5f6789012345678901234567890abcdef1234567890abcdef1234",
      "model_passport_id": "ppt_model_7xK9mQ2v",
      "compute_passport_id": "ppt_compute_Xn5vR2kJ",
      "timestamp": 1710288000,
      "metrics": {
        "tokens_in": 42,
        "tokens_out": 128,
        "ttft_ms": 85
      }
    },
    {
      "run_id": "run_xyz789ghi012",
      "receipt_hash": "b4c3d9e2f5a6b7890123456789012345678901abcdef5678901234567890bcde",
      "model_passport_id": "ppt_model_7xK9mQ2v",
      "compute_passport_id": "ppt_compute_Xn5vR2kJ",
      "timestamp": 1710291600,
      "metrics": {
        "tokens_in": 100,
        "tokens_out": 256,
        "ttft_ms": 92
      }
    }
  ],
  "total": 47,
  "page": 1,
  "per_page": 20,
  "total_pages": 3
}

Documentation Index

Fetch the complete documentation index at: https://docs.lucid.foundation/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Admin-Key
string
header
required

Admin API key for internal/operator endpoints

Path Parameters

passportId
string
required

Agent passport identifier to get receipts for

Query Parameters

page
integer
default:1

Page number for pagination (starts at 1)

Required range: x >= 1
per_page
integer
default:20

Number of results per page (1-100)

Required range: 1 <= x <= 100

Response

Paginated receipts

receipts
object[]
required
total
integer
required
page
integer
required
per_page
integer
required
total_pages
integer
required