iconLensAI

List valuable outcomes with pagination

Retrieve valuable outcome records for the authenticated developer with pagination support.

GET/v1/outcomes
AuthorizationBearer <token>

In: header

Query Parameters

limit?number

Maximum number of results to return (default: 100, max: 1000)

offset?number

Number of results to skip (default: 0)

Response Body

application/json

curl -X GET "https://api.getlens.ai/v1/outcomes"
[
  {
    "id": "RZJZTK6owKxeMELu3cGWWc",
    "agentKey": "support-agent",
    "sessionKey": "session-12345",
    "customerKey": "customer-abc",
    "goalId": "YZABCD123456789012345678",
    "toolId": "EFGHIJ123456789012345678",
    "value": "50.00",
    "generatedAt": "2024-01-15T10:30:00.000Z",
    "createdAt": "2024-01-15T10:30:00.000Z"
  }
]